Update StartExecution add Parameter TemplateURL.

This commit is contained in:
sdk-team
2022-11-07 08:02:21 +00:00
parent edc4c69e3b
commit e2fb64b9a3
34 changed files with 1644 additions and 7 deletions

View File

@@ -31,6 +31,8 @@ set(oos_public_header_model
include/alibabacloud/oos/model/CreateApplicationResult.h
include/alibabacloud/oos/model/CreateApplicationGroupRequest.h
include/alibabacloud/oos/model/CreateApplicationGroupResult.h
include/alibabacloud/oos/model/CreateOpsItemRequest.h
include/alibabacloud/oos/model/CreateOpsItemResult.h
include/alibabacloud/oos/model/CreateParameterRequest.h
include/alibabacloud/oos/model/CreateParameterResult.h
include/alibabacloud/oos/model/CreatePatchBaselineRequest.h
@@ -73,6 +75,8 @@ set(oos_public_header_model
include/alibabacloud/oos/model/GetExecutionTemplateResult.h
include/alibabacloud/oos/model/GetInventorySchemaRequest.h
include/alibabacloud/oos/model/GetInventorySchemaResult.h
include/alibabacloud/oos/model/GetOpsItemRequest.h
include/alibabacloud/oos/model/GetOpsItemResult.h
include/alibabacloud/oos/model/GetParameterRequest.h
include/alibabacloud/oos/model/GetParameterResult.h
include/alibabacloud/oos/model/GetParametersRequest.h
@@ -109,6 +113,8 @@ set(oos_public_header_model
include/alibabacloud/oos/model/ListInstancePatchesResult.h
include/alibabacloud/oos/model/ListInventoryEntriesRequest.h
include/alibabacloud/oos/model/ListInventoryEntriesResult.h
include/alibabacloud/oos/model/ListOpsItemsRequest.h
include/alibabacloud/oos/model/ListOpsItemsResult.h
include/alibabacloud/oos/model/ListParameterVersionsRequest.h
include/alibabacloud/oos/model/ListParameterVersionsResult.h
include/alibabacloud/oos/model/ListParametersRequest.h
@@ -157,6 +163,8 @@ set(oos_public_header_model
include/alibabacloud/oos/model/UpdateApplicationGroupResult.h
include/alibabacloud/oos/model/UpdateExecutionRequest.h
include/alibabacloud/oos/model/UpdateExecutionResult.h
include/alibabacloud/oos/model/UpdateOpsItemRequest.h
include/alibabacloud/oos/model/UpdateOpsItemResult.h
include/alibabacloud/oos/model/UpdateParameterRequest.h
include/alibabacloud/oos/model/UpdateParameterResult.h
include/alibabacloud/oos/model/UpdatePatchBaselineRequest.h
@@ -182,6 +190,8 @@ set(oos_src
src/model/CreateApplicationResult.cc
src/model/CreateApplicationGroupRequest.cc
src/model/CreateApplicationGroupResult.cc
src/model/CreateOpsItemRequest.cc
src/model/CreateOpsItemResult.cc
src/model/CreateParameterRequest.cc
src/model/CreateParameterResult.cc
src/model/CreatePatchBaselineRequest.cc
@@ -224,6 +234,8 @@ set(oos_src
src/model/GetExecutionTemplateResult.cc
src/model/GetInventorySchemaRequest.cc
src/model/GetInventorySchemaResult.cc
src/model/GetOpsItemRequest.cc
src/model/GetOpsItemResult.cc
src/model/GetParameterRequest.cc
src/model/GetParameterResult.cc
src/model/GetParametersRequest.cc
@@ -260,6 +272,8 @@ set(oos_src
src/model/ListInstancePatchesResult.cc
src/model/ListInventoryEntriesRequest.cc
src/model/ListInventoryEntriesResult.cc
src/model/ListOpsItemsRequest.cc
src/model/ListOpsItemsResult.cc
src/model/ListParameterVersionsRequest.cc
src/model/ListParameterVersionsResult.cc
src/model/ListParametersRequest.cc
@@ -308,6 +322,8 @@ set(oos_src
src/model/UpdateApplicationGroupResult.cc
src/model/UpdateExecutionRequest.cc
src/model/UpdateExecutionResult.cc
src/model/UpdateOpsItemRequest.cc
src/model/UpdateOpsItemResult.cc
src/model/UpdateParameterRequest.cc
src/model/UpdateParameterResult.cc
src/model/UpdatePatchBaselineRequest.cc

View File

@@ -32,6 +32,8 @@
#include "model/CreateApplicationResult.h"
#include "model/CreateApplicationGroupRequest.h"
#include "model/CreateApplicationGroupResult.h"
#include "model/CreateOpsItemRequest.h"
#include "model/CreateOpsItemResult.h"
#include "model/CreateParameterRequest.h"
#include "model/CreateParameterResult.h"
#include "model/CreatePatchBaselineRequest.h"
@@ -74,6 +76,8 @@
#include "model/GetExecutionTemplateResult.h"
#include "model/GetInventorySchemaRequest.h"
#include "model/GetInventorySchemaResult.h"
#include "model/GetOpsItemRequest.h"
#include "model/GetOpsItemResult.h"
#include "model/GetParameterRequest.h"
#include "model/GetParameterResult.h"
#include "model/GetParametersRequest.h"
@@ -110,6 +114,8 @@
#include "model/ListInstancePatchesResult.h"
#include "model/ListInventoryEntriesRequest.h"
#include "model/ListInventoryEntriesResult.h"
#include "model/ListOpsItemsRequest.h"
#include "model/ListOpsItemsResult.h"
#include "model/ListParameterVersionsRequest.h"
#include "model/ListParameterVersionsResult.h"
#include "model/ListParametersRequest.h"
@@ -158,6 +164,8 @@
#include "model/UpdateApplicationGroupResult.h"
#include "model/UpdateExecutionRequest.h"
#include "model/UpdateExecutionResult.h"
#include "model/UpdateOpsItemRequest.h"
#include "model/UpdateOpsItemResult.h"
#include "model/UpdateParameterRequest.h"
#include "model/UpdateParameterResult.h"
#include "model/UpdatePatchBaselineRequest.h"
@@ -194,6 +202,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateApplicationGroupResult> CreateApplicationGroupOutcome;
typedef std::future<CreateApplicationGroupOutcome> CreateApplicationGroupOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateApplicationGroupRequest&, const CreateApplicationGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateApplicationGroupAsyncHandler;
typedef Outcome<Error, Model::CreateOpsItemResult> CreateOpsItemOutcome;
typedef std::future<CreateOpsItemOutcome> CreateOpsItemOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateOpsItemRequest&, const CreateOpsItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOpsItemAsyncHandler;
typedef Outcome<Error, Model::CreateParameterResult> CreateParameterOutcome;
typedef std::future<CreateParameterOutcome> CreateParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateParameterRequest&, const CreateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParameterAsyncHandler;
@@ -257,6 +268,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetInventorySchemaResult> GetInventorySchemaOutcome;
typedef std::future<GetInventorySchemaOutcome> GetInventorySchemaOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetInventorySchemaRequest&, const GetInventorySchemaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInventorySchemaAsyncHandler;
typedef Outcome<Error, Model::GetOpsItemResult> GetOpsItemOutcome;
typedef std::future<GetOpsItemOutcome> GetOpsItemOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetOpsItemRequest&, const GetOpsItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpsItemAsyncHandler;
typedef Outcome<Error, Model::GetParameterResult> GetParameterOutcome;
typedef std::future<GetParameterOutcome> GetParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetParameterRequest&, const GetParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParameterAsyncHandler;
@@ -311,6 +325,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListInventoryEntriesResult> ListInventoryEntriesOutcome;
typedef std::future<ListInventoryEntriesOutcome> ListInventoryEntriesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListInventoryEntriesRequest&, const ListInventoryEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInventoryEntriesAsyncHandler;
typedef Outcome<Error, Model::ListOpsItemsResult> ListOpsItemsOutcome;
typedef std::future<ListOpsItemsOutcome> ListOpsItemsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListOpsItemsRequest&, const ListOpsItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOpsItemsAsyncHandler;
typedef Outcome<Error, Model::ListParameterVersionsResult> ListParameterVersionsOutcome;
typedef std::future<ListParameterVersionsOutcome> ListParameterVersionsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListParameterVersionsRequest&, const ListParameterVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParameterVersionsAsyncHandler;
@@ -383,6 +400,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateExecutionResult> UpdateExecutionOutcome;
typedef std::future<UpdateExecutionOutcome> UpdateExecutionOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateExecutionRequest&, const UpdateExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateExecutionAsyncHandler;
typedef Outcome<Error, Model::UpdateOpsItemResult> UpdateOpsItemOutcome;
typedef std::future<UpdateOpsItemOutcome> UpdateOpsItemOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateOpsItemRequest&, const UpdateOpsItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateOpsItemAsyncHandler;
typedef Outcome<Error, Model::UpdateParameterResult> UpdateParameterOutcome;
typedef std::future<UpdateParameterOutcome> UpdateParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateParameterRequest&, const UpdateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateParameterAsyncHandler;
@@ -421,6 +441,9 @@ namespace AlibabaCloud
CreateApplicationGroupOutcome createApplicationGroup(const Model::CreateApplicationGroupRequest &request)const;
void createApplicationGroupAsync(const Model::CreateApplicationGroupRequest& request, const CreateApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateApplicationGroupOutcomeCallable createApplicationGroupCallable(const Model::CreateApplicationGroupRequest& request) const;
CreateOpsItemOutcome createOpsItem(const Model::CreateOpsItemRequest &request)const;
void createOpsItemAsync(const Model::CreateOpsItemRequest& request, const CreateOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateOpsItemOutcomeCallable createOpsItemCallable(const Model::CreateOpsItemRequest& request) const;
CreateParameterOutcome createParameter(const Model::CreateParameterRequest &request)const;
void createParameterAsync(const Model::CreateParameterRequest& request, const CreateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateParameterOutcomeCallable createParameterCallable(const Model::CreateParameterRequest& request) const;
@@ -484,6 +507,9 @@ namespace AlibabaCloud
GetInventorySchemaOutcome getInventorySchema(const Model::GetInventorySchemaRequest &request)const;
void getInventorySchemaAsync(const Model::GetInventorySchemaRequest& request, const GetInventorySchemaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInventorySchemaOutcomeCallable getInventorySchemaCallable(const Model::GetInventorySchemaRequest& request) const;
GetOpsItemOutcome getOpsItem(const Model::GetOpsItemRequest &request)const;
void getOpsItemAsync(const Model::GetOpsItemRequest& request, const GetOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOpsItemOutcomeCallable getOpsItemCallable(const Model::GetOpsItemRequest& request) const;
GetParameterOutcome getParameter(const Model::GetParameterRequest &request)const;
void getParameterAsync(const Model::GetParameterRequest& request, const GetParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetParameterOutcomeCallable getParameterCallable(const Model::GetParameterRequest& request) const;
@@ -538,6 +564,9 @@ namespace AlibabaCloud
ListInventoryEntriesOutcome listInventoryEntries(const Model::ListInventoryEntriesRequest &request)const;
void listInventoryEntriesAsync(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInventoryEntriesOutcomeCallable listInventoryEntriesCallable(const Model::ListInventoryEntriesRequest& request) const;
ListOpsItemsOutcome listOpsItems(const Model::ListOpsItemsRequest &request)const;
void listOpsItemsAsync(const Model::ListOpsItemsRequest& request, const ListOpsItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListOpsItemsOutcomeCallable listOpsItemsCallable(const Model::ListOpsItemsRequest& request) const;
ListParameterVersionsOutcome listParameterVersions(const Model::ListParameterVersionsRequest &request)const;
void listParameterVersionsAsync(const Model::ListParameterVersionsRequest& request, const ListParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListParameterVersionsOutcomeCallable listParameterVersionsCallable(const Model::ListParameterVersionsRequest& request) const;
@@ -610,6 +639,9 @@ namespace AlibabaCloud
UpdateExecutionOutcome updateExecution(const Model::UpdateExecutionRequest &request)const;
void updateExecutionAsync(const Model::UpdateExecutionRequest& request, const UpdateExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateExecutionOutcomeCallable updateExecutionCallable(const Model::UpdateExecutionRequest& request) const;
UpdateOpsItemOutcome updateOpsItem(const Model::UpdateOpsItemRequest &request)const;
void updateOpsItemAsync(const Model::UpdateOpsItemRequest& request, const UpdateOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateOpsItemOutcomeCallable updateOpsItemCallable(const Model::UpdateOpsItemRequest& request) const;
UpdateParameterOutcome updateParameter(const Model::UpdateParameterRequest &request)const;
void updateParameterAsync(const Model::UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateParameterOutcomeCallable updateParameterCallable(const Model::UpdateParameterRequest& request) const;

View File

@@ -0,0 +1,78 @@
/*
* 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_OOS_MODEL_CREATEOPSITEMREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_CREATEOPSITEMREQUEST_H_
#include <alibabacloud/oos/OosExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Oos {
namespace Model {
class ALIBABACLOUD_OOS_EXPORT CreateOpsItemRequest : public RpcServiceRequest {
public:
CreateOpsItemRequest();
~CreateOpsItemRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSource() const;
void setSource(const std::string &source);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getSeverity() const;
void setSeverity(const std::string &severity);
std::string getSolutions() const;
void setSolutions(const std::string &solutions);
std::string getResources() const;
void setResources(const std::string &resources);
int getPriority() const;
void setPriority(int priority);
std::string getDedupString() const;
void setDedupString(const std::string &dedupString);
std::string getTags() const;
void setTags(const std::string &tags);
std::string getCategory() const;
void setCategory(const std::string &category);
private:
std::string clientToken_;
std::string description_;
std::string source_;
std::string title_;
std::string resourceGroupId_;
std::string regionId_;
std::string severity_;
std::string solutions_;
std::string resources_;
int priority_;
std::string dedupString_;
std::string tags_;
std::string category_;
};
} // namespace Model
} // namespace Oos
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEOPSITEMREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_OOS_MODEL_CREATEOPSITEMRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_CREATEOPSITEMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT CreateOpsItemResult : public ServiceResult
{
public:
struct OpsItem
{
std::string status;
std::string lastModifiedBy;
std::string description;
std::string category;
std::string createdBy;
std::string resourceGroupId;
int priority;
std::string attributes;
std::string title;
std::string severity;
std::string createDate;
std::string source;
std::string updateDate;
std::string opsItemId;
std::string solutions;
std::string resources;
std::string tags;
};
CreateOpsItemResult();
explicit CreateOpsItemResult(const std::string &payload);
~CreateOpsItemResult();
OpsItem getOpsItem()const;
protected:
void parse(const std::string &payload);
private:
OpsItem opsItem_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEOPSITEMRESULT_H_

View File

@@ -46,8 +46,8 @@ public:
void setValue(const std::string &value);
std::string getKeyId() const;
void setKeyId(const std::string &keyId);
std::string getTags() const;
void setTags(const std::string &tags);
std::map<std::string, std::string> getTags() const;
void setTags(const std::map<std::string, std::string> &tags);
std::string getName() const;
void setName(const std::string &name);
@@ -60,7 +60,7 @@ private:
std::string regionId_;
std::string value_;
std::string keyId_;
std::string tags_;
std::map<std::string, std::string> tags_;
std::string name_;
};
} // namespace Model

View File

@@ -34,10 +34,13 @@ public:
void setRegionId(const std::string &regionId);
std::string getName() const;
void setName(const std::string &name);
bool getForce() const;
void setForce(bool force);
private:
std::string regionId_;
std::string name_;
bool force_;
};
} // namespace Model
} // namespace Oos

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string status;
std::string deployRegionId;
std::string progress;
std::string description;
std::string applicationName;
std::string importTagKey;

View 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.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_GETOPSITEMREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_GETOPSITEMREQUEST_H_
#include <alibabacloud/oos/OosExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Oos {
namespace Model {
class ALIBABACLOUD_OOS_EXPORT GetOpsItemRequest : public RpcServiceRequest {
public:
GetOpsItemRequest();
~GetOpsItemRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getOpsItemId() const;
void setOpsItemId(const std::string &opsItemId);
private:
std::string regionId_;
std::string opsItemId_;
};
} // namespace Model
} // namespace Oos
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OOS_MODEL_GETOPSITEMREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_GETOPSITEMRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_GETOPSITEMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT GetOpsItemResult : public ServiceResult
{
public:
struct OpsItem
{
std::string status;
std::string lastModifiedBy;
std::string category;
std::string description;
std::string resourceGroupId;
int priority;
std::string createBy;
std::string attributes;
std::string title;
std::string severity;
std::string createDate;
std::string source;
std::string updateDate;
std::string opsItemId;
std::vector<std::string> solutions;
std::vector<std::string> resources;
std::string dedupString;
std::string tags;
};
GetOpsItemResult();
explicit GetOpsItemResult(const std::string &payload);
~GetOpsItemResult();
OpsItem getOpsItem()const;
protected:
void parse(const std::string &payload);
private:
OpsItem opsItem_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_GETOPSITEMRESULT_H_

View File

@@ -30,21 +30,33 @@ class ALIBABACLOUD_OOS_EXPORT ListApplicationGroupsRequest : public RpcServiceRe
public:
ListApplicationGroupsRequest();
~ListApplicationGroupsRequest();
std::string getResourceProduct() const;
void setResourceProduct(const std::string &resourceProduct);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getProduct() const;
void setProduct(const std::string &product);
std::string getDeployRegionId() const;
void setDeployRegionId(const std::string &deployRegionId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getApplicationName() const;
void setApplicationName(const std::string &applicationName);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string resourceProduct_;
std::string regionId_;
std::string nextToken_;
std::string resourceId_;
std::string product_;
std::string deployRegionId_;
std::string resourceType_;
std::string applicationName_;
int maxResults_;
};

View File

@@ -0,0 +1,61 @@
/*
* 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_OOS_MODEL_LISTOPSITEMSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTOPSITEMSREQUEST_H_
#include <alibabacloud/oos/OosExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Oos {
namespace Model {
class ALIBABACLOUD_OOS_EXPORT ListOpsItemsRequest : public RpcServiceRequest {
public:
struct Filter {
std::string name;
std::string _operator;
};
ListOpsItemsRequest();
~ListOpsItemsRequest();
std::string getResourceTags() const;
void setResourceTags(const std::string &resourceTags);
std::string getTags() const;
void setTags(const std::string &tags);
std::vector<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string resourceTags_;
std::string tags_;
std::vector<Filter> filter_;
std::string regionId_;
std::string nextToken_;
int maxResults_;
};
} // namespace Model
} // namespace Oos
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OOS_MODEL_LISTOPSITEMSREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_OOS_MODEL_LISTOPSITEMSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTOPSITEMSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListOpsItemsResult : public ServiceResult
{
public:
struct OpsItem
{
std::string status;
std::string updateDate;
std::string opsItemId;
std::string category;
int priority;
std::string title;
std::string severity;
std::vector<std::string> resources;
std::string createDate;
std::string source;
std::string tags;
};
ListOpsItemsResult();
explicit ListOpsItemsResult(const std::string &payload);
~ListOpsItemsResult();
std::vector<OpsItem> getOpsItems()const;
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::vector<OpsItem> opsItems_;
int totalCount_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTOPSITEMSRESULT_H_

View File

@@ -54,11 +54,13 @@ namespace AlibabaCloud
ListStateConfigurationsResult();
explicit ListStateConfigurationsResult(const std::string &payload);
~ListStateConfigurationsResult();
std::string getNextToken()const;
std::vector<StateConfiguration> getStateConfigurations()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<StateConfiguration> stateConfigurations_;
};

View File

@@ -34,6 +34,8 @@ public:
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getTemplateURL() const;
void setTemplateURL(const std::string &templateURL);
std::string getMode() const;
void setMode(const std::string &mode);
std::string getResourceGroupId() const;
@@ -60,6 +62,7 @@ public:
private:
std::string clientToken_;
std::string description_;
std::string templateURL_;
std::string mode_;
std::string resourceGroupId_;
std::string templateVersion_;

View File

@@ -0,0 +1,84 @@
/*
* 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_OOS_MODEL_UPDATEOPSITEMREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATEOPSITEMREQUEST_H_
#include <alibabacloud/oos/OosExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Oos {
namespace Model {
class ALIBABACLOUD_OOS_EXPORT UpdateOpsItemRequest : public RpcServiceRequest {
public:
UpdateOpsItemRequest();
~UpdateOpsItemRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSource() const;
void setSource(const std::string &source);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getSeverity() const;
void setSeverity(const std::string &severity);
std::string getSolutions() const;
void setSolutions(const std::string &solutions);
std::string getResources() const;
void setResources(const std::string &resources);
int getPriority() const;
void setPriority(int priority);
std::string getDedupString() const;
void setDedupString(const std::string &dedupString);
std::string getTags() const;
void setTags(const std::string &tags);
std::string getOpsItemId() const;
void setOpsItemId(const std::string &opsItemId);
std::string getCategory() const;
void setCategory(const std::string &category);
std::string getStatus() const;
void setStatus(const std::string &status);
private:
std::string clientToken_;
std::string description_;
std::string source_;
std::string title_;
std::string resourceGroupId_;
std::string regionId_;
std::string severity_;
std::string solutions_;
std::string resources_;
int priority_;
std::string dedupString_;
std::string tags_;
std::string opsItemId_;
std::string category_;
std::string status_;
};
} // namespace Model
} // namespace Oos
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEOPSITEMREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_OOS_MODEL_UPDATEOPSITEMRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATEOPSITEMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT UpdateOpsItemResult : public ServiceResult
{
public:
struct OpsItem
{
std::string status;
std::string lastModifiedBy;
std::string description;
std::string category;
std::string createdBy;
std::string resourceGroupId;
int priority;
std::string attributes;
std::string title;
std::string severity;
std::string createDate;
std::string source;
std::string updateDate;
std::string opsItemId;
std::vector<std::string> solutions;
std::vector<std::string> resources;
std::string tags;
};
UpdateOpsItemResult();
explicit UpdateOpsItemResult(const std::string &payload);
~UpdateOpsItemResult();
OpsItem getOpsItem()const;
protected:
void parse(const std::string &payload);
private:
OpsItem opsItem_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEOPSITEMRESULT_H_

View File

@@ -32,11 +32,14 @@ public:
~ValidateTemplateContentRequest();
std::string getContent() const;
void setContent(const std::string &content);
std::string getTemplateURL() const;
void setTemplateURL(const std::string &templateURL);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string content_;
std::string templateURL_;
std::string regionId_;
};
} // namespace Model

View File

@@ -231,6 +231,42 @@ OosClient::CreateApplicationGroupOutcomeCallable OosClient::createApplicationGro
return task->get_future();
}
OosClient::CreateOpsItemOutcome OosClient::createOpsItem(const CreateOpsItemRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateOpsItemOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateOpsItemOutcome(CreateOpsItemResult(outcome.result()));
else
return CreateOpsItemOutcome(outcome.error());
}
void OosClient::createOpsItemAsync(const CreateOpsItemRequest& request, const CreateOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createOpsItem(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::CreateOpsItemOutcomeCallable OosClient::createOpsItemCallable(const CreateOpsItemRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateOpsItemOutcome()>>(
[this, request]()
{
return this->createOpsItem(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::CreateParameterOutcome OosClient::createParameter(const CreateParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,6 +1023,42 @@ OosClient::GetInventorySchemaOutcomeCallable OosClient::getInventorySchemaCallab
return task->get_future();
}
OosClient::GetOpsItemOutcome OosClient::getOpsItem(const GetOpsItemRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetOpsItemOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetOpsItemOutcome(GetOpsItemResult(outcome.result()));
else
return GetOpsItemOutcome(outcome.error());
}
void OosClient::getOpsItemAsync(const GetOpsItemRequest& request, const GetOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getOpsItem(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::GetOpsItemOutcomeCallable OosClient::getOpsItemCallable(const GetOpsItemRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetOpsItemOutcome()>>(
[this, request]()
{
return this->getOpsItem(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::GetParameterOutcome OosClient::getParameter(const GetParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +1707,42 @@ OosClient::ListInventoryEntriesOutcomeCallable OosClient::listInventoryEntriesCa
return task->get_future();
}
OosClient::ListOpsItemsOutcome OosClient::listOpsItems(const ListOpsItemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListOpsItemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListOpsItemsOutcome(ListOpsItemsResult(outcome.result()));
else
return ListOpsItemsOutcome(outcome.error());
}
void OosClient::listOpsItemsAsync(const ListOpsItemsRequest& request, const ListOpsItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listOpsItems(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListOpsItemsOutcomeCallable OosClient::listOpsItemsCallable(const ListOpsItemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListOpsItemsOutcome()>>(
[this, request]()
{
return this->listOpsItems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListParameterVersionsOutcome OosClient::listParameterVersions(const ListParameterVersionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2499,6 +2607,42 @@ OosClient::UpdateExecutionOutcomeCallable OosClient::updateExecutionCallable(con
return task->get_future();
}
OosClient::UpdateOpsItemOutcome OosClient::updateOpsItem(const UpdateOpsItemRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateOpsItemOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateOpsItemOutcome(UpdateOpsItemResult(outcome.result()));
else
return UpdateOpsItemOutcome(outcome.error());
}
void OosClient::updateOpsItemAsync(const UpdateOpsItemRequest& request, const UpdateOpsItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateOpsItem(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::UpdateOpsItemOutcomeCallable OosClient::updateOpsItemCallable(const UpdateOpsItemRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateOpsItemOutcome()>>(
[this, request]()
{
return this->updateOpsItem(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::UpdateParameterOutcome OosClient::updateParameter(const UpdateParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,144 @@
/*
* 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/oos/model/CreateOpsItemRequest.h>
using AlibabaCloud::Oos::Model::CreateOpsItemRequest;
CreateOpsItemRequest::CreateOpsItemRequest()
: RpcServiceRequest("oos", "2019-06-01", "CreateOpsItem") {
setMethod(HttpRequest::Method::Post);
}
CreateOpsItemRequest::~CreateOpsItemRequest() {}
std::string CreateOpsItemRequest::getClientToken() const {
return clientToken_;
}
void CreateOpsItemRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateOpsItemRequest::getDescription() const {
return description_;
}
void CreateOpsItemRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateOpsItemRequest::getSource() const {
return source_;
}
void CreateOpsItemRequest::setSource(const std::string &source) {
source_ = source;
setParameter(std::string("Source"), source);
}
std::string CreateOpsItemRequest::getTitle() const {
return title_;
}
void CreateOpsItemRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
std::string CreateOpsItemRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateOpsItemRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateOpsItemRequest::getRegionId() const {
return regionId_;
}
void CreateOpsItemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateOpsItemRequest::getSeverity() const {
return severity_;
}
void CreateOpsItemRequest::setSeverity(const std::string &severity) {
severity_ = severity;
setParameter(std::string("Severity"), severity);
}
std::string CreateOpsItemRequest::getSolutions() const {
return solutions_;
}
void CreateOpsItemRequest::setSolutions(const std::string &solutions) {
solutions_ = solutions;
setParameter(std::string("Solutions"), solutions);
}
std::string CreateOpsItemRequest::getResources() const {
return resources_;
}
void CreateOpsItemRequest::setResources(const std::string &resources) {
resources_ = resources;
setParameter(std::string("Resources"), resources);
}
int CreateOpsItemRequest::getPriority() const {
return priority_;
}
void CreateOpsItemRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
std::string CreateOpsItemRequest::getDedupString() const {
return dedupString_;
}
void CreateOpsItemRequest::setDedupString(const std::string &dedupString) {
dedupString_ = dedupString;
setParameter(std::string("DedupString"), dedupString);
}
std::string CreateOpsItemRequest::getTags() const {
return tags_;
}
void CreateOpsItemRequest::setTags(const std::string &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
}
std::string CreateOpsItemRequest::getCategory() const {
return category_;
}
void CreateOpsItemRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/oos/model/CreateOpsItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
CreateOpsItemResult::CreateOpsItemResult() :
ServiceResult()
{}
CreateOpsItemResult::CreateOpsItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOpsItemResult::~CreateOpsItemResult()
{}
void CreateOpsItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto opsItemNode = value["OpsItem"];
if(!opsItemNode["Tags"].isNull())
opsItem_.tags = opsItemNode["Tags"].asString();
if(!opsItemNode["UpdateDate"].isNull())
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
if(!opsItemNode["Description"].isNull())
opsItem_.description = opsItemNode["Description"].asString();
if(!opsItemNode["OpsItemId"].isNull())
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
if(!opsItemNode["CreateDate"].isNull())
opsItem_.createDate = opsItemNode["CreateDate"].asString();
if(!opsItemNode["Title"].isNull())
opsItem_.title = opsItemNode["Title"].asString();
if(!opsItemNode["Status"].isNull())
opsItem_.status = opsItemNode["Status"].asString();
if(!opsItemNode["Severity"].isNull())
opsItem_.severity = opsItemNode["Severity"].asString();
if(!opsItemNode["Category"].isNull())
opsItem_.category = opsItemNode["Category"].asString();
if(!opsItemNode["Source"].isNull())
opsItem_.source = opsItemNode["Source"].asString();
if(!opsItemNode["Priority"].isNull())
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
if(!opsItemNode["Solutions"].isNull())
opsItem_.solutions = opsItemNode["Solutions"].asString();
if(!opsItemNode["Resources"].isNull())
opsItem_.resources = opsItemNode["Resources"].asString();
if(!opsItemNode["Attributes"].isNull())
opsItem_.attributes = opsItemNode["Attributes"].asString();
if(!opsItemNode["CreatedBy"].isNull())
opsItem_.createdBy = opsItemNode["CreatedBy"].asString();
if(!opsItemNode["LastModifiedBy"].isNull())
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
if(!opsItemNode["ResourceGroupId"].isNull())
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
}
CreateOpsItemResult::OpsItem CreateOpsItemResult::getOpsItem()const
{
return opsItem_;
}

View File

@@ -97,13 +97,15 @@ void CreateSecretParameterRequest::setKeyId(const std::string &keyId) {
setParameter(std::string("KeyId"), keyId);
}
std::string CreateSecretParameterRequest::getTags() const {
std::map<std::string, std::string> CreateSecretParameterRequest::getTags() const {
return tags_;
}
void CreateSecretParameterRequest::setTags(const std::string &tags) {
void CreateSecretParameterRequest::setTags(const std::map<std::string, std::string> &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
for(auto const &iter1 : tags) {
setParameter(std::string("Tags") + "." + iter1.first, iter1.second);
}
}
std::string CreateSecretParameterRequest::getName() const {

View File

@@ -43,3 +43,12 @@ void DeleteApplicationRequest::setName(const std::string &name) {
setParameter(std::string("Name"), name);
}
bool DeleteApplicationRequest::getForce() const {
return force_;
}
void DeleteApplicationRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -66,6 +66,8 @@ void GetApplicationGroupResult::parse(const std::string &payload)
applicationGroup_.statusReason = applicationGroupNode["StatusReason"].asString();
if(!applicationGroupNode["DeployOutputs"].isNull())
applicationGroup_.deployOutputs = applicationGroupNode["DeployOutputs"].asString();
if(!applicationGroupNode["Progress"].isNull())
applicationGroup_.progress = applicationGroupNode["Progress"].asString();
}

View 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/oos/model/GetOpsItemRequest.h>
using AlibabaCloud::Oos::Model::GetOpsItemRequest;
GetOpsItemRequest::GetOpsItemRequest()
: RpcServiceRequest("oos", "2019-06-01", "GetOpsItem") {
setMethod(HttpRequest::Method::Post);
}
GetOpsItemRequest::~GetOpsItemRequest() {}
std::string GetOpsItemRequest::getRegionId() const {
return regionId_;
}
void GetOpsItemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string GetOpsItemRequest::getOpsItemId() const {
return opsItemId_;
}
void GetOpsItemRequest::setOpsItemId(const std::string &opsItemId) {
opsItemId_ = opsItemId;
setParameter(std::string("OpsItemId"), opsItemId);
}

View 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/oos/model/GetOpsItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
GetOpsItemResult::GetOpsItemResult() :
ServiceResult()
{}
GetOpsItemResult::GetOpsItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOpsItemResult::~GetOpsItemResult()
{}
void GetOpsItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto opsItemNode = value["OpsItem"];
if(!opsItemNode["OpsItemId"].isNull())
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
if(!opsItemNode["CreateDate"].isNull())
opsItem_.createDate = opsItemNode["CreateDate"].asString();
if(!opsItemNode["UpdateDate"].isNull())
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
if(!opsItemNode["Title"].isNull())
opsItem_.title = opsItemNode["Title"].asString();
if(!opsItemNode["Status"].isNull())
opsItem_.status = opsItemNode["Status"].asString();
if(!opsItemNode["Severity"].isNull())
opsItem_.severity = opsItemNode["Severity"].asString();
if(!opsItemNode["Category"].isNull())
opsItem_.category = opsItemNode["Category"].asString();
if(!opsItemNode["Source"].isNull())
opsItem_.source = opsItemNode["Source"].asString();
if(!opsItemNode["Priority"].isNull())
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
if(!opsItemNode["Tags"].isNull())
opsItem_.tags = opsItemNode["Tags"].asString();
if(!opsItemNode["DedupString"].isNull())
opsItem_.dedupString = opsItemNode["DedupString"].asString();
if(!opsItemNode["ResourceGroupId"].isNull())
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
if(!opsItemNode["Description"].isNull())
opsItem_.description = opsItemNode["Description"].asString();
if(!opsItemNode["CreateBy"].isNull())
opsItem_.createBy = opsItemNode["CreateBy"].asString();
if(!opsItemNode["LastModifiedBy"].isNull())
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
if(!opsItemNode["Attributes"].isNull())
opsItem_.attributes = opsItemNode["Attributes"].asString();
auto allSolutions = opsItemNode["Solutions"]["Solution"];
for (auto value : allSolutions)
opsItem_.solutions.push_back(value.asString());
auto allResources = opsItemNode["Resources"]["Resource"];
for (auto value : allResources)
opsItem_.resources.push_back(value.asString());
}
GetOpsItemResult::OpsItem GetOpsItemResult::getOpsItem()const
{
return opsItem_;
}

View File

@@ -25,6 +25,15 @@ ListApplicationGroupsRequest::ListApplicationGroupsRequest()
ListApplicationGroupsRequest::~ListApplicationGroupsRequest() {}
std::string ListApplicationGroupsRequest::getResourceProduct() const {
return resourceProduct_;
}
void ListApplicationGroupsRequest::setResourceProduct(const std::string &resourceProduct) {
resourceProduct_ = resourceProduct;
setParameter(std::string("ResourceProduct"), resourceProduct);
}
std::string ListApplicationGroupsRequest::getRegionId() const {
return regionId_;
}
@@ -43,6 +52,24 @@ void ListApplicationGroupsRequest::setNextToken(const std::string &nextToken) {
setParameter(std::string("NextToken"), nextToken);
}
std::string ListApplicationGroupsRequest::getResourceId() const {
return resourceId_;
}
void ListApplicationGroupsRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string ListApplicationGroupsRequest::getProduct() const {
return product_;
}
void ListApplicationGroupsRequest::setProduct(const std::string &product) {
product_ = product;
setParameter(std::string("Product"), product);
}
std::string ListApplicationGroupsRequest::getDeployRegionId() const {
return deployRegionId_;
}
@@ -52,6 +79,15 @@ void ListApplicationGroupsRequest::setDeployRegionId(const std::string &deployRe
setParameter(std::string("DeployRegionId"), deployRegionId);
}
std::string ListApplicationGroupsRequest::getResourceType() const {
return resourceType_;
}
void ListApplicationGroupsRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListApplicationGroupsRequest::getApplicationName() const {
return applicationName_;
}

View File

@@ -0,0 +1,86 @@
/*
* 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/oos/model/ListOpsItemsRequest.h>
using AlibabaCloud::Oos::Model::ListOpsItemsRequest;
ListOpsItemsRequest::ListOpsItemsRequest()
: RpcServiceRequest("oos", "2019-06-01", "ListOpsItems") {
setMethod(HttpRequest::Method::Post);
}
ListOpsItemsRequest::~ListOpsItemsRequest() {}
std::string ListOpsItemsRequest::getResourceTags() const {
return resourceTags_;
}
void ListOpsItemsRequest::setResourceTags(const std::string &resourceTags) {
resourceTags_ = resourceTags;
setParameter(std::string("ResourceTags"), resourceTags);
}
std::string ListOpsItemsRequest::getTags() const {
return tags_;
}
void ListOpsItemsRequest::setTags(const std::string &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
}
std::vector<ListOpsItemsRequest::Filter> ListOpsItemsRequest::getFilter() const {
return filter_;
}
void ListOpsItemsRequest::setFilter(const std::vector<ListOpsItemsRequest::Filter> &filter) {
filter_ = filter;
for(int dep1 = 0; dep1 != filter.size(); dep1++) {
auto filterObj = filter.at(dep1);
std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1);
setParameter(filterObjStr + ".Name", filterObj.name);
setParameter(filterObjStr + ".Operator", filterObj._operator);
}
}
std::string ListOpsItemsRequest::getRegionId() const {
return regionId_;
}
void ListOpsItemsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListOpsItemsRequest::getNextToken() const {
return nextToken_;
}
void ListOpsItemsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
int ListOpsItemsRequest::getMaxResults() const {
return maxResults_;
}
void ListOpsItemsRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -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.
*/
#include <alibabacloud/oos/model/ListOpsItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListOpsItemsResult::ListOpsItemsResult() :
ServiceResult()
{}
ListOpsItemsResult::ListOpsItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListOpsItemsResult::~ListOpsItemsResult()
{}
void ListOpsItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOpsItemsNode = value["OpsItems"]["OpsItem"];
for (auto valueOpsItemsOpsItem : allOpsItemsNode)
{
OpsItem opsItemsObject;
if(!valueOpsItemsOpsItem["OpsItemId"].isNull())
opsItemsObject.opsItemId = valueOpsItemsOpsItem["OpsItemId"].asString();
if(!valueOpsItemsOpsItem["CreateDate"].isNull())
opsItemsObject.createDate = valueOpsItemsOpsItem["CreateDate"].asString();
if(!valueOpsItemsOpsItem["UpdateDate"].isNull())
opsItemsObject.updateDate = valueOpsItemsOpsItem["UpdateDate"].asString();
if(!valueOpsItemsOpsItem["Title"].isNull())
opsItemsObject.title = valueOpsItemsOpsItem["Title"].asString();
if(!valueOpsItemsOpsItem["Status"].isNull())
opsItemsObject.status = valueOpsItemsOpsItem["Status"].asString();
if(!valueOpsItemsOpsItem["Severity"].isNull())
opsItemsObject.severity = valueOpsItemsOpsItem["Severity"].asString();
if(!valueOpsItemsOpsItem["Category"].isNull())
opsItemsObject.category = valueOpsItemsOpsItem["Category"].asString();
if(!valueOpsItemsOpsItem["Source"].isNull())
opsItemsObject.source = valueOpsItemsOpsItem["Source"].asString();
if(!valueOpsItemsOpsItem["Priority"].isNull())
opsItemsObject.priority = std::stoi(valueOpsItemsOpsItem["Priority"].asString());
if(!valueOpsItemsOpsItem["Tags"].isNull())
opsItemsObject.tags = valueOpsItemsOpsItem["Tags"].asString();
auto allResources = value["Resources"]["Resource"];
for (auto value : allResources)
opsItemsObject.resources.push_back(value.asString());
opsItems_.push_back(opsItemsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<ListOpsItemsResult::OpsItem> ListOpsItemsResult::getOpsItems()const
{
return opsItems_;
}
int ListOpsItemsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListOpsItemsResult::getNextToken()const
{
return nextToken_;
}
int ListOpsItemsResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -73,9 +73,16 @@ void ListStateConfigurationsResult::parse(const std::string &payload)
stateConfigurationsObject.templateId = valueStateConfigurationsStateConfiguration["TemplateId"].asString();
stateConfigurations_.push_back(stateConfigurationsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListStateConfigurationsResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListStateConfigurationsResult::StateConfiguration> ListStateConfigurationsResult::getStateConfigurations()const
{
return stateConfigurations_;

View File

@@ -43,6 +43,15 @@ void StartExecutionRequest::setDescription(const std::string &description) {
setParameter(std::string("Description"), description);
}
std::string StartExecutionRequest::getTemplateURL() const {
return templateURL_;
}
void StartExecutionRequest::setTemplateURL(const std::string &templateURL) {
templateURL_ = templateURL;
setParameter(std::string("TemplateURL"), templateURL);
}
std::string StartExecutionRequest::getMode() const {
return mode_;
}

View File

@@ -0,0 +1,162 @@
/*
* 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/oos/model/UpdateOpsItemRequest.h>
using AlibabaCloud::Oos::Model::UpdateOpsItemRequest;
UpdateOpsItemRequest::UpdateOpsItemRequest()
: RpcServiceRequest("oos", "2019-06-01", "UpdateOpsItem") {
setMethod(HttpRequest::Method::Post);
}
UpdateOpsItemRequest::~UpdateOpsItemRequest() {}
std::string UpdateOpsItemRequest::getClientToken() const {
return clientToken_;
}
void UpdateOpsItemRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateOpsItemRequest::getDescription() const {
return description_;
}
void UpdateOpsItemRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string UpdateOpsItemRequest::getSource() const {
return source_;
}
void UpdateOpsItemRequest::setSource(const std::string &source) {
source_ = source;
setParameter(std::string("Source"), source);
}
std::string UpdateOpsItemRequest::getTitle() const {
return title_;
}
void UpdateOpsItemRequest::setTitle(const std::string &title) {
title_ = title;
setParameter(std::string("Title"), title);
}
std::string UpdateOpsItemRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void UpdateOpsItemRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string UpdateOpsItemRequest::getRegionId() const {
return regionId_;
}
void UpdateOpsItemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string UpdateOpsItemRequest::getSeverity() const {
return severity_;
}
void UpdateOpsItemRequest::setSeverity(const std::string &severity) {
severity_ = severity;
setParameter(std::string("Severity"), severity);
}
std::string UpdateOpsItemRequest::getSolutions() const {
return solutions_;
}
void UpdateOpsItemRequest::setSolutions(const std::string &solutions) {
solutions_ = solutions;
setParameter(std::string("Solutions"), solutions);
}
std::string UpdateOpsItemRequest::getResources() const {
return resources_;
}
void UpdateOpsItemRequest::setResources(const std::string &resources) {
resources_ = resources;
setParameter(std::string("Resources"), resources);
}
int UpdateOpsItemRequest::getPriority() const {
return priority_;
}
void UpdateOpsItemRequest::setPriority(int priority) {
priority_ = priority;
setParameter(std::string("Priority"), std::to_string(priority));
}
std::string UpdateOpsItemRequest::getDedupString() const {
return dedupString_;
}
void UpdateOpsItemRequest::setDedupString(const std::string &dedupString) {
dedupString_ = dedupString;
setParameter(std::string("DedupString"), dedupString);
}
std::string UpdateOpsItemRequest::getTags() const {
return tags_;
}
void UpdateOpsItemRequest::setTags(const std::string &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
}
std::string UpdateOpsItemRequest::getOpsItemId() const {
return opsItemId_;
}
void UpdateOpsItemRequest::setOpsItemId(const std::string &opsItemId) {
opsItemId_ = opsItemId;
setParameter(std::string("OpsItemId"), opsItemId);
}
std::string UpdateOpsItemRequest::getCategory() const {
return category_;
}
void UpdateOpsItemRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}
std::string UpdateOpsItemRequest::getStatus() const {
return status_;
}
void UpdateOpsItemRequest::setStatus(const std::string &status) {
status_ = status;
setParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/oos/model/UpdateOpsItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
UpdateOpsItemResult::UpdateOpsItemResult() :
ServiceResult()
{}
UpdateOpsItemResult::UpdateOpsItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateOpsItemResult::~UpdateOpsItemResult()
{}
void UpdateOpsItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto opsItemNode = value["OpsItem"];
if(!opsItemNode["Tags"].isNull())
opsItem_.tags = opsItemNode["Tags"].asString();
if(!opsItemNode["UpdateDate"].isNull())
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
if(!opsItemNode["Description"].isNull())
opsItem_.description = opsItemNode["Description"].asString();
if(!opsItemNode["OpsItemId"].isNull())
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
if(!opsItemNode["CreateDate"].isNull())
opsItem_.createDate = opsItemNode["CreateDate"].asString();
if(!opsItemNode["Title"].isNull())
opsItem_.title = opsItemNode["Title"].asString();
if(!opsItemNode["Status"].isNull())
opsItem_.status = opsItemNode["Status"].asString();
if(!opsItemNode["Severity"].isNull())
opsItem_.severity = opsItemNode["Severity"].asString();
if(!opsItemNode["Category"].isNull())
opsItem_.category = opsItemNode["Category"].asString();
if(!opsItemNode["Source"].isNull())
opsItem_.source = opsItemNode["Source"].asString();
if(!opsItemNode["Priority"].isNull())
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
if(!opsItemNode["Attributes"].isNull())
opsItem_.attributes = opsItemNode["Attributes"].asString();
if(!opsItemNode["CreatedBy"].isNull())
opsItem_.createdBy = opsItemNode["CreatedBy"].asString();
if(!opsItemNode["LastModifiedBy"].isNull())
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
if(!opsItemNode["ResourceGroupId"].isNull())
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
auto allSolutions = opsItemNode["Solutions"]["solution"];
for (auto value : allSolutions)
opsItem_.solutions.push_back(value.asString());
auto allResources = opsItemNode["Resources"]["resource"];
for (auto value : allResources)
opsItem_.resources.push_back(value.asString());
}
UpdateOpsItemResult::OpsItem UpdateOpsItemResult::getOpsItem()const
{
return opsItem_;
}

View File

@@ -34,6 +34,15 @@ void ValidateTemplateContentRequest::setContent(const std::string &content) {
setParameter(std::string("Content"), content);
}
std::string ValidateTemplateContentRequest::getTemplateURL() const {
return templateURL_;
}
void ValidateTemplateContentRequest::setTemplateURL(const std::string &templateURL) {
templateURL_ = templateURL;
setParameter(std::string("TemplateURL"), templateURL);
}
std::string ValidateTemplateContentRequest::getRegionId() const {
return regionId_;
}