Add openapi StartEaiJupyter.

This commit is contained in:
sdk-team
2024-10-22 03:02:13 +00:00
parent 61a4b220eb
commit ef4cdc8756
26 changed files with 1288 additions and 339 deletions

View File

@@ -1 +1 @@
1.36.2002
1.36.2003

View File

@@ -29,8 +29,6 @@ set(eais_public_header_model
include/alibabacloud/eais/model/ChangeResourceGroupResult.h
include/alibabacloud/eais/model/CreateEaiRequest.h
include/alibabacloud/eais/model/CreateEaiResult.h
include/alibabacloud/eais/model/CreateEaiAllRequest.h
include/alibabacloud/eais/model/CreateEaiAllResult.h
include/alibabacloud/eais/model/CreateEaiEciRequest.h
include/alibabacloud/eais/model/CreateEaiEciResult.h
include/alibabacloud/eais/model/CreateEaiEcsRequest.h
@@ -55,10 +53,20 @@ set(eais_public_header_model
include/alibabacloud/eais/model/DetachEaisEiResult.h
include/alibabacloud/eais/model/GetInstanceMetricsRequest.h
include/alibabacloud/eais/model/GetInstanceMetricsResult.h
include/alibabacloud/eais/model/ListTagResourcesRequest.h
include/alibabacloud/eais/model/ListTagResourcesResult.h
include/alibabacloud/eais/model/StartEaiJupyterRequest.h
include/alibabacloud/eais/model/StartEaiJupyterResult.h
include/alibabacloud/eais/model/StartEaisEiRequest.h
include/alibabacloud/eais/model/StartEaisEiResult.h
include/alibabacloud/eais/model/StopEaiJupyterRequest.h
include/alibabacloud/eais/model/StopEaiJupyterResult.h
include/alibabacloud/eais/model/StopEaisEiRequest.h
include/alibabacloud/eais/model/StopEaisEiResult.h )
include/alibabacloud/eais/model/StopEaisEiResult.h
include/alibabacloud/eais/model/TagResourcesRequest.h
include/alibabacloud/eais/model/TagResourcesResult.h
include/alibabacloud/eais/model/UntagResourcesRequest.h
include/alibabacloud/eais/model/UntagResourcesResult.h )
set(eais_src
src/EaisClient.cc
@@ -70,8 +78,6 @@ set(eais_src
src/model/ChangeResourceGroupResult.cc
src/model/CreateEaiRequest.cc
src/model/CreateEaiResult.cc
src/model/CreateEaiAllRequest.cc
src/model/CreateEaiAllResult.cc
src/model/CreateEaiEciRequest.cc
src/model/CreateEaiEciResult.cc
src/model/CreateEaiEcsRequest.cc
@@ -96,10 +102,20 @@ set(eais_src
src/model/DetachEaisEiResult.cc
src/model/GetInstanceMetricsRequest.cc
src/model/GetInstanceMetricsResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/StartEaiJupyterRequest.cc
src/model/StartEaiJupyterResult.cc
src/model/StartEaisEiRequest.cc
src/model/StartEaisEiResult.cc
src/model/StopEaiJupyterRequest.cc
src/model/StopEaiJupyterResult.cc
src/model/StopEaisEiRequest.cc
src/model/StopEaisEiResult.cc )
src/model/StopEaisEiResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/UntagResourcesRequest.cc
src/model/UntagResourcesResult.cc )
add_library(eais ${LIB_TYPE}
${eais_public_header}

View File

@@ -30,8 +30,6 @@
#include "model/ChangeResourceGroupResult.h"
#include "model/CreateEaiRequest.h"
#include "model/CreateEaiResult.h"
#include "model/CreateEaiAllRequest.h"
#include "model/CreateEaiAllResult.h"
#include "model/CreateEaiEciRequest.h"
#include "model/CreateEaiEciResult.h"
#include "model/CreateEaiEcsRequest.h"
@@ -56,10 +54,20 @@
#include "model/DetachEaisEiResult.h"
#include "model/GetInstanceMetricsRequest.h"
#include "model/GetInstanceMetricsResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/StartEaiJupyterRequest.h"
#include "model/StartEaiJupyterResult.h"
#include "model/StartEaisEiRequest.h"
#include "model/StartEaisEiResult.h"
#include "model/StopEaiJupyterRequest.h"
#include "model/StopEaiJupyterResult.h"
#include "model/StopEaisEiRequest.h"
#include "model/StopEaisEiResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
namespace AlibabaCloud
@@ -81,9 +89,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateEaiResult> CreateEaiOutcome;
typedef std::future<CreateEaiOutcome> CreateEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiRequest&, const CreateEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAsyncHandler;
typedef Outcome<Error, Model::CreateEaiAllResult> CreateEaiAllOutcome;
typedef std::future<CreateEaiAllOutcome> CreateEaiAllOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiAllRequest&, const CreateEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAllAsyncHandler;
typedef Outcome<Error, Model::CreateEaiEciResult> CreateEaiEciOutcome;
typedef std::future<CreateEaiEciOutcome> CreateEaiEciOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiEciRequest&, const CreateEaiEciOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiEciAsyncHandler;
@@ -120,12 +125,27 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetInstanceMetricsResult> GetInstanceMetricsOutcome;
typedef std::future<GetInstanceMetricsOutcome> GetInstanceMetricsOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::GetInstanceMetricsRequest&, const GetInstanceMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceMetricsAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::StartEaiJupyterResult> StartEaiJupyterOutcome;
typedef std::future<StartEaiJupyterOutcome> StartEaiJupyterOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StartEaiJupyterRequest&, const StartEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartEaiJupyterAsyncHandler;
typedef Outcome<Error, Model::StartEaisEiResult> StartEaisEiOutcome;
typedef std::future<StartEaisEiOutcome> StartEaisEiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StartEaisEiRequest&, const StartEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartEaisEiAsyncHandler;
typedef Outcome<Error, Model::StopEaiJupyterResult> StopEaiJupyterOutcome;
typedef std::future<StopEaiJupyterOutcome> StopEaiJupyterOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StopEaiJupyterRequest&, const StopEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopEaiJupyterAsyncHandler;
typedef Outcome<Error, Model::StopEaisEiResult> StopEaisEiOutcome;
typedef std::future<StopEaisEiOutcome> StopEaisEiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StopEaisEiRequest&, const StopEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopEaisEiAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -143,9 +163,6 @@ namespace AlibabaCloud
CreateEaiOutcome createEai(const Model::CreateEaiRequest &request)const;
void createEaiAsync(const Model::CreateEaiRequest& request, const CreateEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiOutcomeCallable createEaiCallable(const Model::CreateEaiRequest& request) const;
CreateEaiAllOutcome createEaiAll(const Model::CreateEaiAllRequest &request)const;
void createEaiAllAsync(const Model::CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiAllOutcomeCallable createEaiAllCallable(const Model::CreateEaiAllRequest& request) const;
CreateEaiEciOutcome createEaiEci(const Model::CreateEaiEciRequest &request)const;
void createEaiEciAsync(const Model::CreateEaiEciRequest& request, const CreateEaiEciAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiEciOutcomeCallable createEaiEciCallable(const Model::CreateEaiEciRequest& request) const;
@@ -182,12 +199,27 @@ namespace AlibabaCloud
GetInstanceMetricsOutcome getInstanceMetrics(const Model::GetInstanceMetricsRequest &request)const;
void getInstanceMetricsAsync(const Model::GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceMetricsOutcomeCallable getInstanceMetricsCallable(const Model::GetInstanceMetricsRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
StartEaiJupyterOutcome startEaiJupyter(const Model::StartEaiJupyterRequest &request)const;
void startEaiJupyterAsync(const Model::StartEaiJupyterRequest& request, const StartEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartEaiJupyterOutcomeCallable startEaiJupyterCallable(const Model::StartEaiJupyterRequest& request) const;
StartEaisEiOutcome startEaisEi(const Model::StartEaisEiRequest &request)const;
void startEaisEiAsync(const Model::StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartEaisEiOutcomeCallable startEaisEiCallable(const Model::StartEaisEiRequest& request) const;
StopEaiJupyterOutcome stopEaiJupyter(const Model::StopEaiJupyterRequest &request)const;
void stopEaiJupyterAsync(const Model::StopEaiJupyterRequest& request, const StopEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopEaiJupyterOutcomeCallable stopEaiJupyterCallable(const Model::StopEaiJupyterRequest& request) const;
StopEaisEiOutcome stopEaisEi(const Model::StopEaisEiRequest &request)const;
void stopEaisEiAsync(const Model::StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopEaisEiOutcomeCallable stopEaisEiCallable(const Model::StopEaisEiRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -1,87 +0,0 @@
/*
* 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_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllRequest : public RpcServiceRequest {
public:
CreateEaiAllRequest();
~CreateEaiAllRequest();
std::string getClientImageId() const;
void setClientImageId(const std::string &clientImageId);
std::string getClientSystemDiskCategory() const;
void setClientSystemDiskCategory(const std::string &clientSystemDiskCategory);
int getClientInternetMaxBandwidthOut() const;
void setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getClientInstanceName() const;
void setClientInstanceName(const std::string &clientInstanceName);
int getClientInternetMaxBandwidthIn() const;
void setClientInternetMaxBandwidthIn(int clientInternetMaxBandwidthIn);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getClientSystemDiskSize() const;
void setClientSystemDiskSize(int clientSystemDiskSize);
std::string getClientVSwitchId() const;
void setClientVSwitchId(const std::string &clientVSwitchId);
std::string getClientPassword() const;
void setClientPassword(const std::string &clientPassword);
std::string getClientInstanceType() const;
void setClientInstanceType(const std::string &clientInstanceType);
std::string getClientSecurityGroupId() const;
void setClientSecurityGroupId(const std::string &clientSecurityGroupId);
std::string getEaiInstanceType() const;
void setEaiInstanceType(const std::string &eaiInstanceType);
std::string getClientZoneId() const;
void setClientZoneId(const std::string &clientZoneId);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
private:
std::string clientImageId_;
std::string clientSystemDiskCategory_;
int clientInternetMaxBandwidthOut_;
std::string clientToken_;
std::string resourceGroupId_;
std::string clientInstanceName_;
int clientInternetMaxBandwidthIn_;
std::string regionId_;
int clientSystemDiskSize_;
std::string clientVSwitchId_;
std::string clientPassword_;
std::string clientInstanceType_;
std::string clientSecurityGroupId_;
std::string eaiInstanceType_;
std::string clientZoneId_;
std::string instanceName_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT ListTagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListTagResourcesRequest();
~ListTagResourcesRequest();
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::string nextToken_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -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_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT ListTagResourcesResult : public ServiceResult
{
public:
struct TagResource
{
std::string resourceId;
std::string tagKey;
std::string resourceType;
std::string tagValue;
};
ListTagResourcesResult();
explicit ListTagResourcesResult(const std::string &payload);
~ListTagResourcesResult();
std::string getNextToken()const;
std::vector<TagResource> getTagResources()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT StartEaiJupyterRequest : public RpcServiceRequest {
public:
StartEaiJupyterRequest();
~StartEaiJupyterRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT StartEaiJupyterResult : public ServiceResult
{
public:
struct AccessDeniedDetail
{
std::string policyType;
std::string authPrincipalOwnerId;
std::string encodedDiagnosticMessage;
std::string authPrincipalType;
std::string authPrincipalDisplayName;
std::string noPermissionType;
std::string authAction;
};
StartEaiJupyterResult();
explicit StartEaiJupyterResult(const std::string &payload);
~StartEaiJupyterResult();
AccessDeniedDetail getAccessDeniedDetail()const;
protected:
void parse(const std::string &payload);
private:
AccessDeniedDetail accessDeniedDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT StopEaiJupyterRequest : public RpcServiceRequest {
public:
StopEaiJupyterRequest();
~StopEaiJupyterRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT StopEaiJupyterResult : public ServiceResult
{
public:
struct AccessDeniedDetail
{
std::string policyType;
std::string authPrincipalOwnerId;
std::string encodedDiagnosticMessage;
std::string authPrincipalType;
std::string authPrincipalDisplayName;
std::string noPermissionType;
std::string authAction;
};
StopEaiJupyterResult();
explicit StopEaiJupyterResult(const std::string &payload);
~StopEaiJupyterResult();
AccessDeniedDetail getAccessDeniedDetail()const;
protected:
void parse(const std::string &payload);
private:
AccessDeniedDetail accessDeniedDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_

View File

@@ -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_EAIS_MODEL_TAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT TagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
TagResourcesRequest();
~TagResourcesRequest();
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#ifndef ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_
#include <string>
#include <vector>
@@ -29,25 +29,21 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllResult : public ServiceResult
class ALIBABACLOUD_EAIS_EXPORT TagResourcesResult : public ServiceResult
{
public:
CreateEaiAllResult();
explicit CreateEaiAllResult(const std::string &payload);
~CreateEaiAllResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#endif // !ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT UntagResourcesRequest : public RpcServiceRequest {
public:
UntagResourcesRequest();
~UntagResourcesRequest();
bool getAll() const;
void setAll(bool all);
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<std::string> getTagKey() const;
void setTagKey(const std::vector<std::string> &tagKey);
private:
bool all_;
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::vector<std::string> tagKey_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT UntagResourcesResult : public ServiceResult
{
public:
UntagResourcesResult();
explicit UntagResourcesResult(const std::string &payload);
~UntagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_

View File

@@ -195,42 +195,6 @@ EaisClient::CreateEaiOutcomeCallable EaisClient::createEaiCallable(const CreateE
return task->get_future();
}
EaisClient::CreateEaiAllOutcome EaisClient::createEaiAll(const CreateEaiAllRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEaiAllOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateEaiAllOutcome(CreateEaiAllResult(outcome.result()));
else
return CreateEaiAllOutcome(outcome.error());
}
void EaisClient::createEaiAllAsync(const CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createEaiAll(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::CreateEaiAllOutcomeCallable EaisClient::createEaiAllCallable(const CreateEaiAllRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateEaiAllOutcome()>>(
[this, request]()
{
return this->createEaiAll(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::CreateEaiEciOutcome EaisClient::createEaiEci(const CreateEaiEciRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +627,78 @@ EaisClient::GetInstanceMetricsOutcomeCallable EaisClient::getInstanceMetricsCall
return task->get_future();
}
EaisClient::ListTagResourcesOutcome EaisClient::listTagResources(const ListTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
else
return ListTagResourcesOutcome(outcome.error());
}
void EaisClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listTagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::ListTagResourcesOutcomeCallable EaisClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
[this, request]()
{
return this->listTagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StartEaiJupyterOutcome EaisClient::startEaiJupyter(const StartEaiJupyterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartEaiJupyterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartEaiJupyterOutcome(StartEaiJupyterResult(outcome.result()));
else
return StartEaiJupyterOutcome(outcome.error());
}
void EaisClient::startEaiJupyterAsync(const StartEaiJupyterRequest& request, const StartEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startEaiJupyter(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StartEaiJupyterOutcomeCallable EaisClient::startEaiJupyterCallable(const StartEaiJupyterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartEaiJupyterOutcome()>>(
[this, request]()
{
return this->startEaiJupyter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StartEaisEiOutcome EaisClient::startEaisEi(const StartEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +735,42 @@ EaisClient::StartEaisEiOutcomeCallable EaisClient::startEaisEiCallable(const Sta
return task->get_future();
}
EaisClient::StopEaiJupyterOutcome EaisClient::stopEaiJupyter(const StopEaiJupyterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopEaiJupyterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopEaiJupyterOutcome(StopEaiJupyterResult(outcome.result()));
else
return StopEaiJupyterOutcome(outcome.error());
}
void EaisClient::stopEaiJupyterAsync(const StopEaiJupyterRequest& request, const StopEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopEaiJupyter(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StopEaiJupyterOutcomeCallable EaisClient::stopEaiJupyterCallable(const StopEaiJupyterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopEaiJupyterOutcome()>>(
[this, request]()
{
return this->stopEaiJupyter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StopEaisEiOutcome EaisClient::stopEaisEi(const StopEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,3 +807,75 @@ EaisClient::StopEaisEiOutcomeCallable EaisClient::stopEaisEiCallable(const StopE
return task->get_future();
}
EaisClient::TagResourcesOutcome EaisClient::tagResources(const TagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
else
return TagResourcesOutcome(outcome.error());
}
void EaisClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, tagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::TagResourcesOutcomeCallable EaisClient::tagResourcesCallable(const TagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
[this, request]()
{
return this->tagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::UntagResourcesOutcome EaisClient::untagResources(const UntagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UntagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
else
return UntagResourcesOutcome(outcome.error());
}
void EaisClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, untagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::UntagResourcesOutcomeCallable EaisClient::untagResourcesCallable(const UntagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
[this, request]()
{
return this->untagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,171 +0,0 @@
/*
* 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/eais/model/CreateEaiAllRequest.h>
using AlibabaCloud::Eais::Model::CreateEaiAllRequest;
CreateEaiAllRequest::CreateEaiAllRequest()
: RpcServiceRequest("eais", "2019-06-24", "CreateEaiAll") {
setMethod(HttpRequest::Method::Post);
}
CreateEaiAllRequest::~CreateEaiAllRequest() {}
std::string CreateEaiAllRequest::getClientImageId() const {
return clientImageId_;
}
void CreateEaiAllRequest::setClientImageId(const std::string &clientImageId) {
clientImageId_ = clientImageId;
setParameter(std::string("ClientImageId"), clientImageId);
}
std::string CreateEaiAllRequest::getClientSystemDiskCategory() const {
return clientSystemDiskCategory_;
}
void CreateEaiAllRequest::setClientSystemDiskCategory(const std::string &clientSystemDiskCategory) {
clientSystemDiskCategory_ = clientSystemDiskCategory;
setParameter(std::string("ClientSystemDiskCategory"), clientSystemDiskCategory);
}
int CreateEaiAllRequest::getClientInternetMaxBandwidthOut() const {
return clientInternetMaxBandwidthOut_;
}
void CreateEaiAllRequest::setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut) {
clientInternetMaxBandwidthOut_ = clientInternetMaxBandwidthOut;
setParameter(std::string("ClientInternetMaxBandwidthOut"), std::to_string(clientInternetMaxBandwidthOut));
}
std::string CreateEaiAllRequest::getClientToken() const {
return clientToken_;
}
void CreateEaiAllRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaiAllRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiAllRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiAllRequest::getClientInstanceName() const {
return clientInstanceName_;
}
void CreateEaiAllRequest::setClientInstanceName(const std::string &clientInstanceName) {
clientInstanceName_ = clientInstanceName;
setParameter(std::string("ClientInstanceName"), clientInstanceName);
}
int CreateEaiAllRequest::getClientInternetMaxBandwidthIn() const {
return clientInternetMaxBandwidthIn_;
}
void CreateEaiAllRequest::setClientInternetMaxBandwidthIn(int clientInternetMaxBandwidthIn) {
clientInternetMaxBandwidthIn_ = clientInternetMaxBandwidthIn;
setParameter(std::string("ClientInternetMaxBandwidthIn"), std::to_string(clientInternetMaxBandwidthIn));
}
std::string CreateEaiAllRequest::getRegionId() const {
return regionId_;
}
void CreateEaiAllRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int CreateEaiAllRequest::getClientSystemDiskSize() const {
return clientSystemDiskSize_;
}
void CreateEaiAllRequest::setClientSystemDiskSize(int clientSystemDiskSize) {
clientSystemDiskSize_ = clientSystemDiskSize;
setParameter(std::string("ClientSystemDiskSize"), std::to_string(clientSystemDiskSize));
}
std::string CreateEaiAllRequest::getClientVSwitchId() const {
return clientVSwitchId_;
}
void CreateEaiAllRequest::setClientVSwitchId(const std::string &clientVSwitchId) {
clientVSwitchId_ = clientVSwitchId;
setParameter(std::string("ClientVSwitchId"), clientVSwitchId);
}
std::string CreateEaiAllRequest::getClientPassword() const {
return clientPassword_;
}
void CreateEaiAllRequest::setClientPassword(const std::string &clientPassword) {
clientPassword_ = clientPassword;
setParameter(std::string("ClientPassword"), clientPassword);
}
std::string CreateEaiAllRequest::getClientInstanceType() const {
return clientInstanceType_;
}
void CreateEaiAllRequest::setClientInstanceType(const std::string &clientInstanceType) {
clientInstanceType_ = clientInstanceType;
setParameter(std::string("ClientInstanceType"), clientInstanceType);
}
std::string CreateEaiAllRequest::getClientSecurityGroupId() const {
return clientSecurityGroupId_;
}
void CreateEaiAllRequest::setClientSecurityGroupId(const std::string &clientSecurityGroupId) {
clientSecurityGroupId_ = clientSecurityGroupId;
setParameter(std::string("ClientSecurityGroupId"), clientSecurityGroupId);
}
std::string CreateEaiAllRequest::getEaiInstanceType() const {
return eaiInstanceType_;
}
void CreateEaiAllRequest::setEaiInstanceType(const std::string &eaiInstanceType) {
eaiInstanceType_ = eaiInstanceType;
setParameter(std::string("EaiInstanceType"), eaiInstanceType);
}
std::string CreateEaiAllRequest::getClientZoneId() const {
return clientZoneId_;
}
void CreateEaiAllRequest::setClientZoneId(const std::string &clientZoneId) {
clientZoneId_ = clientZoneId;
setParameter(std::string("ClientZoneId"), clientZoneId);
}
std::string CreateEaiAllRequest::getInstanceName() const {
return instanceName_;
}
void CreateEaiAllRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/eais/model/ListTagResourcesRequest.h>
using AlibabaCloud::Eais::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "ListTagResources") {
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest() {}
std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
return resourceId_;
}
void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string ListTagResourcesRequest::getResourceType() const {
return resourceType_;
}
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListTagResourcesRequest::getRegionId() const {
return regionId_;
}
void ListTagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -0,0 +1,70 @@
/*
* 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/eais/model/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
ListTagResourcesResult::ListTagResourcesResult() :
ServiceResult()
{}
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesResult::~ListTagResourcesResult()
{}
void ListTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
{
return tagResources_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eais/model/StartEaiJupyterRequest.h>
using AlibabaCloud::Eais::Model::StartEaiJupyterRequest;
StartEaiJupyterRequest::StartEaiJupyterRequest()
: RpcServiceRequest("eais", "2019-06-24", "StartEaiJupyter") {
setMethod(HttpRequest::Method::Post);
}
StartEaiJupyterRequest::~StartEaiJupyterRequest() {}
std::string StartEaiJupyterRequest::getInstanceId() const {
return instanceId_;
}
void StartEaiJupyterRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StartEaiJupyterRequest::getRegionId() const {
return regionId_;
}
void StartEaiJupyterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/eais/model/StartEaiJupyterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
StartEaiJupyterResult::StartEaiJupyterResult() :
ServiceResult()
{}
StartEaiJupyterResult::StartEaiJupyterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartEaiJupyterResult::~StartEaiJupyterResult()
{}
void StartEaiJupyterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessDeniedDetailNode = value["AccessDeniedDetail"];
if(!accessDeniedDetailNode["AuthAction"].isNull())
accessDeniedDetail_.authAction = accessDeniedDetailNode["AuthAction"].asString();
if(!accessDeniedDetailNode["AuthPrincipalDisplayName"].isNull())
accessDeniedDetail_.authPrincipalDisplayName = accessDeniedDetailNode["AuthPrincipalDisplayName"].asString();
if(!accessDeniedDetailNode["AuthPrincipalOwnerId"].isNull())
accessDeniedDetail_.authPrincipalOwnerId = accessDeniedDetailNode["AuthPrincipalOwnerId"].asString();
if(!accessDeniedDetailNode["AuthPrincipalType"].isNull())
accessDeniedDetail_.authPrincipalType = accessDeniedDetailNode["AuthPrincipalType"].asString();
if(!accessDeniedDetailNode["EncodedDiagnosticMessage"].isNull())
accessDeniedDetail_.encodedDiagnosticMessage = accessDeniedDetailNode["EncodedDiagnosticMessage"].asString();
if(!accessDeniedDetailNode["NoPermissionType"].isNull())
accessDeniedDetail_.noPermissionType = accessDeniedDetailNode["NoPermissionType"].asString();
if(!accessDeniedDetailNode["PolicyType"].isNull())
accessDeniedDetail_.policyType = accessDeniedDetailNode["PolicyType"].asString();
}
StartEaiJupyterResult::AccessDeniedDetail StartEaiJupyterResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eais/model/StopEaiJupyterRequest.h>
using AlibabaCloud::Eais::Model::StopEaiJupyterRequest;
StopEaiJupyterRequest::StopEaiJupyterRequest()
: RpcServiceRequest("eais", "2019-06-24", "StopEaiJupyter") {
setMethod(HttpRequest::Method::Post);
}
StopEaiJupyterRequest::~StopEaiJupyterRequest() {}
std::string StopEaiJupyterRequest::getInstanceId() const {
return instanceId_;
}
void StopEaiJupyterRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StopEaiJupyterRequest::getRegionId() const {
return regionId_;
}
void StopEaiJupyterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/eais/model/StopEaiJupyterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
StopEaiJupyterResult::StopEaiJupyterResult() :
ServiceResult()
{}
StopEaiJupyterResult::StopEaiJupyterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopEaiJupyterResult::~StopEaiJupyterResult()
{}
void StopEaiJupyterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessDeniedDetailNode = value["AccessDeniedDetail"];
if(!accessDeniedDetailNode["AuthAction"].isNull())
accessDeniedDetail_.authAction = accessDeniedDetailNode["AuthAction"].asString();
if(!accessDeniedDetailNode["AuthPrincipalDisplayName"].isNull())
accessDeniedDetail_.authPrincipalDisplayName = accessDeniedDetailNode["AuthPrincipalDisplayName"].asString();
if(!accessDeniedDetailNode["AuthPrincipalOwnerId"].isNull())
accessDeniedDetail_.authPrincipalOwnerId = accessDeniedDetailNode["AuthPrincipalOwnerId"].asString();
if(!accessDeniedDetailNode["AuthPrincipalType"].isNull())
accessDeniedDetail_.authPrincipalType = accessDeniedDetailNode["AuthPrincipalType"].asString();
if(!accessDeniedDetailNode["EncodedDiagnosticMessage"].isNull())
accessDeniedDetail_.encodedDiagnosticMessage = accessDeniedDetailNode["EncodedDiagnosticMessage"].asString();
if(!accessDeniedDetailNode["NoPermissionType"].isNull())
accessDeniedDetail_.noPermissionType = accessDeniedDetailNode["NoPermissionType"].asString();
if(!accessDeniedDetailNode["PolicyType"].isNull())
accessDeniedDetail_.policyType = accessDeniedDetailNode["PolicyType"].asString();
}
StopEaiJupyterResult::AccessDeniedDetail StopEaiJupyterResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}

View File

@@ -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.
*/
#include <alibabacloud/eais/model/TagResourcesRequest.h>
using AlibabaCloud::Eais::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "TagResources") {
setMethod(HttpRequest::Method::Post);
}
TagResourcesRequest::~TagResourcesRequest() {}
std::vector<std::string> TagResourcesRequest::getResourceId() const {
return resourceId_;
}
void TagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string TagResourcesRequest::getResourceType() const {
return resourceType_;
}
void TagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string TagResourcesRequest::getRegionId() const {
return regionId_;
}
void TagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
return tag_;
}
void TagResourcesRequest::setTag(const std::vector<TagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -14,45 +14,31 @@
* limitations under the License.
*/
#include <alibabacloud/eais/model/CreateEaiAllResult.h>
#include <alibabacloud/eais/model/TagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
CreateEaiAllResult::CreateEaiAllResult() :
TagResourcesResult::TagResourcesResult() :
ServiceResult()
{}
CreateEaiAllResult::CreateEaiAllResult(const std::string &payload) :
TagResourcesResult::TagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEaiAllResult::~CreateEaiAllResult()
TagResourcesResult::~TagResourcesResult()
{}
void CreateEaiAllResult::parse(const std::string &payload)
void TagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ElasticAcceleratedInstanceId"].isNull())
elasticAcceleratedInstanceId_ = value["ElasticAcceleratedInstanceId"].asString();
if(!value["ClientInstanceId"].isNull())
clientInstanceId_ = value["ClientInstanceId"].asString();
}
std::string CreateEaiAllResult::getClientInstanceId()const
{
return clientInstanceId_;
}
std::string CreateEaiAllResult::getElasticAcceleratedInstanceId()const
{
return elasticAcceleratedInstanceId_;
}

View File

@@ -0,0 +1,70 @@
/*
* 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/eais/model/UntagResourcesRequest.h>
using AlibabaCloud::Eais::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "UntagResources") {
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest() {}
bool UntagResourcesRequest::getAll() const {
return all_;
}
void UntagResourcesRequest::setAll(bool all) {
all_ = all;
setParameter(std::string("All"), all ? "true" : "false");
}
std::vector<std::string> UntagResourcesRequest::getResourceId() const {
return resourceId_;
}
void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string UntagResourcesRequest::getResourceType() const {
return resourceType_;
}
void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string UntagResourcesRequest::getRegionId() const {
return regionId_;
}
void UntagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<std::string> UntagResourcesRequest::getTagKey() const {
return tagKey_;
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
tagKey_ = tagKey;
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eais/model/UntagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
UntagResourcesResult::UntagResourcesResult() :
ServiceResult()
{}
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UntagResourcesResult::~UntagResourcesResult()
{}
void UntagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}