由鸿逸发起的HSM SDK自动发布, 版本号:1.7.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
110
hsm/include/alibabacloud/hsm/HsmClient.h
Normal file
110
hsm/include/alibabacloud/hsm/HsmClient.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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_HSM_HSMCLIENT_H_
|
||||
#define ALIBABACLOUD_HSM_HSMCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "HsmExport.h"
|
||||
#include "model/ConfigWhiteListRequest.h"
|
||||
#include "model/ConfigWhiteListResult.h"
|
||||
#include "model/ConfigNetworkRequest.h"
|
||||
#include "model/ConfigNetworkResult.h"
|
||||
#include "model/ReleaseInstanceRequest.h"
|
||||
#include "model/ReleaseInstanceResult.h"
|
||||
#include "model/DescribeInstancesRequest.h"
|
||||
#include "model/DescribeInstancesResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT HsmClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ConfigWhiteListResult> ConfigWhiteListOutcome;
|
||||
typedef std::future<ConfigWhiteListOutcome> ConfigWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::ConfigWhiteListRequest&, const ConfigWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConfigNetworkResult> ConfigNetworkOutcome;
|
||||
typedef std::future<ConfigNetworkOutcome> ConfigNetworkOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::ConfigNetworkRequest&, const ConfigNetworkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigNetworkAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseInstanceResult> ReleaseInstanceOutcome;
|
||||
typedef std::future<ReleaseInstanceOutcome> ReleaseInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::ReleaseInstanceRequest&, const ReleaseInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstancesResult> DescribeInstancesOutcome;
|
||||
typedef std::future<DescribeInstancesOutcome> DescribeInstancesOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::DescribeInstancesRequest&, const DescribeInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HsmClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
|
||||
HsmClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
HsmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
HsmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~HsmClient();
|
||||
ConfigWhiteListOutcome configWhiteList(const Model::ConfigWhiteListRequest &request)const;
|
||||
void configWhiteListAsync(const Model::ConfigWhiteListRequest& request, const ConfigWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConfigWhiteListOutcomeCallable configWhiteListCallable(const Model::ConfigWhiteListRequest& request) const;
|
||||
ConfigNetworkOutcome configNetwork(const Model::ConfigNetworkRequest &request)const;
|
||||
void configNetworkAsync(const Model::ConfigNetworkRequest& request, const ConfigNetworkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConfigNetworkOutcomeCallable configNetworkCallable(const Model::ConfigNetworkRequest& request) const;
|
||||
ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const;
|
||||
void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const;
|
||||
DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const;
|
||||
void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_HSM_HSMCLIENT_H_
|
||||
32
hsm/include/alibabacloud/hsm/HsmExport.h
Normal file
32
hsm/include/alibabacloud/hsm/HsmExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_HSM_HSMEXPORT_H_
|
||||
#define ALIBABACLOUD_HSM_HSMEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_HSM_LIBRARY)
|
||||
# define ALIBABACLOUD_HSM_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_HSM_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_HSM_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_HSM_HSMEXPORT_H_
|
||||
63
hsm/include/alibabacloud/hsm/model/ConfigNetworkRequest.h
Normal file
63
hsm/include/alibabacloud/hsm/model/ConfigNetworkRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HSM_MODEL_CONFIGNETWORKREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CONFIGNETWORKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ConfigNetworkRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConfigNetworkRequest();
|
||||
~ConfigNetworkRequest();
|
||||
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
|
||||
private:
|
||||
std::string vSwitchId_;
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string sourceIp_;
|
||||
std::string vpcId_;
|
||||
std::string ip_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CONFIGNETWORKREQUEST_H_
|
||||
49
hsm/include/alibabacloud/hsm/model/ConfigNetworkResult.h
Normal file
49
hsm/include/alibabacloud/hsm/model/ConfigNetworkResult.h
Normal 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_HSM_MODEL_CONFIGNETWORKRESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CONFIGNETWORKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ConfigNetworkResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConfigNetworkResult();
|
||||
explicit ConfigNetworkResult(const std::string &payload);
|
||||
~ConfigNetworkResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CONFIGNETWORKRESULT_H_
|
||||
57
hsm/include/alibabacloud/hsm/model/ConfigWhiteListRequest.h
Normal file
57
hsm/include/alibabacloud/hsm/model/ConfigWhiteListRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_HSM_MODEL_CONFIGWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CONFIGWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ConfigWhiteListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConfigWhiteListRequest();
|
||||
~ConfigWhiteListRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getWhiteList()const;
|
||||
void setWhiteList(const std::string& whiteList);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string sourceIp_;
|
||||
std::string whiteList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CONFIGWHITELISTREQUEST_H_
|
||||
49
hsm/include/alibabacloud/hsm/model/ConfigWhiteListResult.h
Normal file
49
hsm/include/alibabacloud/hsm/model/ConfigWhiteListResult.h
Normal 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_HSM_MODEL_CONFIGWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CONFIGWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ConfigWhiteListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConfigWhiteListResult();
|
||||
explicit ConfigWhiteListResult(const std::string &payload);
|
||||
~ConfigWhiteListResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CONFIGWHITELISTRESULT_H_
|
||||
69
hsm/include/alibabacloud/hsm/model/CreateInstanceRequest.h
Normal file
69
hsm/include/alibabacloud/hsm/model/CreateInstanceRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_HSM_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT CreateInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateInstanceRequest();
|
||||
~CreateInstanceRequest();
|
||||
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getResourceOwnerId()const;
|
||||
void setResourceOwnerId(const std::string& resourceOwnerId);
|
||||
int getQuantity()const;
|
||||
void setQuantity(int quantity);
|
||||
std::string getHsmDeviceType()const;
|
||||
void setHsmDeviceType(const std::string& hsmDeviceType);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getHsmOem()const;
|
||||
void setHsmOem(const std::string& hsmOem);
|
||||
|
||||
private:
|
||||
int period_;
|
||||
std::string periodUnit_;
|
||||
std::string resourceOwnerId_;
|
||||
int quantity_;
|
||||
std::string hsmDeviceType_;
|
||||
std::string clientToken_;
|
||||
std::string zoneId_;
|
||||
std::string hsmOem_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
51
hsm/include/alibabacloud/hsm/model/CreateInstanceResult.h
Normal file
51
hsm/include/alibabacloud/hsm/model/CreateInstanceResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HSM_MODEL_CREATEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_CREATEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT CreateInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateInstanceResult();
|
||||
explicit CreateInstanceResult(const std::string &payload);
|
||||
~CreateInstanceResult();
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> instanceIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_CREATEINSTANCERESULT_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_HSM_MODEL_DESCRIBEINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_DESCRIBEINSTANCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT DescribeInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeInstancesRequest();
|
||||
~DescribeInstancesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
int getHsmStatus()const;
|
||||
void setHsmStatus(int hsmStatus);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
int hsmStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_DESCRIBEINSTANCESREQUEST_H_
|
||||
69
hsm/include/alibabacloud/hsm/model/DescribeInstancesResult.h
Normal file
69
hsm/include/alibabacloud/hsm/model/DescribeInstancesResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_HSM_MODEL_DESCRIBEINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_DESCRIBEINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT DescribeInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
std::string zoneId;
|
||||
std::string instanceId;
|
||||
std::string ip;
|
||||
long createTime;
|
||||
std::vector<std::string> whiteList;
|
||||
std::string vswitchId;
|
||||
std::string remark;
|
||||
std::string hsmOem;
|
||||
int hsmStatus;
|
||||
std::string vpcId;
|
||||
long expiredTime;
|
||||
std::string regionId;
|
||||
std::string hsmDeviceType;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstancesResult();
|
||||
explicit DescribeInstancesResult(const std::string &payload);
|
||||
~DescribeInstancesResult();
|
||||
std::vector<Instance> getInstances()const;
|
||||
int getTotalCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Instance> instances_;
|
||||
int totalCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_DESCRIBEINSTANCESRESULT_H_
|
||||
51
hsm/include/alibabacloud/hsm/model/DescribeRegionsRequest.h
Normal file
51
hsm/include/alibabacloud/hsm/model/DescribeRegionsRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HSM_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
60
hsm/include/alibabacloud/hsm/model/DescribeRegionsResult.h
Normal file
60
hsm/include/alibabacloud/hsm/model/DescribeRegionsResult.h
Normal 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_HSM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Region
|
||||
{
|
||||
struct Zone
|
||||
{
|
||||
std::string zoneId;
|
||||
};
|
||||
std::string regionId;
|
||||
std::vector<Region::Zone> zones;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
std::vector<Region> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Region> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
57
hsm/include/alibabacloud/hsm/model/ModifyInstanceRequest.h
Normal file
57
hsm/include/alibabacloud/hsm/model/ModifyInstanceRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_HSM_MODEL_MODIFYINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_MODIFYINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ModifyInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyInstanceRequest();
|
||||
~ModifyInstanceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getRemark()const;
|
||||
void setRemark(const std::string& remark);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string sourceIp_;
|
||||
std::string remark_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_MODIFYINSTANCEREQUEST_H_
|
||||
49
hsm/include/alibabacloud/hsm/model/ModifyInstanceResult.h
Normal file
49
hsm/include/alibabacloud/hsm/model/ModifyInstanceResult.h
Normal 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_HSM_MODEL_MODIFYINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_MODIFYINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ModifyInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyInstanceResult();
|
||||
explicit ModifyInstanceResult(const std::string &payload);
|
||||
~ModifyInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_MODIFYINSTANCERESULT_H_
|
||||
51
hsm/include/alibabacloud/hsm/model/ReleaseInstanceRequest.h
Normal file
51
hsm/include/alibabacloud/hsm/model/ReleaseInstanceRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HSM_MODEL_RELEASEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_RELEASEINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ReleaseInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ReleaseInstanceRequest();
|
||||
~ReleaseInstanceRequest();
|
||||
|
||||
std::string getResourceOwnerId()const;
|
||||
void setResourceOwnerId(const std::string& resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_RELEASEINSTANCEREQUEST_H_
|
||||
49
hsm/include/alibabacloud/hsm/model/ReleaseInstanceResult.h
Normal file
49
hsm/include/alibabacloud/hsm/model/ReleaseInstanceResult.h
Normal 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_HSM_MODEL_RELEASEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_RELEASEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT ReleaseInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReleaseInstanceResult();
|
||||
explicit ReleaseInstanceResult(const std::string &payload);
|
||||
~ReleaseInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_RELEASEINSTANCERESULT_H_
|
||||
60
hsm/include/alibabacloud/hsm/model/RenewInstanceRequest.h
Normal file
60
hsm/include/alibabacloud/hsm/model/RenewInstanceRequest.h
Normal 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_HSM_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT RenewInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RenewInstanceRequest();
|
||||
~RenewInstanceRequest();
|
||||
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getResourceOwnerId()const;
|
||||
void setResourceOwnerId(const std::string& resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
|
||||
private:
|
||||
int period_;
|
||||
std::string periodUnit_;
|
||||
std::string resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string clientToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
49
hsm/include/alibabacloud/hsm/model/RenewInstanceResult.h
Normal file
49
hsm/include/alibabacloud/hsm/model/RenewInstanceResult.h
Normal 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_HSM_MODEL_RENEWINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HSM_MODEL_RENEWINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hsm/HsmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hsm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HSM_EXPORT RenewInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RenewInstanceResult();
|
||||
explicit RenewInstanceResult(const std::string &payload);
|
||||
~RenewInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HSM_MODEL_RENEWINSTANCERESULT_H_
|
||||
Reference in New Issue
Block a user