Compare commits
5 Commits
Ons-patch
...
Cloudauth-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcc90161eb | ||
|
|
7bde7a21f4 | ||
|
|
e912c2adc5 | ||
|
|
82cfdabb16 | ||
|
|
a009cbcc4f |
17
CHANGELOG
17
CHANGELOG
@@ -1,3 +1,20 @@
|
|||||||
|
2021-02-24 Version: patch
|
||||||
|
- ALL API.
|
||||||
|
|
||||||
|
2021-02-23 Version: patch
|
||||||
|
- Supported List Namespaces.
|
||||||
|
- Supported List Groups.
|
||||||
|
- Supported List Jobs.
|
||||||
|
|
||||||
|
2021-02-22 Version: patch
|
||||||
|
- Support input parameter DeploymentSetId for CreateAutoProvisioningGroup.
|
||||||
|
|
||||||
|
2021-02-19 Version: patch
|
||||||
|
- Generated 2020-01-11 for `servicemesh`.
|
||||||
|
|
||||||
|
2021-02-19 Version: patch
|
||||||
|
- Add new API for recording.
|
||||||
|
|
||||||
2021-02-19 Version: patch
|
2021-02-19 Version: patch
|
||||||
- Add API OpenOnsService which can active ons service.
|
- Add API OpenOnsService which can active ons service.
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ set(schedulerx2_public_header
|
|||||||
include/alibabacloud/schedulerx2/Schedulerx2Export.h )
|
include/alibabacloud/schedulerx2/Schedulerx2Export.h )
|
||||||
|
|
||||||
set(schedulerx2_public_header_model
|
set(schedulerx2_public_header_model
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchDeleteJobsRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchDeleteJobsResult.h
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchDisableJobsRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchDisableJobsResult.h
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchEnableJobsRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/BatchEnableJobsResult.h
|
||||||
include/alibabacloud/schedulerx2/model/CreateAppGroupRequest.h
|
include/alibabacloud/schedulerx2/model/CreateAppGroupRequest.h
|
||||||
include/alibabacloud/schedulerx2/model/CreateAppGroupResult.h
|
include/alibabacloud/schedulerx2/model/CreateAppGroupResult.h
|
||||||
include/alibabacloud/schedulerx2/model/CreateJobRequest.h
|
include/alibabacloud/schedulerx2/model/CreateJobRequest.h
|
||||||
@@ -51,6 +57,12 @@ set(schedulerx2_public_header_model
|
|||||||
include/alibabacloud/schedulerx2/model/GetJobInstanceListResult.h
|
include/alibabacloud/schedulerx2/model/GetJobInstanceListResult.h
|
||||||
include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h
|
include/alibabacloud/schedulerx2/model/GrantPermissionRequest.h
|
||||||
include/alibabacloud/schedulerx2/model/GrantPermissionResult.h
|
include/alibabacloud/schedulerx2/model/GrantPermissionResult.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListGroupsRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListGroupsResult.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListJobsRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListJobsResult.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListNamespacesRequest.h
|
||||||
|
include/alibabacloud/schedulerx2/model/ListNamespacesResult.h
|
||||||
include/alibabacloud/schedulerx2/model/RevokePermissionRequest.h
|
include/alibabacloud/schedulerx2/model/RevokePermissionRequest.h
|
||||||
include/alibabacloud/schedulerx2/model/RevokePermissionResult.h
|
include/alibabacloud/schedulerx2/model/RevokePermissionResult.h
|
||||||
include/alibabacloud/schedulerx2/model/StopInstanceRequest.h
|
include/alibabacloud/schedulerx2/model/StopInstanceRequest.h
|
||||||
@@ -60,6 +72,12 @@ set(schedulerx2_public_header_model
|
|||||||
|
|
||||||
set(schedulerx2_src
|
set(schedulerx2_src
|
||||||
src/Schedulerx2Client.cc
|
src/Schedulerx2Client.cc
|
||||||
|
src/model/BatchDeleteJobsRequest.cc
|
||||||
|
src/model/BatchDeleteJobsResult.cc
|
||||||
|
src/model/BatchDisableJobsRequest.cc
|
||||||
|
src/model/BatchDisableJobsResult.cc
|
||||||
|
src/model/BatchEnableJobsRequest.cc
|
||||||
|
src/model/BatchEnableJobsResult.cc
|
||||||
src/model/CreateAppGroupRequest.cc
|
src/model/CreateAppGroupRequest.cc
|
||||||
src/model/CreateAppGroupResult.cc
|
src/model/CreateAppGroupResult.cc
|
||||||
src/model/CreateJobRequest.cc
|
src/model/CreateJobRequest.cc
|
||||||
@@ -90,6 +108,12 @@ set(schedulerx2_src
|
|||||||
src/model/GetJobInstanceListResult.cc
|
src/model/GetJobInstanceListResult.cc
|
||||||
src/model/GrantPermissionRequest.cc
|
src/model/GrantPermissionRequest.cc
|
||||||
src/model/GrantPermissionResult.cc
|
src/model/GrantPermissionResult.cc
|
||||||
|
src/model/ListGroupsRequest.cc
|
||||||
|
src/model/ListGroupsResult.cc
|
||||||
|
src/model/ListJobsRequest.cc
|
||||||
|
src/model/ListJobsResult.cc
|
||||||
|
src/model/ListNamespacesRequest.cc
|
||||||
|
src/model/ListNamespacesResult.cc
|
||||||
src/model/RevokePermissionRequest.cc
|
src/model/RevokePermissionRequest.cc
|
||||||
src/model/RevokePermissionResult.cc
|
src/model/RevokePermissionResult.cc
|
||||||
src/model/StopInstanceRequest.cc
|
src/model/StopInstanceRequest.cc
|
||||||
|
|||||||
@@ -22,6 +22,12 @@
|
|||||||
#include <alibabacloud/core/EndpointProvider.h>
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
#include <alibabacloud/core/RpcServiceClient.h>
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
#include "Schedulerx2Export.h"
|
#include "Schedulerx2Export.h"
|
||||||
|
#include "model/BatchDeleteJobsRequest.h"
|
||||||
|
#include "model/BatchDeleteJobsResult.h"
|
||||||
|
#include "model/BatchDisableJobsRequest.h"
|
||||||
|
#include "model/BatchDisableJobsResult.h"
|
||||||
|
#include "model/BatchEnableJobsRequest.h"
|
||||||
|
#include "model/BatchEnableJobsResult.h"
|
||||||
#include "model/CreateAppGroupRequest.h"
|
#include "model/CreateAppGroupRequest.h"
|
||||||
#include "model/CreateAppGroupResult.h"
|
#include "model/CreateAppGroupResult.h"
|
||||||
#include "model/CreateJobRequest.h"
|
#include "model/CreateJobRequest.h"
|
||||||
@@ -52,6 +58,12 @@
|
|||||||
#include "model/GetJobInstanceListResult.h"
|
#include "model/GetJobInstanceListResult.h"
|
||||||
#include "model/GrantPermissionRequest.h"
|
#include "model/GrantPermissionRequest.h"
|
||||||
#include "model/GrantPermissionResult.h"
|
#include "model/GrantPermissionResult.h"
|
||||||
|
#include "model/ListGroupsRequest.h"
|
||||||
|
#include "model/ListGroupsResult.h"
|
||||||
|
#include "model/ListJobsRequest.h"
|
||||||
|
#include "model/ListJobsResult.h"
|
||||||
|
#include "model/ListNamespacesRequest.h"
|
||||||
|
#include "model/ListNamespacesResult.h"
|
||||||
#include "model/RevokePermissionRequest.h"
|
#include "model/RevokePermissionRequest.h"
|
||||||
#include "model/RevokePermissionResult.h"
|
#include "model/RevokePermissionResult.h"
|
||||||
#include "model/StopInstanceRequest.h"
|
#include "model/StopInstanceRequest.h"
|
||||||
@@ -67,6 +79,15 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_SCHEDULERX2_EXPORT Schedulerx2Client : public RpcServiceClient
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT Schedulerx2Client : public RpcServiceClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
typedef Outcome<Error, Model::BatchDeleteJobsResult> BatchDeleteJobsOutcome;
|
||||||
|
typedef std::future<BatchDeleteJobsOutcome> BatchDeleteJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::BatchDeleteJobsRequest&, const BatchDeleteJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::BatchDisableJobsResult> BatchDisableJobsOutcome;
|
||||||
|
typedef std::future<BatchDisableJobsOutcome> BatchDisableJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::BatchDisableJobsRequest&, const BatchDisableJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDisableJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::BatchEnableJobsResult> BatchEnableJobsOutcome;
|
||||||
|
typedef std::future<BatchEnableJobsOutcome> BatchEnableJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::BatchEnableJobsRequest&, const BatchEnableJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchEnableJobsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateAppGroupResult> CreateAppGroupOutcome;
|
typedef Outcome<Error, Model::CreateAppGroupResult> CreateAppGroupOutcome;
|
||||||
typedef std::future<CreateAppGroupOutcome> CreateAppGroupOutcomeCallable;
|
typedef std::future<CreateAppGroupOutcome> CreateAppGroupOutcomeCallable;
|
||||||
typedef std::function<void(const Schedulerx2Client*, const Model::CreateAppGroupRequest&, const CreateAppGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAppGroupAsyncHandler;
|
typedef std::function<void(const Schedulerx2Client*, const Model::CreateAppGroupRequest&, const CreateAppGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAppGroupAsyncHandler;
|
||||||
@@ -112,6 +133,15 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GrantPermissionResult> GrantPermissionOutcome;
|
typedef Outcome<Error, Model::GrantPermissionResult> GrantPermissionOutcome;
|
||||||
typedef std::future<GrantPermissionOutcome> GrantPermissionOutcomeCallable;
|
typedef std::future<GrantPermissionOutcome> GrantPermissionOutcomeCallable;
|
||||||
typedef std::function<void(const Schedulerx2Client*, const Model::GrantPermissionRequest&, const GrantPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantPermissionAsyncHandler;
|
typedef std::function<void(const Schedulerx2Client*, const Model::GrantPermissionRequest&, const GrantPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantPermissionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListGroupsResult> ListGroupsOutcome;
|
||||||
|
typedef std::future<ListGroupsOutcome> ListGroupsOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::ListGroupsRequest&, const ListGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListJobsResult> ListJobsOutcome;
|
||||||
|
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::ListJobsRequest&, const ListJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListNamespacesResult> ListNamespacesOutcome;
|
||||||
|
typedef std::future<ListNamespacesOutcome> ListNamespacesOutcomeCallable;
|
||||||
|
typedef std::function<void(const Schedulerx2Client*, const Model::ListNamespacesRequest&, const ListNamespacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListNamespacesAsyncHandler;
|
||||||
typedef Outcome<Error, Model::RevokePermissionResult> RevokePermissionOutcome;
|
typedef Outcome<Error, Model::RevokePermissionResult> RevokePermissionOutcome;
|
||||||
typedef std::future<RevokePermissionOutcome> RevokePermissionOutcomeCallable;
|
typedef std::future<RevokePermissionOutcome> RevokePermissionOutcomeCallable;
|
||||||
typedef std::function<void(const Schedulerx2Client*, const Model::RevokePermissionRequest&, const RevokePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokePermissionAsyncHandler;
|
typedef std::function<void(const Schedulerx2Client*, const Model::RevokePermissionRequest&, const RevokePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokePermissionAsyncHandler;
|
||||||
@@ -126,6 +156,15 @@ namespace AlibabaCloud
|
|||||||
Schedulerx2Client(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
Schedulerx2Client(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
Schedulerx2Client(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
Schedulerx2Client(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
~Schedulerx2Client();
|
~Schedulerx2Client();
|
||||||
|
BatchDeleteJobsOutcome batchDeleteJobs(const Model::BatchDeleteJobsRequest &request)const;
|
||||||
|
void batchDeleteJobsAsync(const Model::BatchDeleteJobsRequest& request, const BatchDeleteJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
BatchDeleteJobsOutcomeCallable batchDeleteJobsCallable(const Model::BatchDeleteJobsRequest& request) const;
|
||||||
|
BatchDisableJobsOutcome batchDisableJobs(const Model::BatchDisableJobsRequest &request)const;
|
||||||
|
void batchDisableJobsAsync(const Model::BatchDisableJobsRequest& request, const BatchDisableJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
BatchDisableJobsOutcomeCallable batchDisableJobsCallable(const Model::BatchDisableJobsRequest& request) const;
|
||||||
|
BatchEnableJobsOutcome batchEnableJobs(const Model::BatchEnableJobsRequest &request)const;
|
||||||
|
void batchEnableJobsAsync(const Model::BatchEnableJobsRequest& request, const BatchEnableJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
BatchEnableJobsOutcomeCallable batchEnableJobsCallable(const Model::BatchEnableJobsRequest& request) const;
|
||||||
CreateAppGroupOutcome createAppGroup(const Model::CreateAppGroupRequest &request)const;
|
CreateAppGroupOutcome createAppGroup(const Model::CreateAppGroupRequest &request)const;
|
||||||
void createAppGroupAsync(const Model::CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createAppGroupAsync(const Model::CreateAppGroupRequest& request, const CreateAppGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateAppGroupOutcomeCallable createAppGroupCallable(const Model::CreateAppGroupRequest& request) const;
|
CreateAppGroupOutcomeCallable createAppGroupCallable(const Model::CreateAppGroupRequest& request) const;
|
||||||
@@ -171,6 +210,15 @@ namespace AlibabaCloud
|
|||||||
GrantPermissionOutcome grantPermission(const Model::GrantPermissionRequest &request)const;
|
GrantPermissionOutcome grantPermission(const Model::GrantPermissionRequest &request)const;
|
||||||
void grantPermissionAsync(const Model::GrantPermissionRequest& request, const GrantPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void grantPermissionAsync(const Model::GrantPermissionRequest& request, const GrantPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GrantPermissionOutcomeCallable grantPermissionCallable(const Model::GrantPermissionRequest& request) const;
|
GrantPermissionOutcomeCallable grantPermissionCallable(const Model::GrantPermissionRequest& request) const;
|
||||||
|
ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const;
|
||||||
|
void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const;
|
||||||
|
ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const;
|
||||||
|
void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const;
|
||||||
|
ListNamespacesOutcome listNamespaces(const Model::ListNamespacesRequest &request)const;
|
||||||
|
void listNamespacesAsync(const Model::ListNamespacesRequest& request, const ListNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListNamespacesOutcomeCallable listNamespacesCallable(const Model::ListNamespacesRequest& request) const;
|
||||||
RevokePermissionOutcome revokePermission(const Model::RevokePermissionRequest &request)const;
|
RevokePermissionOutcome revokePermission(const Model::RevokePermissionRequest &request)const;
|
||||||
void revokePermissionAsync(const Model::RevokePermissionRequest& request, const RevokePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void revokePermissionAsync(const Model::RevokePermissionRequest& request, const RevokePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
RevokePermissionOutcomeCallable revokePermissionCallable(const Model::RevokePermissionRequest& request) const;
|
RevokePermissionOutcomeCallable revokePermissionCallable(const Model::RevokePermissionRequest& request) const;
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDeleteJobsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
BatchDeleteJobsRequest();
|
||||||
|
~BatchDeleteJobsRequest();
|
||||||
|
|
||||||
|
std::string getNamespaceSource()const;
|
||||||
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getGroupId()const;
|
||||||
|
void setGroupId(const std::string& groupId);
|
||||||
|
std::vector<long> getJobIdList()const;
|
||||||
|
void setJobIdList(const std::vector<long>& jobIdList);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string get_Namespace()const;
|
||||||
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string namespaceSource_;
|
||||||
|
std::string groupId_;
|
||||||
|
std::vector<long> jobIdList_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string _namespace_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSREQUEST_H_
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHDELETEJOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDeleteJobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
BatchDeleteJobsResult();
|
||||||
|
explicit BatchDeleteJobsResult(const std::string &payload);
|
||||||
|
~BatchDeleteJobsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDELETEJOBSRESULT_H_
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDisableJobsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
BatchDisableJobsRequest();
|
||||||
|
~BatchDisableJobsRequest();
|
||||||
|
|
||||||
|
std::string getNamespaceSource()const;
|
||||||
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getGroupId()const;
|
||||||
|
void setGroupId(const std::string& groupId);
|
||||||
|
std::string get_Namespace()const;
|
||||||
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
std::vector<long> getJobIdList()const;
|
||||||
|
void setJobIdList(const std::vector<long>& jobIdList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string groupId_;
|
||||||
|
std::string _namespace_;
|
||||||
|
std::vector<long> jobIdList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSREQUEST_H_
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHDISABLEJOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchDisableJobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
BatchDisableJobsResult();
|
||||||
|
explicit BatchDisableJobsResult(const std::string &payload);
|
||||||
|
~BatchDisableJobsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHDISABLEJOBSRESULT_H_
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchEnableJobsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
BatchEnableJobsRequest();
|
||||||
|
~BatchEnableJobsRequest();
|
||||||
|
|
||||||
|
std::string getNamespaceSource()const;
|
||||||
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getGroupId()const;
|
||||||
|
void setGroupId(const std::string& groupId);
|
||||||
|
std::string get_Namespace()const;
|
||||||
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
std::vector<long> getJobIdList()const;
|
||||||
|
void setJobIdList(const std::vector<long>& jobIdList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string groupId_;
|
||||||
|
std::string _namespace_;
|
||||||
|
std::vector<long> jobIdList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSREQUEST_H_
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_BATCHENABLEJOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT BatchEnableJobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
BatchEnableJobsResult();
|
||||||
|
explicit BatchEnableJobsResult(const std::string &payload);
|
||||||
|
~BatchEnableJobsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_BATCHENABLEJOBSRESULT_H_
|
||||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
|||||||
void setDescription(const std::string& description);
|
void setDescription(const std::string& description);
|
||||||
std::string getAppName()const;
|
std::string getAppName()const;
|
||||||
void setAppName(const std::string& appName);
|
void setAppName(const std::string& appName);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
void set_Namespace(const std::string& _namespace);
|
void set_Namespace(const std::string& _namespace);
|
||||||
std::string getAlarmJson()const;
|
std::string getAlarmJson()const;
|
||||||
@@ -62,6 +64,7 @@ namespace AlibabaCloud
|
|||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string description_;
|
std::string description_;
|
||||||
std::string appName_;
|
std::string appName_;
|
||||||
|
std::string regionId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
std::string alarmJson_;
|
std::string alarmJson_;
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
|||||||
void setTimeout(long timeout);
|
void setTimeout(long timeout);
|
||||||
bool getTimeoutKillEnable()const;
|
bool getTimeoutKillEnable()const;
|
||||||
void setTimeoutKillEnable(bool timeoutKillEnable);
|
void setTimeoutKillEnable(bool timeoutKillEnable);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
void setPageSize(int pageSize);
|
void setPageSize(int pageSize);
|
||||||
int getConsumerSize()const;
|
int getConsumerSize()const;
|
||||||
@@ -109,6 +111,7 @@ namespace AlibabaCloud
|
|||||||
std::string content_;
|
std::string content_;
|
||||||
long timeout_;
|
long timeout_;
|
||||||
bool timeoutKillEnable_;
|
bool timeoutKillEnable_;
|
||||||
|
std::string regionId_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
int consumerSize_;
|
int consumerSize_;
|
||||||
std::string jarUrl_;
|
std::string jarUrl_;
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
|||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
long getJobId()const;
|
long getJobId()const;
|
||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
void set_Namespace(const std::string& _namespace);
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
|
||||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
|||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
long jobId_;
|
long jobId_;
|
||||||
|
std::string regionId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -46,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
long workflowId_;
|
long workflowId_;
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -46,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
long workflowId_;
|
long workflowId_;
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -46,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
long workflowId_;
|
long workflowId_;
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
std::string instanceParameters_;
|
std::string instanceParameters_;
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
|||||||
void setUserId(const std::string& userId);
|
void setUserId(const std::string& userId);
|
||||||
bool getGrantOption()const;
|
bool getGrantOption()const;
|
||||||
void setGrantOption(bool grantOption);
|
void setGrantOption(bool grantOption);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
void set_Namespace(const std::string& _namespace);
|
void set_Namespace(const std::string& _namespace);
|
||||||
std::string getUserName()const;
|
std::string getUserName()const;
|
||||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
|||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string userId_;
|
std::string userId_;
|
||||||
bool grantOption_;
|
bool grantOption_;
|
||||||
|
std::string regionId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
std::string userName_;
|
std::string userName_;
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListGroupsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListGroupsRequest();
|
||||||
|
~ListGroupsRequest();
|
||||||
|
|
||||||
|
std::string getNamespaceSource()const;
|
||||||
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string get_Namespace()const;
|
||||||
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string _namespace_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSREQUEST_H_
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_LISTGROUPSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListGroupsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct AppGroup
|
||||||
|
{
|
||||||
|
std::string description;
|
||||||
|
std::string appKey;
|
||||||
|
std::string appName;
|
||||||
|
std::string groupId;
|
||||||
|
};
|
||||||
|
std::vector<AppGroup> appGroups;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListGroupsResult();
|
||||||
|
explicit ListGroupsResult(const std::string &payload);
|
||||||
|
~ListGroupsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTGROUPSRESULT_H_
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListJobsRequest();
|
||||||
|
~ListJobsRequest();
|
||||||
|
|
||||||
|
std::string getNamespaceSource()const;
|
||||||
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
std::string getGroupId()const;
|
||||||
|
void setGroupId(const std::string& groupId);
|
||||||
|
std::string get_Namespace()const;
|
||||||
|
void set_Namespace(const std::string& _namespace);
|
||||||
|
std::string getJobName()const;
|
||||||
|
void setJobName(const std::string& jobName);
|
||||||
|
std::string getStatus()const;
|
||||||
|
void setStatus(const std::string& status);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
|
std::string groupId_;
|
||||||
|
std::string _namespace_;
|
||||||
|
std::string jobName_;
|
||||||
|
std::string status_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSREQUEST_H_
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_LISTJOBSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListJobsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct Job
|
||||||
|
{
|
||||||
|
struct MapTaskXAttrs
|
||||||
|
{
|
||||||
|
int taskAttemptInterval;
|
||||||
|
int queueSize;
|
||||||
|
int pageSize;
|
||||||
|
int dispatcherSize;
|
||||||
|
int taskMaxAttempt;
|
||||||
|
int consumerSize;
|
||||||
|
};
|
||||||
|
struct TimeConfig
|
||||||
|
{
|
||||||
|
std::string calendar;
|
||||||
|
std::string timeExpression;
|
||||||
|
int dataOffset;
|
||||||
|
int timeType;
|
||||||
|
};
|
||||||
|
struct JobMonitorInfo
|
||||||
|
{
|
||||||
|
struct MonitorConfig
|
||||||
|
{
|
||||||
|
bool timeoutEnable;
|
||||||
|
long timeout;
|
||||||
|
bool failEnable;
|
||||||
|
std::string sendChannel;
|
||||||
|
bool timeoutKillEnable;
|
||||||
|
};
|
||||||
|
struct ContactInfoItem
|
||||||
|
{
|
||||||
|
std::string userName;
|
||||||
|
std::string userPhone;
|
||||||
|
};
|
||||||
|
std::vector<ContactInfoItem> contactInfo;
|
||||||
|
MonitorConfig monitorConfig;
|
||||||
|
};
|
||||||
|
int status;
|
||||||
|
int maxAttempt;
|
||||||
|
std::string description;
|
||||||
|
std::string parameters;
|
||||||
|
std::string jarUrl;
|
||||||
|
std::string maxConcurrency;
|
||||||
|
TimeConfig timeConfig;
|
||||||
|
MapTaskXAttrs mapTaskXAttrs;
|
||||||
|
std::string name;
|
||||||
|
JobMonitorInfo jobMonitorInfo;
|
||||||
|
std::string content;
|
||||||
|
std::string className;
|
||||||
|
int attemptInterval;
|
||||||
|
std::string executeMode;
|
||||||
|
long jobId;
|
||||||
|
};
|
||||||
|
std::vector<Job> jobs;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListJobsResult();
|
||||||
|
explicit ListJobsResult(const std::string &payload);
|
||||||
|
~ListJobsResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTJOBSRESULT_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_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListNamespacesRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListNamespacesRequest();
|
||||||
|
~ListNamespacesRequest();
|
||||||
|
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string regionId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESREQUEST_H_
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* 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_SCHEDULERX2_MODEL_LISTNAMESPACESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/schedulerx2/Schedulerx2Export.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Schedulerx2
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SCHEDULERX2_EXPORT ListNamespacesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct _Namespace
|
||||||
|
{
|
||||||
|
std::string uId;
|
||||||
|
std::string description;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
std::vector<_Namespace> namespaces;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListNamespacesResult();
|
||||||
|
explicit ListNamespacesResult(const std::string &payload);
|
||||||
|
~ListNamespacesResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
int getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
int code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SCHEDULERX2_MODEL_LISTNAMESPACESRESULT_H_
|
||||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getNamespaceSource()const;
|
std::string getNamespaceSource()const;
|
||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -46,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
std::string userId_;
|
std::string userId_;
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
|||||||
void setNamespaceSource(const std::string& namespaceSource);
|
void setNamespaceSource(const std::string& namespaceSource);
|
||||||
long getInstanceId()const;
|
long getInstanceId()const;
|
||||||
void setInstanceId(long instanceId);
|
void setInstanceId(long instanceId);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getGroupId()const;
|
std::string getGroupId()const;
|
||||||
void setGroupId(const std::string& groupId);
|
void setGroupId(const std::string& groupId);
|
||||||
std::string get_Namespace()const;
|
std::string get_Namespace()const;
|
||||||
@@ -50,6 +52,7 @@ namespace AlibabaCloud
|
|||||||
long jobId_;
|
long jobId_;
|
||||||
std::string namespaceSource_;
|
std::string namespaceSource_;
|
||||||
long instanceId_;
|
long instanceId_;
|
||||||
|
std::string regionId_;
|
||||||
std::string groupId_;
|
std::string groupId_;
|
||||||
std::string _namespace_;
|
std::string _namespace_;
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ namespace AlibabaCloud
|
|||||||
void setTimeoutKillEnable(bool timeoutKillEnable);
|
void setTimeoutKillEnable(bool timeoutKillEnable);
|
||||||
long getJobId()const;
|
long getJobId()const;
|
||||||
void setJobId(long jobId);
|
void setJobId(long jobId);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
void setPageSize(int pageSize);
|
void setPageSize(int pageSize);
|
||||||
int getConsumerSize()const;
|
int getConsumerSize()const;
|
||||||
@@ -110,6 +112,7 @@ namespace AlibabaCloud
|
|||||||
long timeout_;
|
long timeout_;
|
||||||
bool timeoutKillEnable_;
|
bool timeoutKillEnable_;
|
||||||
long jobId_;
|
long jobId_;
|
||||||
|
std::string regionId_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
int consumerSize_;
|
int consumerSize_;
|
||||||
std::string jarUrl_;
|
std::string jarUrl_;
|
||||||
|
|||||||
@@ -51,6 +51,114 @@ Schedulerx2Client::Schedulerx2Client(const std::string & accessKeyId, const std:
|
|||||||
Schedulerx2Client::~Schedulerx2Client()
|
Schedulerx2Client::~Schedulerx2Client()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchDeleteJobsOutcome Schedulerx2Client::batchDeleteJobs(const BatchDeleteJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return BatchDeleteJobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return BatchDeleteJobsOutcome(BatchDeleteJobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return BatchDeleteJobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::batchDeleteJobsAsync(const BatchDeleteJobsRequest& request, const BatchDeleteJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, batchDeleteJobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchDeleteJobsOutcomeCallable Schedulerx2Client::batchDeleteJobsCallable(const BatchDeleteJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<BatchDeleteJobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->batchDeleteJobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchDisableJobsOutcome Schedulerx2Client::batchDisableJobs(const BatchDisableJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return BatchDisableJobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return BatchDisableJobsOutcome(BatchDisableJobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return BatchDisableJobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::batchDisableJobsAsync(const BatchDisableJobsRequest& request, const BatchDisableJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, batchDisableJobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchDisableJobsOutcomeCallable Schedulerx2Client::batchDisableJobsCallable(const BatchDisableJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<BatchDisableJobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->batchDisableJobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchEnableJobsOutcome Schedulerx2Client::batchEnableJobs(const BatchEnableJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return BatchEnableJobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return BatchEnableJobsOutcome(BatchEnableJobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return BatchEnableJobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::batchEnableJobsAsync(const BatchEnableJobsRequest& request, const BatchEnableJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, batchEnableJobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::BatchEnableJobsOutcomeCallable Schedulerx2Client::batchEnableJobsCallable(const BatchEnableJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<BatchEnableJobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->batchEnableJobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
Schedulerx2Client::CreateAppGroupOutcome Schedulerx2Client::createAppGroup(const CreateAppGroupRequest &request) const
|
Schedulerx2Client::CreateAppGroupOutcome Schedulerx2Client::createAppGroup(const CreateAppGroupRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -591,6 +699,114 @@ Schedulerx2Client::GrantPermissionOutcomeCallable Schedulerx2Client::grantPermis
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListGroupsOutcome Schedulerx2Client::listGroups(const ListGroupsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListGroupsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListGroupsOutcome(ListGroupsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListGroupsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listGroups(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListGroupsOutcomeCallable Schedulerx2Client::listGroupsCallable(const ListGroupsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListGroupsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listGroups(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListJobsOutcome Schedulerx2Client::listJobs(const ListJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListJobsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListJobsOutcome(ListJobsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListJobsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listJobs(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListJobsOutcomeCallable Schedulerx2Client::listJobsCallable(const ListJobsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListJobsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listJobs(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListNamespacesOutcome Schedulerx2Client::listNamespaces(const ListNamespacesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListNamespacesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListNamespacesOutcome(ListNamespacesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListNamespacesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Schedulerx2Client::listNamespacesAsync(const ListNamespacesRequest& request, const ListNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listNamespaces(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
Schedulerx2Client::ListNamespacesOutcomeCallable Schedulerx2Client::listNamespacesCallable(const ListNamespacesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListNamespacesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listNamespaces(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
Schedulerx2Client::RevokePermissionOutcome Schedulerx2Client::revokePermission(const RevokePermissionRequest &request) const
|
Schedulerx2Client::RevokePermissionOutcome Schedulerx2Client::revokePermission(const RevokePermissionRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
86
schedulerx2/src/model/BatchDeleteJobsRequest.cc
Normal file
86
schedulerx2/src/model/BatchDeleteJobsRequest.cc
Normal 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/schedulerx2/model/BatchDeleteJobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::BatchDeleteJobsRequest;
|
||||||
|
|
||||||
|
BatchDeleteJobsRequest::BatchDeleteJobsRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDeleteJobs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchDeleteJobsRequest::~BatchDeleteJobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string BatchDeleteJobsRequest::getNamespaceSource()const
|
||||||
|
{
|
||||||
|
return namespaceSource_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDeleteJobsRequest::setNamespaceSource(const std::string& namespaceSource)
|
||||||
|
{
|
||||||
|
namespaceSource_ = namespaceSource;
|
||||||
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDeleteJobsRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDeleteJobsRequest::setGroupId(const std::string& groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", groupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<long> BatchDeleteJobsRequest::getJobIdList()const
|
||||||
|
{
|
||||||
|
return jobIdList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDeleteJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
|
||||||
|
{
|
||||||
|
jobIdList_ = jobIdList;
|
||||||
|
for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
|
||||||
|
setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDeleteJobsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDeleteJobsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDeleteJobsRequest::get_Namespace()const
|
||||||
|
{
|
||||||
|
return _namespace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDeleteJobsRequest::set_Namespace(const std::string& _namespace)
|
||||||
|
{
|
||||||
|
_namespace_ = _namespace;
|
||||||
|
setParameter("_Namespace", _namespace);
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx2/src/model/BatchDeleteJobsResult.cc
Normal file
65
schedulerx2/src/model/BatchDeleteJobsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/BatchDeleteJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
BatchDeleteJobsResult::BatchDeleteJobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
BatchDeleteJobsResult::BatchDeleteJobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchDeleteJobsResult::~BatchDeleteJobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void BatchDeleteJobsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDeleteJobsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int BatchDeleteJobsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool BatchDeleteJobsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
86
schedulerx2/src/model/BatchDisableJobsRequest.cc
Normal file
86
schedulerx2/src/model/BatchDisableJobsRequest.cc
Normal 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/schedulerx2/model/BatchDisableJobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::BatchDisableJobsRequest;
|
||||||
|
|
||||||
|
BatchDisableJobsRequest::BatchDisableJobsRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "BatchDisableJobs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchDisableJobsRequest::~BatchDisableJobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string BatchDisableJobsRequest::getNamespaceSource()const
|
||||||
|
{
|
||||||
|
return namespaceSource_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDisableJobsRequest::setNamespaceSource(const std::string& namespaceSource)
|
||||||
|
{
|
||||||
|
namespaceSource_ = namespaceSource;
|
||||||
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDisableJobsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDisableJobsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDisableJobsRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDisableJobsRequest::setGroupId(const std::string& groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", groupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDisableJobsRequest::get_Namespace()const
|
||||||
|
{
|
||||||
|
return _namespace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDisableJobsRequest::set_Namespace(const std::string& _namespace)
|
||||||
|
{
|
||||||
|
_namespace_ = _namespace;
|
||||||
|
setParameter("_Namespace", _namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<long> BatchDisableJobsRequest::getJobIdList()const
|
||||||
|
{
|
||||||
|
return jobIdList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchDisableJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
|
||||||
|
{
|
||||||
|
jobIdList_ = jobIdList;
|
||||||
|
for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
|
||||||
|
setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx2/src/model/BatchDisableJobsResult.cc
Normal file
65
schedulerx2/src/model/BatchDisableJobsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/BatchDisableJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
BatchDisableJobsResult::BatchDisableJobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
BatchDisableJobsResult::BatchDisableJobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchDisableJobsResult::~BatchDisableJobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void BatchDisableJobsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchDisableJobsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int BatchDisableJobsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool BatchDisableJobsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
86
schedulerx2/src/model/BatchEnableJobsRequest.cc
Normal file
86
schedulerx2/src/model/BatchEnableJobsRequest.cc
Normal 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/schedulerx2/model/BatchEnableJobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::BatchEnableJobsRequest;
|
||||||
|
|
||||||
|
BatchEnableJobsRequest::BatchEnableJobsRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "BatchEnableJobs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchEnableJobsRequest::~BatchEnableJobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string BatchEnableJobsRequest::getNamespaceSource()const
|
||||||
|
{
|
||||||
|
return namespaceSource_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchEnableJobsRequest::setNamespaceSource(const std::string& namespaceSource)
|
||||||
|
{
|
||||||
|
namespaceSource_ = namespaceSource;
|
||||||
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchEnableJobsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchEnableJobsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchEnableJobsRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchEnableJobsRequest::setGroupId(const std::string& groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", groupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchEnableJobsRequest::get_Namespace()const
|
||||||
|
{
|
||||||
|
return _namespace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchEnableJobsRequest::set_Namespace(const std::string& _namespace)
|
||||||
|
{
|
||||||
|
_namespace_ = _namespace;
|
||||||
|
setParameter("_Namespace", _namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<long> BatchEnableJobsRequest::getJobIdList()const
|
||||||
|
{
|
||||||
|
return jobIdList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BatchEnableJobsRequest::setJobIdList(const std::vector<long>& jobIdList)
|
||||||
|
{
|
||||||
|
jobIdList_ = jobIdList;
|
||||||
|
for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
|
||||||
|
setBodyParameter("JobIdList."+ std::to_string(dep1), std::to_string(jobIdList.at(dep1)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
65
schedulerx2/src/model/BatchEnableJobsResult.cc
Normal file
65
schedulerx2/src/model/BatchEnableJobsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/BatchEnableJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
BatchEnableJobsResult::BatchEnableJobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
BatchEnableJobsResult::BatchEnableJobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
BatchEnableJobsResult::~BatchEnableJobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void BatchEnableJobsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BatchEnableJobsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int BatchEnableJobsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool BatchEnableJobsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -104,6 +104,17 @@ void CreateAppGroupRequest::setAppName(const std::string& appName)
|
|||||||
setParameter("AppName", appName);
|
setParameter("AppName", appName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateAppGroupRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateAppGroupRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateAppGroupRequest::get_Namespace()const
|
std::string CreateAppGroupRequest::get_Namespace()const
|
||||||
{
|
{
|
||||||
return _namespace_;
|
return _namespace_;
|
||||||
|
|||||||
@@ -93,6 +93,17 @@ void CreateJobRequest::setTimeoutKillEnable(bool timeoutKillEnable)
|
|||||||
setBodyParameter("TimeoutKillEnable", timeoutKillEnable ? "true" : "false");
|
setBodyParameter("TimeoutKillEnable", timeoutKillEnable ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
int CreateJobRequest::getPageSize()const
|
int CreateJobRequest::getPageSize()const
|
||||||
{
|
{
|
||||||
return pageSize_;
|
return pageSize_;
|
||||||
|
|||||||
@@ -60,6 +60,17 @@ void DeleteJobRequest::setJobId(long jobId)
|
|||||||
setParameter("JobId", std::to_string(jobId));
|
setParameter("JobId", std::to_string(jobId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DeleteJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string DeleteJobRequest::get_Namespace()const
|
std::string DeleteJobRequest::get_Namespace()const
|
||||||
{
|
{
|
||||||
return _namespace_;
|
return _namespace_;
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void DeleteWorkflowRequest::setNamespaceSource(const std::string& namespaceSourc
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DeleteWorkflowRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteWorkflowRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string DeleteWorkflowRequest::getGroupId()const
|
std::string DeleteWorkflowRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void DisableJobRequest::setNamespaceSource(const std::string& namespaceSource)
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DisableJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisableJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string DisableJobRequest::getGroupId()const
|
std::string DisableJobRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void DisableWorkflowRequest::setNamespaceSource(const std::string& namespaceSour
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DisableWorkflowRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisableWorkflowRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string DisableWorkflowRequest::getGroupId()const
|
std::string DisableWorkflowRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void EnableJobRequest::setNamespaceSource(const std::string& namespaceSource)
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string EnableJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void EnableJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string EnableJobRequest::getGroupId()const
|
std::string EnableJobRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void EnableWorkflowRequest::setNamespaceSource(const std::string& namespaceSourc
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string EnableWorkflowRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void EnableWorkflowRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string EnableWorkflowRequest::getGroupId()const
|
std::string EnableWorkflowRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void ExecuteJobRequest::setNamespaceSource(const std::string& namespaceSource)
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ExecuteJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExecuteJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string ExecuteJobRequest::getGroupId()const
|
std::string ExecuteJobRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void GetJobInfoRequest::setNamespaceSource(const std::string& namespaceSource)
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetJobInfoRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetJobInfoRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string GetJobInfoRequest::getGroupId()const
|
std::string GetJobInfoRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void GetJobInstanceListRequest::setNamespaceSource(const std::string& namespaceS
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetJobInstanceListRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetJobInstanceListRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string GetJobInstanceListRequest::getGroupId()const
|
std::string GetJobInstanceListRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -71,6 +71,17 @@ void GrantPermissionRequest::setGrantOption(bool grantOption)
|
|||||||
setParameter("GrantOption", grantOption ? "true" : "false");
|
setParameter("GrantOption", grantOption ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GrantPermissionRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GrantPermissionRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string GrantPermissionRequest::get_Namespace()const
|
std::string GrantPermissionRequest::get_Namespace()const
|
||||||
{
|
{
|
||||||
return _namespace_;
|
return _namespace_;
|
||||||
|
|||||||
62
schedulerx2/src/model/ListGroupsRequest.cc
Normal file
62
schedulerx2/src/model/ListGroupsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListGroupsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::ListGroupsRequest;
|
||||||
|
|
||||||
|
ListGroupsRequest::ListGroupsRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "ListGroups")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListGroupsRequest::~ListGroupsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListGroupsRequest::getNamespaceSource()const
|
||||||
|
{
|
||||||
|
return namespaceSource_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupsRequest::setNamespaceSource(const std::string& namespaceSource)
|
||||||
|
{
|
||||||
|
namespaceSource_ = namespaceSource;
|
||||||
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupsRequest::get_Namespace()const
|
||||||
|
{
|
||||||
|
return _namespace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListGroupsRequest::set_Namespace(const std::string& _namespace)
|
||||||
|
{
|
||||||
|
_namespace_ = _namespace;
|
||||||
|
setParameter("_Namespace", _namespace);
|
||||||
|
}
|
||||||
|
|
||||||
85
schedulerx2/src/model/ListGroupsResult.cc
Normal file
85
schedulerx2/src/model/ListGroupsResult.cc
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListGroupsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
ListGroupsResult::ListGroupsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListGroupsResult::ListGroupsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListGroupsResult::~ListGroupsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListGroupsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dataNode = value["Data"];
|
||||||
|
auto allAppGroupsNode = dataNode["AppGroups"]["AppGroup"];
|
||||||
|
for (auto dataNodeAppGroupsAppGroup : allAppGroupsNode)
|
||||||
|
{
|
||||||
|
Data::AppGroup appGroupObject;
|
||||||
|
if(!dataNodeAppGroupsAppGroup["AppName"].isNull())
|
||||||
|
appGroupObject.appName = dataNodeAppGroupsAppGroup["AppName"].asString();
|
||||||
|
if(!dataNodeAppGroupsAppGroup["GroupId"].isNull())
|
||||||
|
appGroupObject.groupId = dataNodeAppGroupsAppGroup["GroupId"].asString();
|
||||||
|
if(!dataNodeAppGroupsAppGroup["AppKey"].isNull())
|
||||||
|
appGroupObject.appKey = dataNodeAppGroupsAppGroup["AppKey"].asString();
|
||||||
|
if(!dataNodeAppGroupsAppGroup["Description"].isNull())
|
||||||
|
appGroupObject.description = dataNodeAppGroupsAppGroup["Description"].asString();
|
||||||
|
data_.appGroups.push_back(appGroupObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListGroupsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
ListGroupsResult::Data ListGroupsResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListGroupsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListGroupsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
95
schedulerx2/src/model/ListJobsRequest.cc
Normal file
95
schedulerx2/src/model/ListJobsRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListJobsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::ListJobsRequest;
|
||||||
|
|
||||||
|
ListJobsRequest::ListJobsRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "ListJobs")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListJobsRequest::~ListJobsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::getNamespaceSource()const
|
||||||
|
{
|
||||||
|
return namespaceSource_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::setNamespaceSource(const std::string& namespaceSource)
|
||||||
|
{
|
||||||
|
namespaceSource_ = namespaceSource;
|
||||||
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::getGroupId()const
|
||||||
|
{
|
||||||
|
return groupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::setGroupId(const std::string& groupId)
|
||||||
|
{
|
||||||
|
groupId_ = groupId;
|
||||||
|
setParameter("GroupId", groupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::get_Namespace()const
|
||||||
|
{
|
||||||
|
return _namespace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::set_Namespace(const std::string& _namespace)
|
||||||
|
{
|
||||||
|
_namespace_ = _namespace;
|
||||||
|
setParameter("_Namespace", _namespace);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::getJobName()const
|
||||||
|
{
|
||||||
|
return jobName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::setJobName(const std::string& jobName)
|
||||||
|
{
|
||||||
|
jobName_ = jobName;
|
||||||
|
setParameter("JobName", jobName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsRequest::getStatus()const
|
||||||
|
{
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListJobsRequest::setStatus(const std::string& status)
|
||||||
|
{
|
||||||
|
status_ = status;
|
||||||
|
setParameter("Status", status);
|
||||||
|
}
|
||||||
|
|
||||||
145
schedulerx2/src/model/ListJobsResult.cc
Normal file
145
schedulerx2/src/model/ListJobsResult.cc
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListJobsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
ListJobsResult::ListJobsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListJobsResult::ListJobsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListJobsResult::~ListJobsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListJobsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dataNode = value["Data"];
|
||||||
|
auto allJobsNode = dataNode["Jobs"]["Job"];
|
||||||
|
for (auto dataNodeJobsJob : allJobsNode)
|
||||||
|
{
|
||||||
|
Data::Job jobObject;
|
||||||
|
if(!dataNodeJobsJob["ClassName"].isNull())
|
||||||
|
jobObject.className = dataNodeJobsJob["ClassName"].asString();
|
||||||
|
if(!dataNodeJobsJob["JarUrl"].isNull())
|
||||||
|
jobObject.jarUrl = dataNodeJobsJob["JarUrl"].asString();
|
||||||
|
if(!dataNodeJobsJob["Content"].isNull())
|
||||||
|
jobObject.content = dataNodeJobsJob["Content"].asString();
|
||||||
|
if(!dataNodeJobsJob["Name"].isNull())
|
||||||
|
jobObject.name = dataNodeJobsJob["Name"].asString();
|
||||||
|
if(!dataNodeJobsJob["Description"].isNull())
|
||||||
|
jobObject.description = dataNodeJobsJob["Description"].asString();
|
||||||
|
if(!dataNodeJobsJob["Status"].isNull())
|
||||||
|
jobObject.status = std::stoi(dataNodeJobsJob["Status"].asString());
|
||||||
|
if(!dataNodeJobsJob["ExecuteMode"].isNull())
|
||||||
|
jobObject.executeMode = dataNodeJobsJob["ExecuteMode"].asString();
|
||||||
|
if(!dataNodeJobsJob["Parameters"].isNull())
|
||||||
|
jobObject.parameters = dataNodeJobsJob["Parameters"].asString();
|
||||||
|
if(!dataNodeJobsJob["MaxConcurrency"].isNull())
|
||||||
|
jobObject.maxConcurrency = dataNodeJobsJob["MaxConcurrency"].asString();
|
||||||
|
if(!dataNodeJobsJob["MaxAttempt"].isNull())
|
||||||
|
jobObject.maxAttempt = std::stoi(dataNodeJobsJob["MaxAttempt"].asString());
|
||||||
|
if(!dataNodeJobsJob["AttemptInterval"].isNull())
|
||||||
|
jobObject.attemptInterval = std::stoi(dataNodeJobsJob["AttemptInterval"].asString());
|
||||||
|
if(!dataNodeJobsJob["JobId"].isNull())
|
||||||
|
jobObject.jobId = std::stol(dataNodeJobsJob["JobId"].asString());
|
||||||
|
auto mapTaskXAttrsNode = value["MapTaskXAttrs"];
|
||||||
|
if(!mapTaskXAttrsNode["PageSize"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.pageSize = std::stoi(mapTaskXAttrsNode["PageSize"].asString());
|
||||||
|
if(!mapTaskXAttrsNode["ConsumerSize"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.consumerSize = std::stoi(mapTaskXAttrsNode["ConsumerSize"].asString());
|
||||||
|
if(!mapTaskXAttrsNode["QueueSize"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.queueSize = std::stoi(mapTaskXAttrsNode["QueueSize"].asString());
|
||||||
|
if(!mapTaskXAttrsNode["DispatcherSize"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.dispatcherSize = std::stoi(mapTaskXAttrsNode["DispatcherSize"].asString());
|
||||||
|
if(!mapTaskXAttrsNode["TaskMaxAttempt"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.taskMaxAttempt = std::stoi(mapTaskXAttrsNode["TaskMaxAttempt"].asString());
|
||||||
|
if(!mapTaskXAttrsNode["TaskAttemptInterval"].isNull())
|
||||||
|
jobObject.mapTaskXAttrs.taskAttemptInterval = std::stoi(mapTaskXAttrsNode["TaskAttemptInterval"].asString());
|
||||||
|
auto timeConfigNode = value["TimeConfig"];
|
||||||
|
if(!timeConfigNode["TimeType"].isNull())
|
||||||
|
jobObject.timeConfig.timeType = std::stoi(timeConfigNode["TimeType"].asString());
|
||||||
|
if(!timeConfigNode["TimeExpression"].isNull())
|
||||||
|
jobObject.timeConfig.timeExpression = timeConfigNode["TimeExpression"].asString();
|
||||||
|
if(!timeConfigNode["Calendar"].isNull())
|
||||||
|
jobObject.timeConfig.calendar = timeConfigNode["Calendar"].asString();
|
||||||
|
if(!timeConfigNode["DataOffset"].isNull())
|
||||||
|
jobObject.timeConfig.dataOffset = std::stoi(timeConfigNode["DataOffset"].asString());
|
||||||
|
auto jobMonitorInfoNode = value["JobMonitorInfo"];
|
||||||
|
auto allContactInfoNode = jobMonitorInfoNode["ContactInfo"]["ContactInfoItem"];
|
||||||
|
for (auto jobMonitorInfoNodeContactInfoContactInfoItem : allContactInfoNode)
|
||||||
|
{
|
||||||
|
Data::Job::JobMonitorInfo::ContactInfoItem contactInfoItemObject;
|
||||||
|
if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].isNull())
|
||||||
|
contactInfoItemObject.userName = jobMonitorInfoNodeContactInfoContactInfoItem["UserName"].asString();
|
||||||
|
if(!jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].isNull())
|
||||||
|
contactInfoItemObject.userPhone = jobMonitorInfoNodeContactInfoContactInfoItem["UserPhone"].asString();
|
||||||
|
jobObject.jobMonitorInfo.contactInfo.push_back(contactInfoItemObject);
|
||||||
|
}
|
||||||
|
auto monitorConfigNode = jobMonitorInfoNode["MonitorConfig"];
|
||||||
|
if(!monitorConfigNode["TimeoutEnable"].isNull())
|
||||||
|
jobObject.jobMonitorInfo.monitorConfig.timeoutEnable = monitorConfigNode["TimeoutEnable"].asString() == "true";
|
||||||
|
if(!monitorConfigNode["Timeout"].isNull())
|
||||||
|
jobObject.jobMonitorInfo.monitorConfig.timeout = std::stol(monitorConfigNode["Timeout"].asString());
|
||||||
|
if(!monitorConfigNode["TimeoutKillEnable"].isNull())
|
||||||
|
jobObject.jobMonitorInfo.monitorConfig.timeoutKillEnable = monitorConfigNode["TimeoutKillEnable"].asString() == "true";
|
||||||
|
if(!monitorConfigNode["FailEnable"].isNull())
|
||||||
|
jobObject.jobMonitorInfo.monitorConfig.failEnable = monitorConfigNode["FailEnable"].asString() == "true";
|
||||||
|
if(!monitorConfigNode["SendChannel"].isNull())
|
||||||
|
jobObject.jobMonitorInfo.monitorConfig.sendChannel = monitorConfigNode["SendChannel"].asString();
|
||||||
|
data_.jobs.push_back(jobObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListJobsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
ListJobsResult::Data ListJobsResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListJobsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListJobsResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
40
schedulerx2/src/model/ListNamespacesRequest.cc
Normal file
40
schedulerx2/src/model/ListNamespacesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListNamespacesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Schedulerx2::Model::ListNamespacesRequest;
|
||||||
|
|
||||||
|
ListNamespacesRequest::ListNamespacesRequest() :
|
||||||
|
RpcServiceRequest("schedulerx2", "2019-04-30", "ListNamespaces")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Get);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListNamespacesRequest::~ListNamespacesRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListNamespacesRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListNamespacesRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
83
schedulerx2/src/model/ListNamespacesResult.cc
Normal file
83
schedulerx2/src/model/ListNamespacesResult.cc
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
* 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/schedulerx2/model/ListNamespacesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Schedulerx2;
|
||||||
|
using namespace AlibabaCloud::Schedulerx2::Model;
|
||||||
|
|
||||||
|
ListNamespacesResult::ListNamespacesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListNamespacesResult::ListNamespacesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListNamespacesResult::~ListNamespacesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListNamespacesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dataNode = value["Data"];
|
||||||
|
auto allNamespacesNode = dataNode["Namespaces"]["Namespace"];
|
||||||
|
for (auto dataNodeNamespacesNamespace : allNamespacesNode)
|
||||||
|
{
|
||||||
|
Data::_Namespace _namespaceObject;
|
||||||
|
if(!dataNodeNamespacesNamespace["Name"].isNull())
|
||||||
|
_namespaceObject.name = dataNodeNamespacesNamespace["Name"].asString();
|
||||||
|
if(!dataNodeNamespacesNamespace["UId"].isNull())
|
||||||
|
_namespaceObject.uId = dataNodeNamespacesNamespace["UId"].asString();
|
||||||
|
if(!dataNodeNamespacesNamespace["Description"].isNull())
|
||||||
|
_namespaceObject.description = dataNodeNamespacesNamespace["Description"].asString();
|
||||||
|
data_.namespaces.push_back(_namespaceObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = std::stoi(value["Code"].asString());
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListNamespacesResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
ListNamespacesResult::Data ListNamespacesResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListNamespacesResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ListNamespacesResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -38,6 +38,17 @@ void RevokePermissionRequest::setNamespaceSource(const std::string& namespaceSou
|
|||||||
setParameter("NamespaceSource", namespaceSource);
|
setParameter("NamespaceSource", namespaceSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string RevokePermissionRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RevokePermissionRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string RevokePermissionRequest::getGroupId()const
|
std::string RevokePermissionRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -60,6 +60,17 @@ void StopInstanceRequest::setInstanceId(long instanceId)
|
|||||||
setParameter("InstanceId", std::to_string(instanceId));
|
setParameter("InstanceId", std::to_string(instanceId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string StopInstanceRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StopInstanceRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string StopInstanceRequest::getGroupId()const
|
std::string StopInstanceRequest::getGroupId()const
|
||||||
{
|
{
|
||||||
return groupId_;
|
return groupId_;
|
||||||
|
|||||||
@@ -104,6 +104,17 @@ void UpdateJobRequest::setJobId(long jobId)
|
|||||||
setBodyParameter("JobId", std::to_string(jobId));
|
setBodyParameter("JobId", std::to_string(jobId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateJobRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateJobRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
int UpdateJobRequest::getPageSize()const
|
int UpdateJobRequest::getPageSize()const
|
||||||
{
|
{
|
||||||
return pageSize_;
|
return pageSize_;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ set(servicemesh_public_header_model
|
|||||||
include/alibabacloud/servicemesh/model/DescribeServiceMeshesResult.h
|
include/alibabacloud/servicemesh/model/DescribeServiceMeshesResult.h
|
||||||
include/alibabacloud/servicemesh/model/DescribeUpgradeVersionRequest.h
|
include/alibabacloud/servicemesh/model/DescribeUpgradeVersionRequest.h
|
||||||
include/alibabacloud/servicemesh/model/DescribeUpgradeVersionResult.h
|
include/alibabacloud/servicemesh/model/DescribeUpgradeVersionResult.h
|
||||||
|
include/alibabacloud/servicemesh/model/GetAutoInjectionLabelSyncStatusRequest.h
|
||||||
|
include/alibabacloud/servicemesh/model/GetAutoInjectionLabelSyncStatusResult.h
|
||||||
include/alibabacloud/servicemesh/model/GetDiagnosisRequest.h
|
include/alibabacloud/servicemesh/model/GetDiagnosisRequest.h
|
||||||
include/alibabacloud/servicemesh/model/GetDiagnosisResult.h
|
include/alibabacloud/servicemesh/model/GetDiagnosisResult.h
|
||||||
include/alibabacloud/servicemesh/model/GetRegisteredServiceEndpointsRequest.h
|
include/alibabacloud/servicemesh/model/GetRegisteredServiceEndpointsRequest.h
|
||||||
@@ -59,6 +61,8 @@ set(servicemesh_public_header_model
|
|||||||
include/alibabacloud/servicemesh/model/GetRegisteredServicesResult.h
|
include/alibabacloud/servicemesh/model/GetRegisteredServicesResult.h
|
||||||
include/alibabacloud/servicemesh/model/GetServiceMeshSlbRequest.h
|
include/alibabacloud/servicemesh/model/GetServiceMeshSlbRequest.h
|
||||||
include/alibabacloud/servicemesh/model/GetServiceMeshSlbResult.h
|
include/alibabacloud/servicemesh/model/GetServiceMeshSlbResult.h
|
||||||
|
include/alibabacloud/servicemesh/model/GetServiceRegistrySourceRequest.h
|
||||||
|
include/alibabacloud/servicemesh/model/GetServiceRegistrySourceResult.h
|
||||||
include/alibabacloud/servicemesh/model/GetVmAppMeshInfoRequest.h
|
include/alibabacloud/servicemesh/model/GetVmAppMeshInfoRequest.h
|
||||||
include/alibabacloud/servicemesh/model/GetVmAppMeshInfoResult.h
|
include/alibabacloud/servicemesh/model/GetVmAppMeshInfoResult.h
|
||||||
include/alibabacloud/servicemesh/model/GetVmMetaRequest.h
|
include/alibabacloud/servicemesh/model/GetVmMetaRequest.h
|
||||||
@@ -69,6 +73,8 @@ set(servicemesh_public_header_model
|
|||||||
include/alibabacloud/servicemesh/model/RemoveVmAppFromMeshResult.h
|
include/alibabacloud/servicemesh/model/RemoveVmAppFromMeshResult.h
|
||||||
include/alibabacloud/servicemesh/model/RunDiagnosisRequest.h
|
include/alibabacloud/servicemesh/model/RunDiagnosisRequest.h
|
||||||
include/alibabacloud/servicemesh/model/RunDiagnosisResult.h
|
include/alibabacloud/servicemesh/model/RunDiagnosisResult.h
|
||||||
|
include/alibabacloud/servicemesh/model/SetServiceRegistrySourceRequest.h
|
||||||
|
include/alibabacloud/servicemesh/model/SetServiceRegistrySourceResult.h
|
||||||
include/alibabacloud/servicemesh/model/UpdateIstioInjectionConfigRequest.h
|
include/alibabacloud/servicemesh/model/UpdateIstioInjectionConfigRequest.h
|
||||||
include/alibabacloud/servicemesh/model/UpdateIstioInjectionConfigResult.h
|
include/alibabacloud/servicemesh/model/UpdateIstioInjectionConfigResult.h
|
||||||
include/alibabacloud/servicemesh/model/UpdateMeshFeatureRequest.h
|
include/alibabacloud/servicemesh/model/UpdateMeshFeatureRequest.h
|
||||||
@@ -106,6 +112,8 @@ set(servicemesh_src
|
|||||||
src/model/DescribeServiceMeshesResult.cc
|
src/model/DescribeServiceMeshesResult.cc
|
||||||
src/model/DescribeUpgradeVersionRequest.cc
|
src/model/DescribeUpgradeVersionRequest.cc
|
||||||
src/model/DescribeUpgradeVersionResult.cc
|
src/model/DescribeUpgradeVersionResult.cc
|
||||||
|
src/model/GetAutoInjectionLabelSyncStatusRequest.cc
|
||||||
|
src/model/GetAutoInjectionLabelSyncStatusResult.cc
|
||||||
src/model/GetDiagnosisRequest.cc
|
src/model/GetDiagnosisRequest.cc
|
||||||
src/model/GetDiagnosisResult.cc
|
src/model/GetDiagnosisResult.cc
|
||||||
src/model/GetRegisteredServiceEndpointsRequest.cc
|
src/model/GetRegisteredServiceEndpointsRequest.cc
|
||||||
@@ -116,6 +124,8 @@ set(servicemesh_src
|
|||||||
src/model/GetRegisteredServicesResult.cc
|
src/model/GetRegisteredServicesResult.cc
|
||||||
src/model/GetServiceMeshSlbRequest.cc
|
src/model/GetServiceMeshSlbRequest.cc
|
||||||
src/model/GetServiceMeshSlbResult.cc
|
src/model/GetServiceMeshSlbResult.cc
|
||||||
|
src/model/GetServiceRegistrySourceRequest.cc
|
||||||
|
src/model/GetServiceRegistrySourceResult.cc
|
||||||
src/model/GetVmAppMeshInfoRequest.cc
|
src/model/GetVmAppMeshInfoRequest.cc
|
||||||
src/model/GetVmAppMeshInfoResult.cc
|
src/model/GetVmAppMeshInfoResult.cc
|
||||||
src/model/GetVmMetaRequest.cc
|
src/model/GetVmMetaRequest.cc
|
||||||
@@ -126,6 +136,8 @@ set(servicemesh_src
|
|||||||
src/model/RemoveVmAppFromMeshResult.cc
|
src/model/RemoveVmAppFromMeshResult.cc
|
||||||
src/model/RunDiagnosisRequest.cc
|
src/model/RunDiagnosisRequest.cc
|
||||||
src/model/RunDiagnosisResult.cc
|
src/model/RunDiagnosisResult.cc
|
||||||
|
src/model/SetServiceRegistrySourceRequest.cc
|
||||||
|
src/model/SetServiceRegistrySourceResult.cc
|
||||||
src/model/UpdateIstioInjectionConfigRequest.cc
|
src/model/UpdateIstioInjectionConfigRequest.cc
|
||||||
src/model/UpdateIstioInjectionConfigResult.cc
|
src/model/UpdateIstioInjectionConfigResult.cc
|
||||||
src/model/UpdateMeshFeatureRequest.cc
|
src/model/UpdateMeshFeatureRequest.cc
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
#include "model/DescribeServiceMeshesResult.h"
|
#include "model/DescribeServiceMeshesResult.h"
|
||||||
#include "model/DescribeUpgradeVersionRequest.h"
|
#include "model/DescribeUpgradeVersionRequest.h"
|
||||||
#include "model/DescribeUpgradeVersionResult.h"
|
#include "model/DescribeUpgradeVersionResult.h"
|
||||||
|
#include "model/GetAutoInjectionLabelSyncStatusRequest.h"
|
||||||
|
#include "model/GetAutoInjectionLabelSyncStatusResult.h"
|
||||||
#include "model/GetDiagnosisRequest.h"
|
#include "model/GetDiagnosisRequest.h"
|
||||||
#include "model/GetDiagnosisResult.h"
|
#include "model/GetDiagnosisResult.h"
|
||||||
#include "model/GetRegisteredServiceEndpointsRequest.h"
|
#include "model/GetRegisteredServiceEndpointsRequest.h"
|
||||||
@@ -60,6 +62,8 @@
|
|||||||
#include "model/GetRegisteredServicesResult.h"
|
#include "model/GetRegisteredServicesResult.h"
|
||||||
#include "model/GetServiceMeshSlbRequest.h"
|
#include "model/GetServiceMeshSlbRequest.h"
|
||||||
#include "model/GetServiceMeshSlbResult.h"
|
#include "model/GetServiceMeshSlbResult.h"
|
||||||
|
#include "model/GetServiceRegistrySourceRequest.h"
|
||||||
|
#include "model/GetServiceRegistrySourceResult.h"
|
||||||
#include "model/GetVmAppMeshInfoRequest.h"
|
#include "model/GetVmAppMeshInfoRequest.h"
|
||||||
#include "model/GetVmAppMeshInfoResult.h"
|
#include "model/GetVmAppMeshInfoResult.h"
|
||||||
#include "model/GetVmMetaRequest.h"
|
#include "model/GetVmMetaRequest.h"
|
||||||
@@ -70,6 +74,8 @@
|
|||||||
#include "model/RemoveVmAppFromMeshResult.h"
|
#include "model/RemoveVmAppFromMeshResult.h"
|
||||||
#include "model/RunDiagnosisRequest.h"
|
#include "model/RunDiagnosisRequest.h"
|
||||||
#include "model/RunDiagnosisResult.h"
|
#include "model/RunDiagnosisResult.h"
|
||||||
|
#include "model/SetServiceRegistrySourceRequest.h"
|
||||||
|
#include "model/SetServiceRegistrySourceResult.h"
|
||||||
#include "model/UpdateIstioInjectionConfigRequest.h"
|
#include "model/UpdateIstioInjectionConfigRequest.h"
|
||||||
#include "model/UpdateIstioInjectionConfigResult.h"
|
#include "model/UpdateIstioInjectionConfigResult.h"
|
||||||
#include "model/UpdateMeshFeatureRequest.h"
|
#include "model/UpdateMeshFeatureRequest.h"
|
||||||
@@ -127,6 +133,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeUpgradeVersionResult> DescribeUpgradeVersionOutcome;
|
typedef Outcome<Error, Model::DescribeUpgradeVersionResult> DescribeUpgradeVersionOutcome;
|
||||||
typedef std::future<DescribeUpgradeVersionOutcome> DescribeUpgradeVersionOutcomeCallable;
|
typedef std::future<DescribeUpgradeVersionOutcome> DescribeUpgradeVersionOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::DescribeUpgradeVersionRequest&, const DescribeUpgradeVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpgradeVersionAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::DescribeUpgradeVersionRequest&, const DescribeUpgradeVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpgradeVersionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetAutoInjectionLabelSyncStatusResult> GetAutoInjectionLabelSyncStatusOutcome;
|
||||||
|
typedef std::future<GetAutoInjectionLabelSyncStatusOutcome> GetAutoInjectionLabelSyncStatusOutcomeCallable;
|
||||||
|
typedef std::function<void(const ServicemeshClient*, const Model::GetAutoInjectionLabelSyncStatusRequest&, const GetAutoInjectionLabelSyncStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAutoInjectionLabelSyncStatusAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetDiagnosisResult> GetDiagnosisOutcome;
|
typedef Outcome<Error, Model::GetDiagnosisResult> GetDiagnosisOutcome;
|
||||||
typedef std::future<GetDiagnosisOutcome> GetDiagnosisOutcomeCallable;
|
typedef std::future<GetDiagnosisOutcome> GetDiagnosisOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::GetDiagnosisRequest&, const GetDiagnosisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiagnosisAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::GetDiagnosisRequest&, const GetDiagnosisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiagnosisAsyncHandler;
|
||||||
@@ -142,6 +151,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetServiceMeshSlbResult> GetServiceMeshSlbOutcome;
|
typedef Outcome<Error, Model::GetServiceMeshSlbResult> GetServiceMeshSlbOutcome;
|
||||||
typedef std::future<GetServiceMeshSlbOutcome> GetServiceMeshSlbOutcomeCallable;
|
typedef std::future<GetServiceMeshSlbOutcome> GetServiceMeshSlbOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::GetServiceMeshSlbRequest&, const GetServiceMeshSlbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceMeshSlbAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::GetServiceMeshSlbRequest&, const GetServiceMeshSlbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceMeshSlbAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetServiceRegistrySourceResult> GetServiceRegistrySourceOutcome;
|
||||||
|
typedef std::future<GetServiceRegistrySourceOutcome> GetServiceRegistrySourceOutcomeCallable;
|
||||||
|
typedef std::function<void(const ServicemeshClient*, const Model::GetServiceRegistrySourceRequest&, const GetServiceRegistrySourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceRegistrySourceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetVmAppMeshInfoResult> GetVmAppMeshInfoOutcome;
|
typedef Outcome<Error, Model::GetVmAppMeshInfoResult> GetVmAppMeshInfoOutcome;
|
||||||
typedef std::future<GetVmAppMeshInfoOutcome> GetVmAppMeshInfoOutcomeCallable;
|
typedef std::future<GetVmAppMeshInfoOutcome> GetVmAppMeshInfoOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::GetVmAppMeshInfoRequest&, const GetVmAppMeshInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVmAppMeshInfoAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::GetVmAppMeshInfoRequest&, const GetVmAppMeshInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVmAppMeshInfoAsyncHandler;
|
||||||
@@ -157,6 +169,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::RunDiagnosisResult> RunDiagnosisOutcome;
|
typedef Outcome<Error, Model::RunDiagnosisResult> RunDiagnosisOutcome;
|
||||||
typedef std::future<RunDiagnosisOutcome> RunDiagnosisOutcomeCallable;
|
typedef std::future<RunDiagnosisOutcome> RunDiagnosisOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::RunDiagnosisRequest&, const RunDiagnosisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunDiagnosisAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::RunDiagnosisRequest&, const RunDiagnosisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunDiagnosisAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SetServiceRegistrySourceResult> SetServiceRegistrySourceOutcome;
|
||||||
|
typedef std::future<SetServiceRegistrySourceOutcome> SetServiceRegistrySourceOutcomeCallable;
|
||||||
|
typedef std::function<void(const ServicemeshClient*, const Model::SetServiceRegistrySourceRequest&, const SetServiceRegistrySourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetServiceRegistrySourceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateIstioInjectionConfigResult> UpdateIstioInjectionConfigOutcome;
|
typedef Outcome<Error, Model::UpdateIstioInjectionConfigResult> UpdateIstioInjectionConfigOutcome;
|
||||||
typedef std::future<UpdateIstioInjectionConfigOutcome> UpdateIstioInjectionConfigOutcomeCallable;
|
typedef std::future<UpdateIstioInjectionConfigOutcome> UpdateIstioInjectionConfigOutcomeCallable;
|
||||||
typedef std::function<void(const ServicemeshClient*, const Model::UpdateIstioInjectionConfigRequest&, const UpdateIstioInjectionConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateIstioInjectionConfigAsyncHandler;
|
typedef std::function<void(const ServicemeshClient*, const Model::UpdateIstioInjectionConfigRequest&, const UpdateIstioInjectionConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateIstioInjectionConfigAsyncHandler;
|
||||||
@@ -213,6 +228,9 @@ namespace AlibabaCloud
|
|||||||
DescribeUpgradeVersionOutcome describeUpgradeVersion(const Model::DescribeUpgradeVersionRequest &request)const;
|
DescribeUpgradeVersionOutcome describeUpgradeVersion(const Model::DescribeUpgradeVersionRequest &request)const;
|
||||||
void describeUpgradeVersionAsync(const Model::DescribeUpgradeVersionRequest& request, const DescribeUpgradeVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeUpgradeVersionAsync(const Model::DescribeUpgradeVersionRequest& request, const DescribeUpgradeVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeUpgradeVersionOutcomeCallable describeUpgradeVersionCallable(const Model::DescribeUpgradeVersionRequest& request) const;
|
DescribeUpgradeVersionOutcomeCallable describeUpgradeVersionCallable(const Model::DescribeUpgradeVersionRequest& request) const;
|
||||||
|
GetAutoInjectionLabelSyncStatusOutcome getAutoInjectionLabelSyncStatus(const Model::GetAutoInjectionLabelSyncStatusRequest &request)const;
|
||||||
|
void getAutoInjectionLabelSyncStatusAsync(const Model::GetAutoInjectionLabelSyncStatusRequest& request, const GetAutoInjectionLabelSyncStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetAutoInjectionLabelSyncStatusOutcomeCallable getAutoInjectionLabelSyncStatusCallable(const Model::GetAutoInjectionLabelSyncStatusRequest& request) const;
|
||||||
GetDiagnosisOutcome getDiagnosis(const Model::GetDiagnosisRequest &request)const;
|
GetDiagnosisOutcome getDiagnosis(const Model::GetDiagnosisRequest &request)const;
|
||||||
void getDiagnosisAsync(const Model::GetDiagnosisRequest& request, const GetDiagnosisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getDiagnosisAsync(const Model::GetDiagnosisRequest& request, const GetDiagnosisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetDiagnosisOutcomeCallable getDiagnosisCallable(const Model::GetDiagnosisRequest& request) const;
|
GetDiagnosisOutcomeCallable getDiagnosisCallable(const Model::GetDiagnosisRequest& request) const;
|
||||||
@@ -228,6 +246,9 @@ namespace AlibabaCloud
|
|||||||
GetServiceMeshSlbOutcome getServiceMeshSlb(const Model::GetServiceMeshSlbRequest &request)const;
|
GetServiceMeshSlbOutcome getServiceMeshSlb(const Model::GetServiceMeshSlbRequest &request)const;
|
||||||
void getServiceMeshSlbAsync(const Model::GetServiceMeshSlbRequest& request, const GetServiceMeshSlbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getServiceMeshSlbAsync(const Model::GetServiceMeshSlbRequest& request, const GetServiceMeshSlbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetServiceMeshSlbOutcomeCallable getServiceMeshSlbCallable(const Model::GetServiceMeshSlbRequest& request) const;
|
GetServiceMeshSlbOutcomeCallable getServiceMeshSlbCallable(const Model::GetServiceMeshSlbRequest& request) const;
|
||||||
|
GetServiceRegistrySourceOutcome getServiceRegistrySource(const Model::GetServiceRegistrySourceRequest &request)const;
|
||||||
|
void getServiceRegistrySourceAsync(const Model::GetServiceRegistrySourceRequest& request, const GetServiceRegistrySourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetServiceRegistrySourceOutcomeCallable getServiceRegistrySourceCallable(const Model::GetServiceRegistrySourceRequest& request) const;
|
||||||
GetVmAppMeshInfoOutcome getVmAppMeshInfo(const Model::GetVmAppMeshInfoRequest &request)const;
|
GetVmAppMeshInfoOutcome getVmAppMeshInfo(const Model::GetVmAppMeshInfoRequest &request)const;
|
||||||
void getVmAppMeshInfoAsync(const Model::GetVmAppMeshInfoRequest& request, const GetVmAppMeshInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getVmAppMeshInfoAsync(const Model::GetVmAppMeshInfoRequest& request, const GetVmAppMeshInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetVmAppMeshInfoOutcomeCallable getVmAppMeshInfoCallable(const Model::GetVmAppMeshInfoRequest& request) const;
|
GetVmAppMeshInfoOutcomeCallable getVmAppMeshInfoCallable(const Model::GetVmAppMeshInfoRequest& request) const;
|
||||||
@@ -243,6 +264,9 @@ namespace AlibabaCloud
|
|||||||
RunDiagnosisOutcome runDiagnosis(const Model::RunDiagnosisRequest &request)const;
|
RunDiagnosisOutcome runDiagnosis(const Model::RunDiagnosisRequest &request)const;
|
||||||
void runDiagnosisAsync(const Model::RunDiagnosisRequest& request, const RunDiagnosisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void runDiagnosisAsync(const Model::RunDiagnosisRequest& request, const RunDiagnosisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
RunDiagnosisOutcomeCallable runDiagnosisCallable(const Model::RunDiagnosisRequest& request) const;
|
RunDiagnosisOutcomeCallable runDiagnosisCallable(const Model::RunDiagnosisRequest& request) const;
|
||||||
|
SetServiceRegistrySourceOutcome setServiceRegistrySource(const Model::SetServiceRegistrySourceRequest &request)const;
|
||||||
|
void setServiceRegistrySourceAsync(const Model::SetServiceRegistrySourceRequest& request, const SetServiceRegistrySourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SetServiceRegistrySourceOutcomeCallable setServiceRegistrySourceCallable(const Model::SetServiceRegistrySourceRequest& request) const;
|
||||||
UpdateIstioInjectionConfigOutcome updateIstioInjectionConfig(const Model::UpdateIstioInjectionConfigRequest &request)const;
|
UpdateIstioInjectionConfigOutcome updateIstioInjectionConfig(const Model::UpdateIstioInjectionConfigRequest &request)const;
|
||||||
void updateIstioInjectionConfigAsync(const Model::UpdateIstioInjectionConfigRequest& request, const UpdateIstioInjectionConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateIstioInjectionConfigAsync(const Model::UpdateIstioInjectionConfigRequest& request, const UpdateIstioInjectionConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateIstioInjectionConfigOutcomeCallable updateIstioInjectionConfigCallable(const Model::UpdateIstioInjectionConfigRequest& request) const;
|
UpdateIstioInjectionConfigOutcomeCallable updateIstioInjectionConfigCallable(const Model::UpdateIstioInjectionConfigRequest& request) const;
|
||||||
|
|||||||
@@ -45,8 +45,12 @@ namespace AlibabaCloud
|
|||||||
void setOpaEnabled(bool opaEnabled);
|
void setOpaEnabled(bool opaEnabled);
|
||||||
std::string getProxyLimitMemory()const;
|
std::string getProxyLimitMemory()const;
|
||||||
void setProxyLimitMemory(const std::string& proxyLimitMemory);
|
void setProxyLimitMemory(const std::string& proxyLimitMemory);
|
||||||
|
bool getCustomizedPrometheus()const;
|
||||||
|
void setCustomizedPrometheus(bool customizedPrometheus);
|
||||||
bool getStrictMTLS()const;
|
bool getStrictMTLS()const;
|
||||||
void setStrictMTLS(bool strictMTLS);
|
void setStrictMTLS(bool strictMTLS);
|
||||||
|
bool getAccessLogEnabled()const;
|
||||||
|
void setAccessLogEnabled(bool accessLogEnabled);
|
||||||
std::string getOPALogLevel()const;
|
std::string getOPALogLevel()const;
|
||||||
void setOPALogLevel(const std::string& oPALogLevel);
|
void setOPALogLevel(const std::string& oPALogLevel);
|
||||||
std::string getExcludeIPRanges()const;
|
std::string getExcludeIPRanges()const;
|
||||||
@@ -61,6 +65,8 @@ namespace AlibabaCloud
|
|||||||
void setExcludeInboundPorts(const std::string& excludeInboundPorts);
|
void setExcludeInboundPorts(const std::string& excludeInboundPorts);
|
||||||
std::string getOPALimitMemory()const;
|
std::string getOPALimitMemory()const;
|
||||||
void setOPALimitMemory(const std::string& oPALimitMemory);
|
void setOPALimitMemory(const std::string& oPALimitMemory);
|
||||||
|
std::string getPrometheusUrl()const;
|
||||||
|
void setPrometheusUrl(const std::string& prometheusUrl);
|
||||||
std::string getVSwitches()const;
|
std::string getVSwitches()const;
|
||||||
void setVSwitches(const std::string& vSwitches);
|
void setVSwitches(const std::string& vSwitches);
|
||||||
bool getCADisableSecretAutoGeneration()const;
|
bool getCADisableSecretAutoGeneration()const;
|
||||||
@@ -93,6 +99,8 @@ namespace AlibabaCloud
|
|||||||
void setTraceSampling(float traceSampling);
|
void setTraceSampling(float traceSampling);
|
||||||
std::string getAppNamespaces()const;
|
std::string getAppNamespaces()const;
|
||||||
void setAppNamespaces(const std::string& appNamespaces);
|
void setAppNamespaces(const std::string& appNamespaces);
|
||||||
|
bool getKialiEnabled()const;
|
||||||
|
void setKialiEnabled(bool kialiEnabled);
|
||||||
bool getPilotPublicEip()const;
|
bool getPilotPublicEip()const;
|
||||||
void setPilotPublicEip(bool pilotPublicEip);
|
void setPilotPublicEip(bool pilotPublicEip);
|
||||||
std::string getAuditProject()const;
|
std::string getAuditProject()const;
|
||||||
@@ -110,7 +118,9 @@ namespace AlibabaCloud
|
|||||||
bool openAgentPolicy_;
|
bool openAgentPolicy_;
|
||||||
bool opaEnabled_;
|
bool opaEnabled_;
|
||||||
std::string proxyLimitMemory_;
|
std::string proxyLimitMemory_;
|
||||||
|
bool customizedPrometheus_;
|
||||||
bool strictMTLS_;
|
bool strictMTLS_;
|
||||||
|
bool accessLogEnabled_;
|
||||||
std::string oPALogLevel_;
|
std::string oPALogLevel_;
|
||||||
std::string excludeIPRanges_;
|
std::string excludeIPRanges_;
|
||||||
std::string istioVersion_;
|
std::string istioVersion_;
|
||||||
@@ -118,6 +128,7 @@ namespace AlibabaCloud
|
|||||||
std::string includeIPRanges_;
|
std::string includeIPRanges_;
|
||||||
std::string excludeInboundPorts_;
|
std::string excludeInboundPorts_;
|
||||||
std::string oPALimitMemory_;
|
std::string oPALimitMemory_;
|
||||||
|
std::string prometheusUrl_;
|
||||||
std::string vSwitches_;
|
std::string vSwitches_;
|
||||||
bool cADisableSecretAutoGeneration_;
|
bool cADisableSecretAutoGeneration_;
|
||||||
std::string cAListenedNamespaces_;
|
std::string cAListenedNamespaces_;
|
||||||
@@ -134,6 +145,7 @@ namespace AlibabaCloud
|
|||||||
bool apiServerPublicEip_;
|
bool apiServerPublicEip_;
|
||||||
float traceSampling_;
|
float traceSampling_;
|
||||||
std::string appNamespaces_;
|
std::string appNamespaces_;
|
||||||
|
bool kialiEnabled_;
|
||||||
bool pilotPublicEip_;
|
bool pilotPublicEip_;
|
||||||
std::string auditProject_;
|
std::string auditProject_;
|
||||||
std::string outboundTrafficPolicy_;
|
std::string outboundTrafficPolicy_;
|
||||||
|
|||||||
@@ -34,18 +34,24 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct Cluster
|
struct Cluster
|
||||||
{
|
{
|
||||||
std::string vpcId;
|
struct AccessLogDashboardInfo
|
||||||
|
{
|
||||||
|
std::string title;
|
||||||
|
std::string url;
|
||||||
|
};
|
||||||
std::string clusterId;
|
std::string clusterId;
|
||||||
std::string version;
|
|
||||||
std::string state;
|
|
||||||
std::string clusterDomain;
|
std::string clusterDomain;
|
||||||
std::string creationTime;
|
|
||||||
std::string updateTime;
|
|
||||||
std::string sgId;
|
std::string sgId;
|
||||||
std::string clusterType;
|
std::string clusterType;
|
||||||
|
std::vector<Cluster::AccessLogDashboardInfo> accessLogDashboards;
|
||||||
|
std::string name;
|
||||||
|
std::string vpcId;
|
||||||
|
std::string version;
|
||||||
|
std::string state;
|
||||||
|
std::string creationTime;
|
||||||
|
std::string updateTime;
|
||||||
std::string regionId;
|
std::string regionId;
|
||||||
std::string errorMessage;
|
std::string errorMessage;
|
||||||
std::string name;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -106,16 +106,34 @@ namespace AlibabaCloud
|
|||||||
std::string requestCPU;
|
std::string requestCPU;
|
||||||
std::string sidecarInjectorWebhookAsYaml;
|
std::string sidecarInjectorWebhookAsYaml;
|
||||||
};
|
};
|
||||||
|
struct Kiali
|
||||||
|
{
|
||||||
|
bool enabled;
|
||||||
|
std::string url;
|
||||||
|
};
|
||||||
|
struct Prometheus
|
||||||
|
{
|
||||||
|
bool useExternal;
|
||||||
|
std::string externalUrl;
|
||||||
|
};
|
||||||
|
struct AccessLog
|
||||||
|
{
|
||||||
|
bool enabled;
|
||||||
|
};
|
||||||
Pilot pilot;
|
Pilot pilot;
|
||||||
SidecarInjector sidecarInjector;
|
AccessLog accessLog;
|
||||||
OPA oPA;
|
OPA oPA;
|
||||||
|
Prometheus prometheus;
|
||||||
|
bool telemetry;
|
||||||
|
std::string outboundTrafficPolicy;
|
||||||
|
std::string edition;
|
||||||
|
SidecarInjector sidecarInjector;
|
||||||
Audit audit;
|
Audit audit;
|
||||||
Proxy proxy;
|
Proxy proxy;
|
||||||
|
Kiali kiali;
|
||||||
std::string includeIPRanges;
|
std::string includeIPRanges;
|
||||||
bool enableLocalityLB;
|
bool enableLocalityLB;
|
||||||
bool tracing;
|
bool tracing;
|
||||||
bool telemetry;
|
|
||||||
std::string outboundTrafficPolicy;
|
|
||||||
bool customizedZipkin;
|
bool customizedZipkin;
|
||||||
};
|
};
|
||||||
struct Network
|
struct Network
|
||||||
|
|||||||
@@ -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_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT GetAutoInjectionLabelSyncStatusRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetAutoInjectionLabelSyncStatusRequest();
|
||||||
|
~GetAutoInjectionLabelSyncStatusRequest();
|
||||||
|
|
||||||
|
std::string getServiceMeshId()const;
|
||||||
|
void setServiceMeshId(const std::string& serviceMeshId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string serviceMeshId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSREQUEST_H_
|
||||||
@@ -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_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT GetAutoInjectionLabelSyncStatusResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusResult();
|
||||||
|
explicit GetAutoInjectionLabelSyncStatusResult(const std::string &payload);
|
||||||
|
~GetAutoInjectionLabelSyncStatusResult();
|
||||||
|
std::string getStatus()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string status_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_GETAUTOINJECTIONLABELSYNCSTATUSRESULT_H_
|
||||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
|||||||
GetDiagnosisResult();
|
GetDiagnosisResult();
|
||||||
explicit GetDiagnosisResult(const std::string &payload);
|
explicit GetDiagnosisResult(const std::string &payload);
|
||||||
~GetDiagnosisResult();
|
~GetDiagnosisResult();
|
||||||
|
std::string getStatus()const;
|
||||||
std::string getRunAt()const;
|
std::string getRunAt()const;
|
||||||
std::string getResult()const;
|
std::string getResult()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::string status_;
|
||||||
std::string runAt_;
|
std::string runAt_;
|
||||||
std::string result_;
|
std::string result_;
|
||||||
|
|
||||||
|
|||||||
@@ -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_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT GetServiceRegistrySourceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetServiceRegistrySourceRequest();
|
||||||
|
~GetServiceRegistrySourceRequest();
|
||||||
|
|
||||||
|
std::string getServiceMeshId()const;
|
||||||
|
void setServiceMeshId(const std::string& serviceMeshId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string serviceMeshId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* 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_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT GetServiceRegistrySourceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
GetServiceRegistrySourceResult();
|
||||||
|
explicit GetServiceRegistrySourceResult(const std::string &payload);
|
||||||
|
~GetServiceRegistrySourceResult();
|
||||||
|
std::string getStatus()const;
|
||||||
|
std::string getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string status_;
|
||||||
|
std::string result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_GETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
@@ -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_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT SetServiceRegistrySourceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
SetServiceRegistrySourceRequest();
|
||||||
|
~SetServiceRegistrySourceRequest();
|
||||||
|
|
||||||
|
std::string getServiceMeshId()const;
|
||||||
|
void setServiceMeshId(const std::string& serviceMeshId);
|
||||||
|
std::string getConfig()const;
|
||||||
|
void setConfig(const std::string& config);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string serviceMeshId_;
|
||||||
|
std::string config_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCEREQUEST_H_
|
||||||
@@ -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_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
|
#define ALIBABACLOUD_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/servicemesh/ServicemeshExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Servicemesh
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_SERVICEMESH_EXPORT SetServiceRegistrySourceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
SetServiceRegistrySourceResult();
|
||||||
|
explicit SetServiceRegistrySourceResult(const std::string &payload);
|
||||||
|
~SetServiceRegistrySourceResult();
|
||||||
|
std::string getResult()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string result_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_SERVICEMESH_MODEL_SETSERVICEREGISTRYSOURCERESULT_H_
|
||||||
@@ -45,8 +45,12 @@ namespace AlibabaCloud
|
|||||||
void setOpaEnabled(bool opaEnabled);
|
void setOpaEnabled(bool opaEnabled);
|
||||||
std::string getProxyLimitMemory()const;
|
std::string getProxyLimitMemory()const;
|
||||||
void setProxyLimitMemory(const std::string& proxyLimitMemory);
|
void setProxyLimitMemory(const std::string& proxyLimitMemory);
|
||||||
|
bool getCustomizedPrometheus()const;
|
||||||
|
void setCustomizedPrometheus(bool customizedPrometheus);
|
||||||
std::string getCniExcludeNamespaces()const;
|
std::string getCniExcludeNamespaces()const;
|
||||||
void setCniExcludeNamespaces(const std::string& cniExcludeNamespaces);
|
void setCniExcludeNamespaces(const std::string& cniExcludeNamespaces);
|
||||||
|
bool getAccessLogEnabled()const;
|
||||||
|
void setAccessLogEnabled(bool accessLogEnabled);
|
||||||
std::string getOPALogLevel()const;
|
std::string getOPALogLevel()const;
|
||||||
void setOPALogLevel(const std::string& oPALogLevel);
|
void setOPALogLevel(const std::string& oPALogLevel);
|
||||||
bool getCustomizedZipkin()const;
|
bool getCustomizedZipkin()const;
|
||||||
@@ -61,6 +65,8 @@ namespace AlibabaCloud
|
|||||||
void setIncludeIPRanges(const std::string& includeIPRanges);
|
void setIncludeIPRanges(const std::string& includeIPRanges);
|
||||||
std::string getOPALimitMemory()const;
|
std::string getOPALimitMemory()const;
|
||||||
void setOPALimitMemory(const std::string& oPALimitMemory);
|
void setOPALimitMemory(const std::string& oPALimitMemory);
|
||||||
|
std::string getPrometheusUrl()const;
|
||||||
|
void setPrometheusUrl(const std::string& prometheusUrl);
|
||||||
bool getCADisableSecretAutoGeneration()const;
|
bool getCADisableSecretAutoGeneration()const;
|
||||||
void setCADisableSecretAutoGeneration(bool cADisableSecretAutoGeneration);
|
void setCADisableSecretAutoGeneration(bool cADisableSecretAutoGeneration);
|
||||||
std::string getCAListenedNamespaces()const;
|
std::string getCAListenedNamespaces()const;
|
||||||
@@ -99,6 +105,8 @@ namespace AlibabaCloud
|
|||||||
void setHttp10Enabled(bool http10Enabled);
|
void setHttp10Enabled(bool http10Enabled);
|
||||||
std::string getAppNamespaces()const;
|
std::string getAppNamespaces()const;
|
||||||
void setAppNamespaces(const std::string& appNamespaces);
|
void setAppNamespaces(const std::string& appNamespaces);
|
||||||
|
bool getKialiEnabled()const;
|
||||||
|
void setKialiEnabled(bool kialiEnabled);
|
||||||
bool getPilotPublicEip()const;
|
bool getPilotPublicEip()const;
|
||||||
void setPilotPublicEip(bool pilotPublicEip);
|
void setPilotPublicEip(bool pilotPublicEip);
|
||||||
std::string getAuditProject()const;
|
std::string getAuditProject()const;
|
||||||
@@ -114,7 +122,9 @@ namespace AlibabaCloud
|
|||||||
bool openAgentPolicy_;
|
bool openAgentPolicy_;
|
||||||
bool opaEnabled_;
|
bool opaEnabled_;
|
||||||
std::string proxyLimitMemory_;
|
std::string proxyLimitMemory_;
|
||||||
|
bool customizedPrometheus_;
|
||||||
std::string cniExcludeNamespaces_;
|
std::string cniExcludeNamespaces_;
|
||||||
|
bool accessLogEnabled_;
|
||||||
std::string oPALogLevel_;
|
std::string oPALogLevel_;
|
||||||
bool customizedZipkin_;
|
bool customizedZipkin_;
|
||||||
std::string sidecarInjectorRequestCPU_;
|
std::string sidecarInjectorRequestCPU_;
|
||||||
@@ -122,6 +132,7 @@ namespace AlibabaCloud
|
|||||||
bool tracing_;
|
bool tracing_;
|
||||||
std::string includeIPRanges_;
|
std::string includeIPRanges_;
|
||||||
std::string oPALimitMemory_;
|
std::string oPALimitMemory_;
|
||||||
|
std::string prometheusUrl_;
|
||||||
bool cADisableSecretAutoGeneration_;
|
bool cADisableSecretAutoGeneration_;
|
||||||
std::string cAListenedNamespaces_;
|
std::string cAListenedNamespaces_;
|
||||||
std::string proxyLimitCPU_;
|
std::string proxyLimitCPU_;
|
||||||
@@ -141,6 +152,7 @@ namespace AlibabaCloud
|
|||||||
float traceSampling_;
|
float traceSampling_;
|
||||||
bool http10Enabled_;
|
bool http10Enabled_;
|
||||||
std::string appNamespaces_;
|
std::string appNamespaces_;
|
||||||
|
bool kialiEnabled_;
|
||||||
bool pilotPublicEip_;
|
bool pilotPublicEip_;
|
||||||
std::string auditProject_;
|
std::string auditProject_;
|
||||||
std::string outboundTrafficPolicy_;
|
std::string outboundTrafficPolicy_;
|
||||||
|
|||||||
@@ -555,6 +555,42 @@ ServicemeshClient::DescribeUpgradeVersionOutcomeCallable ServicemeshClient::desc
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::GetAutoInjectionLabelSyncStatusOutcome ServicemeshClient::getAutoInjectionLabelSyncStatus(const GetAutoInjectionLabelSyncStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetAutoInjectionLabelSyncStatusOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetAutoInjectionLabelSyncStatusOutcome(GetAutoInjectionLabelSyncStatusResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetAutoInjectionLabelSyncStatusOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ServicemeshClient::getAutoInjectionLabelSyncStatusAsync(const GetAutoInjectionLabelSyncStatusRequest& request, const GetAutoInjectionLabelSyncStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getAutoInjectionLabelSyncStatus(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::GetAutoInjectionLabelSyncStatusOutcomeCallable ServicemeshClient::getAutoInjectionLabelSyncStatusCallable(const GetAutoInjectionLabelSyncStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetAutoInjectionLabelSyncStatusOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getAutoInjectionLabelSyncStatus(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ServicemeshClient::GetDiagnosisOutcome ServicemeshClient::getDiagnosis(const GetDiagnosisRequest &request) const
|
ServicemeshClient::GetDiagnosisOutcome ServicemeshClient::getDiagnosis(const GetDiagnosisRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -735,6 +771,42 @@ ServicemeshClient::GetServiceMeshSlbOutcomeCallable ServicemeshClient::getServic
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::GetServiceRegistrySourceOutcome ServicemeshClient::getServiceRegistrySource(const GetServiceRegistrySourceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetServiceRegistrySourceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetServiceRegistrySourceOutcome(GetServiceRegistrySourceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetServiceRegistrySourceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ServicemeshClient::getServiceRegistrySourceAsync(const GetServiceRegistrySourceRequest& request, const GetServiceRegistrySourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getServiceRegistrySource(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::GetServiceRegistrySourceOutcomeCallable ServicemeshClient::getServiceRegistrySourceCallable(const GetServiceRegistrySourceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetServiceRegistrySourceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getServiceRegistrySource(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ServicemeshClient::GetVmAppMeshInfoOutcome ServicemeshClient::getVmAppMeshInfo(const GetVmAppMeshInfoRequest &request) const
|
ServicemeshClient::GetVmAppMeshInfoOutcome ServicemeshClient::getVmAppMeshInfo(const GetVmAppMeshInfoRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -915,6 +987,42 @@ ServicemeshClient::RunDiagnosisOutcomeCallable ServicemeshClient::runDiagnosisCa
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::SetServiceRegistrySourceOutcome ServicemeshClient::setServiceRegistrySource(const SetServiceRegistrySourceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SetServiceRegistrySourceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SetServiceRegistrySourceOutcome(SetServiceRegistrySourceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SetServiceRegistrySourceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ServicemeshClient::setServiceRegistrySourceAsync(const SetServiceRegistrySourceRequest& request, const SetServiceRegistrySourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, setServiceRegistrySource(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ServicemeshClient::SetServiceRegistrySourceOutcomeCallable ServicemeshClient::setServiceRegistrySourceCallable(const SetServiceRegistrySourceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SetServiceRegistrySourceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->setServiceRegistrySource(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
ServicemeshClient::UpdateIstioInjectionConfigOutcome ServicemeshClient::updateIstioInjectionConfig(const UpdateIstioInjectionConfigRequest &request) const
|
ServicemeshClient::UpdateIstioInjectionConfigOutcome ServicemeshClient::updateIstioInjectionConfig(const UpdateIstioInjectionConfigRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -82,6 +82,17 @@ void CreateServiceMeshRequest::setProxyLimitMemory(const std::string& proxyLimit
|
|||||||
setBodyParameter("ProxyLimitMemory", proxyLimitMemory);
|
setBodyParameter("ProxyLimitMemory", proxyLimitMemory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CreateServiceMeshRequest::getCustomizedPrometheus()const
|
||||||
|
{
|
||||||
|
return customizedPrometheus_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateServiceMeshRequest::setCustomizedPrometheus(bool customizedPrometheus)
|
||||||
|
{
|
||||||
|
customizedPrometheus_ = customizedPrometheus;
|
||||||
|
setBodyParameter("CustomizedPrometheus", customizedPrometheus ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
bool CreateServiceMeshRequest::getStrictMTLS()const
|
bool CreateServiceMeshRequest::getStrictMTLS()const
|
||||||
{
|
{
|
||||||
return strictMTLS_;
|
return strictMTLS_;
|
||||||
@@ -93,6 +104,17 @@ void CreateServiceMeshRequest::setStrictMTLS(bool strictMTLS)
|
|||||||
setBodyParameter("StrictMTLS", strictMTLS ? "true" : "false");
|
setBodyParameter("StrictMTLS", strictMTLS ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CreateServiceMeshRequest::getAccessLogEnabled()const
|
||||||
|
{
|
||||||
|
return accessLogEnabled_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateServiceMeshRequest::setAccessLogEnabled(bool accessLogEnabled)
|
||||||
|
{
|
||||||
|
accessLogEnabled_ = accessLogEnabled;
|
||||||
|
setBodyParameter("AccessLogEnabled", accessLogEnabled ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateServiceMeshRequest::getOPALogLevel()const
|
std::string CreateServiceMeshRequest::getOPALogLevel()const
|
||||||
{
|
{
|
||||||
return oPALogLevel_;
|
return oPALogLevel_;
|
||||||
@@ -170,6 +192,17 @@ void CreateServiceMeshRequest::setOPALimitMemory(const std::string& oPALimitMemo
|
|||||||
setBodyParameter("OPALimitMemory", oPALimitMemory);
|
setBodyParameter("OPALimitMemory", oPALimitMemory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateServiceMeshRequest::getPrometheusUrl()const
|
||||||
|
{
|
||||||
|
return prometheusUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateServiceMeshRequest::setPrometheusUrl(const std::string& prometheusUrl)
|
||||||
|
{
|
||||||
|
prometheusUrl_ = prometheusUrl;
|
||||||
|
setBodyParameter("PrometheusUrl", prometheusUrl);
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateServiceMeshRequest::getVSwitches()const
|
std::string CreateServiceMeshRequest::getVSwitches()const
|
||||||
{
|
{
|
||||||
return vSwitches_;
|
return vSwitches_;
|
||||||
@@ -346,6 +379,17 @@ void CreateServiceMeshRequest::setAppNamespaces(const std::string& appNamespaces
|
|||||||
setBodyParameter("AppNamespaces", appNamespaces);
|
setBodyParameter("AppNamespaces", appNamespaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CreateServiceMeshRequest::getKialiEnabled()const
|
||||||
|
{
|
||||||
|
return kialiEnabled_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateServiceMeshRequest::setKialiEnabled(bool kialiEnabled)
|
||||||
|
{
|
||||||
|
kialiEnabled_ = kialiEnabled;
|
||||||
|
setBodyParameter("KialiEnabled", kialiEnabled ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
bool CreateServiceMeshRequest::getPilotPublicEip()const
|
bool CreateServiceMeshRequest::getPilotPublicEip()const
|
||||||
{
|
{
|
||||||
return pilotPublicEip_;
|
return pilotPublicEip_;
|
||||||
|
|||||||
@@ -67,6 +67,16 @@ void DescribeClustersInServiceMeshResult::parse(const std::string &payload)
|
|||||||
clustersObject.sgId = valueClustersCluster["SgId"].asString();
|
clustersObject.sgId = valueClustersCluster["SgId"].asString();
|
||||||
if(!valueClustersCluster["ClusterDomain"].isNull())
|
if(!valueClustersCluster["ClusterDomain"].isNull())
|
||||||
clustersObject.clusterDomain = valueClustersCluster["ClusterDomain"].asString();
|
clustersObject.clusterDomain = valueClustersCluster["ClusterDomain"].asString();
|
||||||
|
auto allAccessLogDashboardsNode = valueClustersCluster["AccessLogDashboards"]["AccessLogDashboardInfo"];
|
||||||
|
for (auto valueClustersClusterAccessLogDashboardsAccessLogDashboardInfo : allAccessLogDashboardsNode)
|
||||||
|
{
|
||||||
|
Cluster::AccessLogDashboardInfo accessLogDashboardsObject;
|
||||||
|
if(!valueClustersClusterAccessLogDashboardsAccessLogDashboardInfo["Title"].isNull())
|
||||||
|
accessLogDashboardsObject.title = valueClustersClusterAccessLogDashboardsAccessLogDashboardInfo["Title"].asString();
|
||||||
|
if(!valueClustersClusterAccessLogDashboardsAccessLogDashboardInfo["Url"].isNull())
|
||||||
|
accessLogDashboardsObject.url = valueClustersClusterAccessLogDashboardsAccessLogDashboardInfo["Url"].asString();
|
||||||
|
clustersObject.accessLogDashboards.push_back(accessLogDashboardsObject);
|
||||||
|
}
|
||||||
clusters_.push_back(clustersObject);
|
clusters_.push_back(clustersObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ void DescribeServiceMeshDetailResult::parse(const std::string &payload)
|
|||||||
serviceMesh_.spec.meshConfig.outboundTrafficPolicy = meshConfigNode["OutboundTrafficPolicy"].asString();
|
serviceMesh_.spec.meshConfig.outboundTrafficPolicy = meshConfigNode["OutboundTrafficPolicy"].asString();
|
||||||
if(!meshConfigNode["IncludeIPRanges"].isNull())
|
if(!meshConfigNode["IncludeIPRanges"].isNull())
|
||||||
serviceMesh_.spec.meshConfig.includeIPRanges = meshConfigNode["IncludeIPRanges"].asString();
|
serviceMesh_.spec.meshConfig.includeIPRanges = meshConfigNode["IncludeIPRanges"].asString();
|
||||||
|
if(!meshConfigNode["Edition"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.edition = meshConfigNode["Edition"].asString();
|
||||||
auto pilotNode = meshConfigNode["Pilot"];
|
auto pilotNode = meshConfigNode["Pilot"];
|
||||||
if(!pilotNode["TraceSampling"].isNull())
|
if(!pilotNode["TraceSampling"].isNull())
|
||||||
serviceMesh_.spec.meshConfig.pilot.traceSampling = std::stof(pilotNode["TraceSampling"].asString());
|
serviceMesh_.spec.meshConfig.pilot.traceSampling = std::stof(pilotNode["TraceSampling"].asString());
|
||||||
@@ -143,6 +145,19 @@ void DescribeServiceMeshDetailResult::parse(const std::string &payload)
|
|||||||
serviceMesh_.spec.meshConfig.sidecarInjector.initCNIConfiguration.enabled = initCNIConfigurationNode["Enabled"].asString() == "true";
|
serviceMesh_.spec.meshConfig.sidecarInjector.initCNIConfiguration.enabled = initCNIConfigurationNode["Enabled"].asString() == "true";
|
||||||
if(!initCNIConfigurationNode["ExcludeNamespaces"].isNull())
|
if(!initCNIConfigurationNode["ExcludeNamespaces"].isNull())
|
||||||
serviceMesh_.spec.meshConfig.sidecarInjector.initCNIConfiguration.excludeNamespaces = initCNIConfigurationNode["ExcludeNamespaces"].asString();
|
serviceMesh_.spec.meshConfig.sidecarInjector.initCNIConfiguration.excludeNamespaces = initCNIConfigurationNode["ExcludeNamespaces"].asString();
|
||||||
|
auto kialiNode = meshConfigNode["Kiali"];
|
||||||
|
if(!kialiNode["Enabled"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.kiali.enabled = kialiNode["Enabled"].asString() == "true";
|
||||||
|
if(!kialiNode["Url"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.kiali.url = kialiNode["Url"].asString();
|
||||||
|
auto prometheusNode = meshConfigNode["Prometheus"];
|
||||||
|
if(!prometheusNode["UseExternal"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.prometheus.useExternal = prometheusNode["UseExternal"].asString() == "true";
|
||||||
|
if(!prometheusNode["ExternalUrl"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.prometheus.externalUrl = prometheusNode["ExternalUrl"].asString();
|
||||||
|
auto accessLogNode = meshConfigNode["AccessLog"];
|
||||||
|
if(!accessLogNode["Enabled"].isNull())
|
||||||
|
serviceMesh_.spec.meshConfig.accessLog.enabled = accessLogNode["Enabled"].asString() == "true";
|
||||||
auto networkNode = specNode["Network"];
|
auto networkNode = specNode["Network"];
|
||||||
if(!networkNode["SecurityGroupId"].isNull())
|
if(!networkNode["SecurityGroupId"].isNull())
|
||||||
serviceMesh_.spec.network.securityGroupId = networkNode["SecurityGroupId"].asString();
|
serviceMesh_.spec.network.securityGroupId = networkNode["SecurityGroupId"].asString();
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* 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/servicemesh/model/GetAutoInjectionLabelSyncStatusRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Servicemesh::Model::GetAutoInjectionLabelSyncStatusRequest;
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusRequest::GetAutoInjectionLabelSyncStatusRequest() :
|
||||||
|
RpcServiceRequest("servicemesh", "2020-01-11", "GetAutoInjectionLabelSyncStatus")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusRequest::~GetAutoInjectionLabelSyncStatusRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetAutoInjectionLabelSyncStatusRequest::getServiceMeshId()const
|
||||||
|
{
|
||||||
|
return serviceMeshId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAutoInjectionLabelSyncStatusRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||||
|
{
|
||||||
|
serviceMeshId_ = serviceMeshId;
|
||||||
|
setParameter("ServiceMeshId", serviceMeshId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/servicemesh/model/GetAutoInjectionLabelSyncStatusResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Servicemesh;
|
||||||
|
using namespace AlibabaCloud::Servicemesh::Model;
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusResult::GetAutoInjectionLabelSyncStatusResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusResult::GetAutoInjectionLabelSyncStatusResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetAutoInjectionLabelSyncStatusResult::~GetAutoInjectionLabelSyncStatusResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetAutoInjectionLabelSyncStatusResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Status"].isNull())
|
||||||
|
status_ = value["Status"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetAutoInjectionLabelSyncStatusResult::getStatus()const
|
||||||
|
{
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -43,9 +43,16 @@ void GetDiagnosisResult::parse(const std::string &payload)
|
|||||||
result_ = value["Result"].asString();
|
result_ = value["Result"].asString();
|
||||||
if(!value["RunAt"].isNull())
|
if(!value["RunAt"].isNull())
|
||||||
runAt_ = value["RunAt"].asString();
|
runAt_ = value["RunAt"].asString();
|
||||||
|
if(!value["Status"].isNull())
|
||||||
|
status_ = value["Status"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetDiagnosisResult::getStatus()const
|
||||||
|
{
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string GetDiagnosisResult::getRunAt()const
|
std::string GetDiagnosisResult::getRunAt()const
|
||||||
{
|
{
|
||||||
return runAt_;
|
return runAt_;
|
||||||
|
|||||||
40
servicemesh/src/model/GetServiceRegistrySourceRequest.cc
Normal file
40
servicemesh/src/model/GetServiceRegistrySourceRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* 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/servicemesh/model/GetServiceRegistrySourceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Servicemesh::Model::GetServiceRegistrySourceRequest;
|
||||||
|
|
||||||
|
GetServiceRegistrySourceRequest::GetServiceRegistrySourceRequest() :
|
||||||
|
RpcServiceRequest("servicemesh", "2020-01-11", "GetServiceRegistrySource")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetServiceRegistrySourceRequest::~GetServiceRegistrySourceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetServiceRegistrySourceRequest::getServiceMeshId()const
|
||||||
|
{
|
||||||
|
return serviceMeshId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetServiceRegistrySourceRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||||
|
{
|
||||||
|
serviceMeshId_ = serviceMeshId;
|
||||||
|
setParameter("ServiceMeshId", serviceMeshId);
|
||||||
|
}
|
||||||
|
|
||||||
58
servicemesh/src/model/GetServiceRegistrySourceResult.cc
Normal file
58
servicemesh/src/model/GetServiceRegistrySourceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
* 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/servicemesh/model/GetServiceRegistrySourceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Servicemesh;
|
||||||
|
using namespace AlibabaCloud::Servicemesh::Model;
|
||||||
|
|
||||||
|
GetServiceRegistrySourceResult::GetServiceRegistrySourceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetServiceRegistrySourceResult::GetServiceRegistrySourceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetServiceRegistrySourceResult::~GetServiceRegistrySourceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetServiceRegistrySourceResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Result"].isNull())
|
||||||
|
result_ = value["Result"].asString();
|
||||||
|
if(!value["Status"].isNull())
|
||||||
|
status_ = value["Status"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetServiceRegistrySourceResult::getStatus()const
|
||||||
|
{
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetServiceRegistrySourceResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
51
servicemesh/src/model/SetServiceRegistrySourceRequest.cc
Normal file
51
servicemesh/src/model/SetServiceRegistrySourceRequest.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/servicemesh/model/SetServiceRegistrySourceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Servicemesh::Model::SetServiceRegistrySourceRequest;
|
||||||
|
|
||||||
|
SetServiceRegistrySourceRequest::SetServiceRegistrySourceRequest() :
|
||||||
|
RpcServiceRequest("servicemesh", "2020-01-11", "SetServiceRegistrySource")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SetServiceRegistrySourceRequest::~SetServiceRegistrySourceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string SetServiceRegistrySourceRequest::getServiceMeshId()const
|
||||||
|
{
|
||||||
|
return serviceMeshId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetServiceRegistrySourceRequest::setServiceMeshId(const std::string& serviceMeshId)
|
||||||
|
{
|
||||||
|
serviceMeshId_ = serviceMeshId;
|
||||||
|
setBodyParameter("ServiceMeshId", serviceMeshId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetServiceRegistrySourceRequest::getConfig()const
|
||||||
|
{
|
||||||
|
return config_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetServiceRegistrySourceRequest::setConfig(const std::string& config)
|
||||||
|
{
|
||||||
|
config_ = config;
|
||||||
|
setBodyParameter("Config", config);
|
||||||
|
}
|
||||||
|
|
||||||
51
servicemesh/src/model/SetServiceRegistrySourceResult.cc
Normal file
51
servicemesh/src/model/SetServiceRegistrySourceResult.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/servicemesh/model/SetServiceRegistrySourceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Servicemesh;
|
||||||
|
using namespace AlibabaCloud::Servicemesh::Model;
|
||||||
|
|
||||||
|
SetServiceRegistrySourceResult::SetServiceRegistrySourceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SetServiceRegistrySourceResult::SetServiceRegistrySourceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SetServiceRegistrySourceResult::~SetServiceRegistrySourceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SetServiceRegistrySourceResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Result"].isNull())
|
||||||
|
result_ = value["Result"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetServiceRegistrySourceResult::getResult()const
|
||||||
|
{
|
||||||
|
return result_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -82,6 +82,17 @@ void UpdateMeshFeatureRequest::setProxyLimitMemory(const std::string& proxyLimit
|
|||||||
setBodyParameter("ProxyLimitMemory", proxyLimitMemory);
|
setBodyParameter("ProxyLimitMemory", proxyLimitMemory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UpdateMeshFeatureRequest::getCustomizedPrometheus()const
|
||||||
|
{
|
||||||
|
return customizedPrometheus_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateMeshFeatureRequest::setCustomizedPrometheus(bool customizedPrometheus)
|
||||||
|
{
|
||||||
|
customizedPrometheus_ = customizedPrometheus;
|
||||||
|
setBodyParameter("CustomizedPrometheus", customizedPrometheus ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
std::string UpdateMeshFeatureRequest::getCniExcludeNamespaces()const
|
std::string UpdateMeshFeatureRequest::getCniExcludeNamespaces()const
|
||||||
{
|
{
|
||||||
return cniExcludeNamespaces_;
|
return cniExcludeNamespaces_;
|
||||||
@@ -93,6 +104,17 @@ void UpdateMeshFeatureRequest::setCniExcludeNamespaces(const std::string& cniExc
|
|||||||
setBodyParameter("CniExcludeNamespaces", cniExcludeNamespaces);
|
setBodyParameter("CniExcludeNamespaces", cniExcludeNamespaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UpdateMeshFeatureRequest::getAccessLogEnabled()const
|
||||||
|
{
|
||||||
|
return accessLogEnabled_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateMeshFeatureRequest::setAccessLogEnabled(bool accessLogEnabled)
|
||||||
|
{
|
||||||
|
accessLogEnabled_ = accessLogEnabled;
|
||||||
|
setBodyParameter("AccessLogEnabled", accessLogEnabled ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
std::string UpdateMeshFeatureRequest::getOPALogLevel()const
|
std::string UpdateMeshFeatureRequest::getOPALogLevel()const
|
||||||
{
|
{
|
||||||
return oPALogLevel_;
|
return oPALogLevel_;
|
||||||
@@ -170,6 +192,17 @@ void UpdateMeshFeatureRequest::setOPALimitMemory(const std::string& oPALimitMemo
|
|||||||
setBodyParameter("OPALimitMemory", oPALimitMemory);
|
setBodyParameter("OPALimitMemory", oPALimitMemory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateMeshFeatureRequest::getPrometheusUrl()const
|
||||||
|
{
|
||||||
|
return prometheusUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateMeshFeatureRequest::setPrometheusUrl(const std::string& prometheusUrl)
|
||||||
|
{
|
||||||
|
prometheusUrl_ = prometheusUrl;
|
||||||
|
setBodyParameter("PrometheusUrl", prometheusUrl);
|
||||||
|
}
|
||||||
|
|
||||||
bool UpdateMeshFeatureRequest::getCADisableSecretAutoGeneration()const
|
bool UpdateMeshFeatureRequest::getCADisableSecretAutoGeneration()const
|
||||||
{
|
{
|
||||||
return cADisableSecretAutoGeneration_;
|
return cADisableSecretAutoGeneration_;
|
||||||
@@ -379,6 +412,17 @@ void UpdateMeshFeatureRequest::setAppNamespaces(const std::string& appNamespaces
|
|||||||
setBodyParameter("AppNamespaces", appNamespaces);
|
setBodyParameter("AppNamespaces", appNamespaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UpdateMeshFeatureRequest::getKialiEnabled()const
|
||||||
|
{
|
||||||
|
return kialiEnabled_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateMeshFeatureRequest::setKialiEnabled(bool kialiEnabled)
|
||||||
|
{
|
||||||
|
kialiEnabled_ = kialiEnabled;
|
||||||
|
setBodyParameter("KialiEnabled", kialiEnabled ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
bool UpdateMeshFeatureRequest::getPilotPublicEip()const
|
bool UpdateMeshFeatureRequest::getPilotPublicEip()const
|
||||||
{
|
{
|
||||||
return pilotPublicEip_;
|
return pilotPublicEip_;
|
||||||
|
|||||||
Reference in New Issue
Block a user