Support resource scheduler.

This commit is contained in:
sdk-team
2022-01-07 13:25:21 +00:00
parent 903d45f46a
commit 8137298eb1
29 changed files with 1244 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
2022-01-07 Version: 1.36.1019
- Support resource scheduler.
2022-01-07 Version: 1.36.1018
- Add or modify APIs, include, QueryEmbeddedStaus, QueryWorks, QueryWorksByWorkspace.

View File

@@ -1 +1 @@
1.36.1018
1.36.1019

View File

@@ -49,8 +49,12 @@ set(privatelink_public_header_model
include/alibabacloud/privatelink/model/DetachSecurityGroupFromVpcEndpointResult.h
include/alibabacloud/privatelink/model/DisableVpcEndpointConnectionRequest.h
include/alibabacloud/privatelink/model/DisableVpcEndpointConnectionResult.h
include/alibabacloud/privatelink/model/DisableVpcEndpointZoneConnectionRequest.h
include/alibabacloud/privatelink/model/DisableVpcEndpointZoneConnectionResult.h
include/alibabacloud/privatelink/model/EnableVpcEndpointConnectionRequest.h
include/alibabacloud/privatelink/model/EnableVpcEndpointConnectionResult.h
include/alibabacloud/privatelink/model/EnableVpcEndpointZoneConnectionRequest.h
include/alibabacloud/privatelink/model/EnableVpcEndpointZoneConnectionResult.h
include/alibabacloud/privatelink/model/GetVpcEndpointAttributeRequest.h
include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h
include/alibabacloud/privatelink/model/GetVpcEndpointServiceAttributeRequest.h
@@ -82,7 +86,11 @@ set(privatelink_public_header_model
include/alibabacloud/privatelink/model/UpdateVpcEndpointConnectionAttributeRequest.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointConnectionAttributeResult.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeResult.h )
include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeResult.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceResourceAttributeRequest.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceResourceAttributeResult.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointZoneConnectionResourceAttributeRequest.h
include/alibabacloud/privatelink/model/UpdateVpcEndpointZoneConnectionResourceAttributeResult.h )
set(privatelink_src
src/PrivatelinkClient.cc
@@ -114,8 +122,12 @@ set(privatelink_src
src/model/DetachSecurityGroupFromVpcEndpointResult.cc
src/model/DisableVpcEndpointConnectionRequest.cc
src/model/DisableVpcEndpointConnectionResult.cc
src/model/DisableVpcEndpointZoneConnectionRequest.cc
src/model/DisableVpcEndpointZoneConnectionResult.cc
src/model/EnableVpcEndpointConnectionRequest.cc
src/model/EnableVpcEndpointConnectionResult.cc
src/model/EnableVpcEndpointZoneConnectionRequest.cc
src/model/EnableVpcEndpointZoneConnectionResult.cc
src/model/GetVpcEndpointAttributeRequest.cc
src/model/GetVpcEndpointAttributeResult.cc
src/model/GetVpcEndpointServiceAttributeRequest.cc
@@ -147,7 +159,11 @@ set(privatelink_src
src/model/UpdateVpcEndpointConnectionAttributeRequest.cc
src/model/UpdateVpcEndpointConnectionAttributeResult.cc
src/model/UpdateVpcEndpointServiceAttributeRequest.cc
src/model/UpdateVpcEndpointServiceAttributeResult.cc )
src/model/UpdateVpcEndpointServiceAttributeResult.cc
src/model/UpdateVpcEndpointServiceResourceAttributeRequest.cc
src/model/UpdateVpcEndpointServiceResourceAttributeResult.cc
src/model/UpdateVpcEndpointZoneConnectionResourceAttributeRequest.cc
src/model/UpdateVpcEndpointZoneConnectionResourceAttributeResult.cc )
add_library(privatelink ${LIB_TYPE}
${privatelink_public_header}

View File

@@ -50,8 +50,12 @@
#include "model/DetachSecurityGroupFromVpcEndpointResult.h"
#include "model/DisableVpcEndpointConnectionRequest.h"
#include "model/DisableVpcEndpointConnectionResult.h"
#include "model/DisableVpcEndpointZoneConnectionRequest.h"
#include "model/DisableVpcEndpointZoneConnectionResult.h"
#include "model/EnableVpcEndpointConnectionRequest.h"
#include "model/EnableVpcEndpointConnectionResult.h"
#include "model/EnableVpcEndpointZoneConnectionRequest.h"
#include "model/EnableVpcEndpointZoneConnectionResult.h"
#include "model/GetVpcEndpointAttributeRequest.h"
#include "model/GetVpcEndpointAttributeResult.h"
#include "model/GetVpcEndpointServiceAttributeRequest.h"
@@ -84,6 +88,10 @@
#include "model/UpdateVpcEndpointConnectionAttributeResult.h"
#include "model/UpdateVpcEndpointServiceAttributeRequest.h"
#include "model/UpdateVpcEndpointServiceAttributeResult.h"
#include "model/UpdateVpcEndpointServiceResourceAttributeRequest.h"
#include "model/UpdateVpcEndpointServiceResourceAttributeResult.h"
#include "model/UpdateVpcEndpointZoneConnectionResourceAttributeRequest.h"
#include "model/UpdateVpcEndpointZoneConnectionResourceAttributeResult.h"
namespace AlibabaCloud
@@ -135,9 +143,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DisableVpcEndpointConnectionResult> DisableVpcEndpointConnectionOutcome;
typedef std::future<DisableVpcEndpointConnectionOutcome> DisableVpcEndpointConnectionOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::DisableVpcEndpointConnectionRequest&, const DisableVpcEndpointConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableVpcEndpointConnectionAsyncHandler;
typedef Outcome<Error, Model::DisableVpcEndpointZoneConnectionResult> DisableVpcEndpointZoneConnectionOutcome;
typedef std::future<DisableVpcEndpointZoneConnectionOutcome> DisableVpcEndpointZoneConnectionOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::DisableVpcEndpointZoneConnectionRequest&, const DisableVpcEndpointZoneConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableVpcEndpointZoneConnectionAsyncHandler;
typedef Outcome<Error, Model::EnableVpcEndpointConnectionResult> EnableVpcEndpointConnectionOutcome;
typedef std::future<EnableVpcEndpointConnectionOutcome> EnableVpcEndpointConnectionOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::EnableVpcEndpointConnectionRequest&, const EnableVpcEndpointConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableVpcEndpointConnectionAsyncHandler;
typedef Outcome<Error, Model::EnableVpcEndpointZoneConnectionResult> EnableVpcEndpointZoneConnectionOutcome;
typedef std::future<EnableVpcEndpointZoneConnectionOutcome> EnableVpcEndpointZoneConnectionOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::EnableVpcEndpointZoneConnectionRequest&, const EnableVpcEndpointZoneConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableVpcEndpointZoneConnectionAsyncHandler;
typedef Outcome<Error, Model::GetVpcEndpointAttributeResult> GetVpcEndpointAttributeOutcome;
typedef std::future<GetVpcEndpointAttributeOutcome> GetVpcEndpointAttributeOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::GetVpcEndpointAttributeRequest&, const GetVpcEndpointAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVpcEndpointAttributeAsyncHandler;
@@ -186,6 +200,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateVpcEndpointServiceAttributeResult> UpdateVpcEndpointServiceAttributeOutcome;
typedef std::future<UpdateVpcEndpointServiceAttributeOutcome> UpdateVpcEndpointServiceAttributeOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::UpdateVpcEndpointServiceAttributeRequest&, const UpdateVpcEndpointServiceAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVpcEndpointServiceAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateVpcEndpointServiceResourceAttributeResult> UpdateVpcEndpointServiceResourceAttributeOutcome;
typedef std::future<UpdateVpcEndpointServiceResourceAttributeOutcome> UpdateVpcEndpointServiceResourceAttributeOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::UpdateVpcEndpointServiceResourceAttributeRequest&, const UpdateVpcEndpointServiceResourceAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVpcEndpointServiceResourceAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateVpcEndpointZoneConnectionResourceAttributeResult> UpdateVpcEndpointZoneConnectionResourceAttributeOutcome;
typedef std::future<UpdateVpcEndpointZoneConnectionResourceAttributeOutcome> UpdateVpcEndpointZoneConnectionResourceAttributeOutcomeCallable;
typedef std::function<void(const PrivatelinkClient*, const Model::UpdateVpcEndpointZoneConnectionResourceAttributeRequest&, const UpdateVpcEndpointZoneConnectionResourceAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVpcEndpointZoneConnectionResourceAttributeAsyncHandler;
PrivatelinkClient(const Credentials &credentials, const ClientConfiguration &configuration);
PrivatelinkClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -233,9 +253,15 @@ namespace AlibabaCloud
DisableVpcEndpointConnectionOutcome disableVpcEndpointConnection(const Model::DisableVpcEndpointConnectionRequest &request)const;
void disableVpcEndpointConnectionAsync(const Model::DisableVpcEndpointConnectionRequest& request, const DisableVpcEndpointConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableVpcEndpointConnectionOutcomeCallable disableVpcEndpointConnectionCallable(const Model::DisableVpcEndpointConnectionRequest& request) const;
DisableVpcEndpointZoneConnectionOutcome disableVpcEndpointZoneConnection(const Model::DisableVpcEndpointZoneConnectionRequest &request)const;
void disableVpcEndpointZoneConnectionAsync(const Model::DisableVpcEndpointZoneConnectionRequest& request, const DisableVpcEndpointZoneConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableVpcEndpointZoneConnectionOutcomeCallable disableVpcEndpointZoneConnectionCallable(const Model::DisableVpcEndpointZoneConnectionRequest& request) const;
EnableVpcEndpointConnectionOutcome enableVpcEndpointConnection(const Model::EnableVpcEndpointConnectionRequest &request)const;
void enableVpcEndpointConnectionAsync(const Model::EnableVpcEndpointConnectionRequest& request, const EnableVpcEndpointConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableVpcEndpointConnectionOutcomeCallable enableVpcEndpointConnectionCallable(const Model::EnableVpcEndpointConnectionRequest& request) const;
EnableVpcEndpointZoneConnectionOutcome enableVpcEndpointZoneConnection(const Model::EnableVpcEndpointZoneConnectionRequest &request)const;
void enableVpcEndpointZoneConnectionAsync(const Model::EnableVpcEndpointZoneConnectionRequest& request, const EnableVpcEndpointZoneConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableVpcEndpointZoneConnectionOutcomeCallable enableVpcEndpointZoneConnectionCallable(const Model::EnableVpcEndpointZoneConnectionRequest& request) const;
GetVpcEndpointAttributeOutcome getVpcEndpointAttribute(const Model::GetVpcEndpointAttributeRequest &request)const;
void getVpcEndpointAttributeAsync(const Model::GetVpcEndpointAttributeRequest& request, const GetVpcEndpointAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVpcEndpointAttributeOutcomeCallable getVpcEndpointAttributeCallable(const Model::GetVpcEndpointAttributeRequest& request) const;
@@ -284,6 +310,12 @@ namespace AlibabaCloud
UpdateVpcEndpointServiceAttributeOutcome updateVpcEndpointServiceAttribute(const Model::UpdateVpcEndpointServiceAttributeRequest &request)const;
void updateVpcEndpointServiceAttributeAsync(const Model::UpdateVpcEndpointServiceAttributeRequest& request, const UpdateVpcEndpointServiceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVpcEndpointServiceAttributeOutcomeCallable updateVpcEndpointServiceAttributeCallable(const Model::UpdateVpcEndpointServiceAttributeRequest& request) const;
UpdateVpcEndpointServiceResourceAttributeOutcome updateVpcEndpointServiceResourceAttribute(const Model::UpdateVpcEndpointServiceResourceAttributeRequest &request)const;
void updateVpcEndpointServiceResourceAttributeAsync(const Model::UpdateVpcEndpointServiceResourceAttributeRequest& request, const UpdateVpcEndpointServiceResourceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVpcEndpointServiceResourceAttributeOutcomeCallable updateVpcEndpointServiceResourceAttributeCallable(const Model::UpdateVpcEndpointServiceResourceAttributeRequest& request) const;
UpdateVpcEndpointZoneConnectionResourceAttributeOutcome updateVpcEndpointZoneConnectionResourceAttribute(const Model::UpdateVpcEndpointZoneConnectionResourceAttributeRequest &request)const;
void updateVpcEndpointZoneConnectionResourceAttributeAsync(const Model::UpdateVpcEndpointZoneConnectionResourceAttributeRequest& request, const UpdateVpcEndpointZoneConnectionResourceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVpcEndpointZoneConnectionResourceAttributeOutcomeCallable updateVpcEndpointZoneConnectionResourceAttributeCallable(const Model::UpdateVpcEndpointZoneConnectionResourceAttributeRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -40,6 +40,8 @@ public:
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
@@ -49,6 +51,7 @@ private:
std::string resourceId_;
bool dryRun_;
std::string resourceType_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model

View File

@@ -31,6 +31,7 @@ public:
struct Resource {
std::string resourceType;
std::string resourceId;
std::string zoneId;
};
CreateVpcEndpointServiceRequest();
~CreateVpcEndpointServiceRequest();

View File

@@ -40,6 +40,8 @@ public:
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
@@ -49,6 +51,7 @@ private:
std::string resourceId_;
bool dryRun_;
std::string resourceType_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model

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_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONREQUEST_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONREQUEST_H_
#include <alibabacloud/privatelink/PrivatelinkExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Privatelink {
namespace Model {
class ALIBABACLOUD_PRIVATELINK_EXPORT DisableVpcEndpointZoneConnectionRequest : public RpcServiceRequest {
public:
DisableVpcEndpointZoneConnectionRequest();
~DisableVpcEndpointZoneConnectionRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getEndpointId() const;
void setEndpointId(const std::string &endpointId);
bool getReplacedResource() const;
void setReplacedResource(bool replacedResource);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
private:
std::string clientToken_;
std::string endpointId_;
bool replacedResource_;
std::string regionId_;
bool dryRun_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model
} // namespace Privatelink
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONREQUEST_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_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONRESULT_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/privatelink/PrivatelinkExport.h>
namespace AlibabaCloud
{
namespace Privatelink
{
namespace Model
{
class ALIBABACLOUD_PRIVATELINK_EXPORT DisableVpcEndpointZoneConnectionResult : public ServiceResult
{
public:
DisableVpcEndpointZoneConnectionResult();
explicit DisableVpcEndpointZoneConnectionResult(const std::string &payload);
~DisableVpcEndpointZoneConnectionResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_DISABLEVPCENDPOINTZONECONNECTIONRESULT_H_

View 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_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONREQUEST_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONREQUEST_H_
#include <alibabacloud/privatelink/PrivatelinkExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Privatelink {
namespace Model {
class ALIBABACLOUD_PRIVATELINK_EXPORT EnableVpcEndpointZoneConnectionRequest : public RpcServiceRequest {
public:
EnableVpcEndpointZoneConnectionRequest();
~EnableVpcEndpointZoneConnectionRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getEndpointId() const;
void setEndpointId(const std::string &endpointId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
private:
std::string clientToken_;
std::string endpointId_;
std::string regionId_;
bool dryRun_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model
} // namespace Privatelink
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONREQUEST_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_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONRESULT_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/privatelink/PrivatelinkExport.h>
namespace AlibabaCloud
{
namespace Privatelink
{
namespace Model
{
class ALIBABACLOUD_PRIVATELINK_EXPORT EnableVpcEndpointZoneConnectionResult : public ServiceResult
{
public:
EnableVpcEndpointZoneConnectionResult();
explicit EnableVpcEndpointZoneConnectionResult(const std::string &payload);
~EnableVpcEndpointZoneConnectionResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_ENABLEVPCENDPOINTZONECONNECTIONRESULT_H_

View File

@@ -48,6 +48,8 @@ public:
void setMaxResults(int maxResults);
std::string getEniId() const;
void setEniId(const std::string &eniId);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
@@ -61,6 +63,7 @@ private:
std::string connectionStatus_;
int maxResults_;
std::string eniId_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model

View 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_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTEREQUEST_H_
#include <alibabacloud/privatelink/PrivatelinkExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Privatelink {
namespace Model {
class ALIBABACLOUD_PRIVATELINK_EXPORT UpdateVpcEndpointServiceResourceAttributeRequest : public RpcServiceRequest {
public:
UpdateVpcEndpointServiceResourceAttributeRequest();
~UpdateVpcEndpointServiceResourceAttributeRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getAutoAllocatedEnabled() const;
void setAutoAllocatedEnabled(bool autoAllocatedEnabled);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
private:
std::string clientToken_;
std::string regionId_;
bool autoAllocatedEnabled_;
std::string resourceId_;
bool dryRun_;
std::string resourceType_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model
} // namespace Privatelink
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTEREQUEST_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_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTERESULT_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/privatelink/PrivatelinkExport.h>
namespace AlibabaCloud
{
namespace Privatelink
{
namespace Model
{
class ALIBABACLOUD_PRIVATELINK_EXPORT UpdateVpcEndpointServiceResourceAttributeResult : public ServiceResult
{
public:
UpdateVpcEndpointServiceResourceAttributeResult();
explicit UpdateVpcEndpointServiceResourceAttributeResult(const std::string &payload);
~UpdateVpcEndpointServiceResourceAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTSERVICERESOURCEATTRIBUTERESULT_H_

View 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_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTEREQUEST_H_
#include <alibabacloud/privatelink/PrivatelinkExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Privatelink {
namespace Model {
class ALIBABACLOUD_PRIVATELINK_EXPORT UpdateVpcEndpointZoneConnectionResourceAttributeRequest : public RpcServiceRequest {
public:
UpdateVpcEndpointZoneConnectionResourceAttributeRequest();
~UpdateVpcEndpointZoneConnectionResourceAttributeRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getEndpointId() const;
void setEndpointId(const std::string &endpointId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceAllocateMode() const;
void setResourceAllocateMode(const std::string &resourceAllocateMode);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getResourceReplaceMode() const;
void setResourceReplaceMode(const std::string &resourceReplaceMode);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getServiceId() const;
void setServiceId(const std::string &serviceId);
private:
std::string clientToken_;
std::string endpointId_;
std::string regionId_;
std::string resourceId_;
bool dryRun_;
std::string resourceAllocateMode_;
std::string resourceType_;
std::string resourceReplaceMode_;
std::string zoneId_;
std::string serviceId_;
};
} // namespace Model
} // namespace Privatelink
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTEREQUEST_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_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTERESULT_H_
#define ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/privatelink/PrivatelinkExport.h>
namespace AlibabaCloud
{
namespace Privatelink
{
namespace Model
{
class ALIBABACLOUD_PRIVATELINK_EXPORT UpdateVpcEndpointZoneConnectionResourceAttributeResult : public ServiceResult
{
public:
UpdateVpcEndpointZoneConnectionResourceAttributeResult();
explicit UpdateVpcEndpointZoneConnectionResourceAttributeResult(const std::string &payload);
~UpdateVpcEndpointZoneConnectionResourceAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_UPDATEVPCENDPOINTZONECONNECTIONRESOURCEATTRIBUTERESULT_H_

View File

@@ -555,6 +555,42 @@ PrivatelinkClient::DisableVpcEndpointConnectionOutcomeCallable PrivatelinkClient
return task->get_future();
}
PrivatelinkClient::DisableVpcEndpointZoneConnectionOutcome PrivatelinkClient::disableVpcEndpointZoneConnection(const DisableVpcEndpointZoneConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DisableVpcEndpointZoneConnectionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DisableVpcEndpointZoneConnectionOutcome(DisableVpcEndpointZoneConnectionResult(outcome.result()));
else
return DisableVpcEndpointZoneConnectionOutcome(outcome.error());
}
void PrivatelinkClient::disableVpcEndpointZoneConnectionAsync(const DisableVpcEndpointZoneConnectionRequest& request, const DisableVpcEndpointZoneConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, disableVpcEndpointZoneConnection(request), context);
};
asyncExecute(new Runnable(fn));
}
PrivatelinkClient::DisableVpcEndpointZoneConnectionOutcomeCallable PrivatelinkClient::disableVpcEndpointZoneConnectionCallable(const DisableVpcEndpointZoneConnectionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DisableVpcEndpointZoneConnectionOutcome()>>(
[this, request]()
{
return this->disableVpcEndpointZoneConnection(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PrivatelinkClient::EnableVpcEndpointConnectionOutcome PrivatelinkClient::enableVpcEndpointConnection(const EnableVpcEndpointConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -591,6 +627,42 @@ PrivatelinkClient::EnableVpcEndpointConnectionOutcomeCallable PrivatelinkClient:
return task->get_future();
}
PrivatelinkClient::EnableVpcEndpointZoneConnectionOutcome PrivatelinkClient::enableVpcEndpointZoneConnection(const EnableVpcEndpointZoneConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableVpcEndpointZoneConnectionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableVpcEndpointZoneConnectionOutcome(EnableVpcEndpointZoneConnectionResult(outcome.result()));
else
return EnableVpcEndpointZoneConnectionOutcome(outcome.error());
}
void PrivatelinkClient::enableVpcEndpointZoneConnectionAsync(const EnableVpcEndpointZoneConnectionRequest& request, const EnableVpcEndpointZoneConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableVpcEndpointZoneConnection(request), context);
};
asyncExecute(new Runnable(fn));
}
PrivatelinkClient::EnableVpcEndpointZoneConnectionOutcomeCallable PrivatelinkClient::enableVpcEndpointZoneConnectionCallable(const EnableVpcEndpointZoneConnectionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableVpcEndpointZoneConnectionOutcome()>>(
[this, request]()
{
return this->enableVpcEndpointZoneConnection(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PrivatelinkClient::GetVpcEndpointAttributeOutcome PrivatelinkClient::getVpcEndpointAttribute(const GetVpcEndpointAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,3 +1239,75 @@ PrivatelinkClient::UpdateVpcEndpointServiceAttributeOutcomeCallable PrivatelinkC
return task->get_future();
}
PrivatelinkClient::UpdateVpcEndpointServiceResourceAttributeOutcome PrivatelinkClient::updateVpcEndpointServiceResourceAttribute(const UpdateVpcEndpointServiceResourceAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateVpcEndpointServiceResourceAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateVpcEndpointServiceResourceAttributeOutcome(UpdateVpcEndpointServiceResourceAttributeResult(outcome.result()));
else
return UpdateVpcEndpointServiceResourceAttributeOutcome(outcome.error());
}
void PrivatelinkClient::updateVpcEndpointServiceResourceAttributeAsync(const UpdateVpcEndpointServiceResourceAttributeRequest& request, const UpdateVpcEndpointServiceResourceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateVpcEndpointServiceResourceAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
PrivatelinkClient::UpdateVpcEndpointServiceResourceAttributeOutcomeCallable PrivatelinkClient::updateVpcEndpointServiceResourceAttributeCallable(const UpdateVpcEndpointServiceResourceAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateVpcEndpointServiceResourceAttributeOutcome()>>(
[this, request]()
{
return this->updateVpcEndpointServiceResourceAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PrivatelinkClient::UpdateVpcEndpointZoneConnectionResourceAttributeOutcome PrivatelinkClient::updateVpcEndpointZoneConnectionResourceAttribute(const UpdateVpcEndpointZoneConnectionResourceAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateVpcEndpointZoneConnectionResourceAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateVpcEndpointZoneConnectionResourceAttributeOutcome(UpdateVpcEndpointZoneConnectionResourceAttributeResult(outcome.result()));
else
return UpdateVpcEndpointZoneConnectionResourceAttributeOutcome(outcome.error());
}
void PrivatelinkClient::updateVpcEndpointZoneConnectionResourceAttributeAsync(const UpdateVpcEndpointZoneConnectionResourceAttributeRequest& request, const UpdateVpcEndpointZoneConnectionResourceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateVpcEndpointZoneConnectionResourceAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
PrivatelinkClient::UpdateVpcEndpointZoneConnectionResourceAttributeOutcomeCallable PrivatelinkClient::updateVpcEndpointZoneConnectionResourceAttributeCallable(const UpdateVpcEndpointZoneConnectionResourceAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateVpcEndpointZoneConnectionResourceAttributeOutcome()>>(
[this, request]()
{
return this->updateVpcEndpointZoneConnectionResourceAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -70,6 +70,15 @@ void AttachResourceToVpcEndpointServiceRequest::setResourceType(const std::strin
setParameter(std::string("ResourceType"), resourceType);
}
std::string AttachResourceToVpcEndpointServiceRequest::getZoneId() const {
return zoneId_;
}
void AttachResourceToVpcEndpointServiceRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string AttachResourceToVpcEndpointServiceRequest::getServiceId() const {
return serviceId_;
}

View File

@@ -108,6 +108,7 @@ void CreateVpcEndpointServiceRequest::setResource(const std::vector<CreateVpcEnd
std::string resourceObjStr = std::string("Resource") + "." + std::to_string(dep1 + 1);
setParameter(resourceObjStr + ".ResourceType", resourceObj.resourceType);
setParameter(resourceObjStr + ".ResourceId", resourceObj.resourceId);
setParameter(resourceObjStr + ".ZoneId", resourceObj.zoneId);
}
}

View File

@@ -70,6 +70,15 @@ void DetachResourceFromVpcEndpointServiceRequest::setResourceType(const std::str
setParameter(std::string("ResourceType"), resourceType);
}
std::string DetachResourceFromVpcEndpointServiceRequest::getZoneId() const {
return zoneId_;
}
void DetachResourceFromVpcEndpointServiceRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string DetachResourceFromVpcEndpointServiceRequest::getServiceId() const {
return serviceId_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/privatelink/model/DisableVpcEndpointZoneConnectionRequest.h>
using AlibabaCloud::Privatelink::Model::DisableVpcEndpointZoneConnectionRequest;
DisableVpcEndpointZoneConnectionRequest::DisableVpcEndpointZoneConnectionRequest()
: RpcServiceRequest("privatelink", "2020-04-15", "DisableVpcEndpointZoneConnection") {
setMethod(HttpRequest::Method::Post);
}
DisableVpcEndpointZoneConnectionRequest::~DisableVpcEndpointZoneConnectionRequest() {}
std::string DisableVpcEndpointZoneConnectionRequest::getClientToken() const {
return clientToken_;
}
void DisableVpcEndpointZoneConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DisableVpcEndpointZoneConnectionRequest::getEndpointId() const {
return endpointId_;
}
void DisableVpcEndpointZoneConnectionRequest::setEndpointId(const std::string &endpointId) {
endpointId_ = endpointId;
setParameter(std::string("EndpointId"), endpointId);
}
bool DisableVpcEndpointZoneConnectionRequest::getReplacedResource() const {
return replacedResource_;
}
void DisableVpcEndpointZoneConnectionRequest::setReplacedResource(bool replacedResource) {
replacedResource_ = replacedResource;
setParameter(std::string("ReplacedResource"), replacedResource ? "true" : "false");
}
std::string DisableVpcEndpointZoneConnectionRequest::getRegionId() const {
return regionId_;
}
void DisableVpcEndpointZoneConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool DisableVpcEndpointZoneConnectionRequest::getDryRun() const {
return dryRun_;
}
void DisableVpcEndpointZoneConnectionRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string DisableVpcEndpointZoneConnectionRequest::getZoneId() const {
return zoneId_;
}
void DisableVpcEndpointZoneConnectionRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string DisableVpcEndpointZoneConnectionRequest::getServiceId() const {
return serviceId_;
}
void DisableVpcEndpointZoneConnectionRequest::setServiceId(const std::string &serviceId) {
serviceId_ = serviceId;
setParameter(std::string("ServiceId"), serviceId);
}

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/privatelink/model/DisableVpcEndpointZoneConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Privatelink;
using namespace AlibabaCloud::Privatelink::Model;
DisableVpcEndpointZoneConnectionResult::DisableVpcEndpointZoneConnectionResult() :
ServiceResult()
{}
DisableVpcEndpointZoneConnectionResult::DisableVpcEndpointZoneConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableVpcEndpointZoneConnectionResult::~DisableVpcEndpointZoneConnectionResult()
{}
void DisableVpcEndpointZoneConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,81 @@
/*
* 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/privatelink/model/EnableVpcEndpointZoneConnectionRequest.h>
using AlibabaCloud::Privatelink::Model::EnableVpcEndpointZoneConnectionRequest;
EnableVpcEndpointZoneConnectionRequest::EnableVpcEndpointZoneConnectionRequest()
: RpcServiceRequest("privatelink", "2020-04-15", "EnableVpcEndpointZoneConnection") {
setMethod(HttpRequest::Method::Post);
}
EnableVpcEndpointZoneConnectionRequest::~EnableVpcEndpointZoneConnectionRequest() {}
std::string EnableVpcEndpointZoneConnectionRequest::getClientToken() const {
return clientToken_;
}
void EnableVpcEndpointZoneConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string EnableVpcEndpointZoneConnectionRequest::getEndpointId() const {
return endpointId_;
}
void EnableVpcEndpointZoneConnectionRequest::setEndpointId(const std::string &endpointId) {
endpointId_ = endpointId;
setParameter(std::string("EndpointId"), endpointId);
}
std::string EnableVpcEndpointZoneConnectionRequest::getRegionId() const {
return regionId_;
}
void EnableVpcEndpointZoneConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool EnableVpcEndpointZoneConnectionRequest::getDryRun() const {
return dryRun_;
}
void EnableVpcEndpointZoneConnectionRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string EnableVpcEndpointZoneConnectionRequest::getZoneId() const {
return zoneId_;
}
void EnableVpcEndpointZoneConnectionRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string EnableVpcEndpointZoneConnectionRequest::getServiceId() const {
return serviceId_;
}
void EnableVpcEndpointZoneConnectionRequest::setServiceId(const std::string &serviceId) {
serviceId_ = serviceId;
setParameter(std::string("ServiceId"), serviceId);
}

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/privatelink/model/EnableVpcEndpointZoneConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Privatelink;
using namespace AlibabaCloud::Privatelink::Model;
EnableVpcEndpointZoneConnectionResult::EnableVpcEndpointZoneConnectionResult() :
ServiceResult()
{}
EnableVpcEndpointZoneConnectionResult::EnableVpcEndpointZoneConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableVpcEndpointZoneConnectionResult::~EnableVpcEndpointZoneConnectionResult()
{}
void EnableVpcEndpointZoneConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -106,6 +106,15 @@ void ListVpcEndpointConnectionsRequest::setEniId(const std::string &eniId) {
setParameter(std::string("EniId"), eniId);
}
std::string ListVpcEndpointConnectionsRequest::getZoneId() const {
return zoneId_;
}
void ListVpcEndpointConnectionsRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string ListVpcEndpointConnectionsRequest::getServiceId() const {
return serviceId_;
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/privatelink/model/UpdateVpcEndpointServiceResourceAttributeRequest.h>
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointServiceResourceAttributeRequest;
UpdateVpcEndpointServiceResourceAttributeRequest::UpdateVpcEndpointServiceResourceAttributeRequest()
: RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointServiceResourceAttribute") {
setMethod(HttpRequest::Method::Post);
}
UpdateVpcEndpointServiceResourceAttributeRequest::~UpdateVpcEndpointServiceResourceAttributeRequest() {}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getClientToken() const {
return clientToken_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getRegionId() const {
return regionId_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool UpdateVpcEndpointServiceResourceAttributeRequest::getAutoAllocatedEnabled() const {
return autoAllocatedEnabled_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setAutoAllocatedEnabled(bool autoAllocatedEnabled) {
autoAllocatedEnabled_ = autoAllocatedEnabled;
setParameter(std::string("AutoAllocatedEnabled"), autoAllocatedEnabled ? "true" : "false");
}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getResourceId() const {
return resourceId_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
bool UpdateVpcEndpointServiceResourceAttributeRequest::getDryRun() const {
return dryRun_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getResourceType() const {
return resourceType_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getZoneId() const {
return zoneId_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string UpdateVpcEndpointServiceResourceAttributeRequest::getServiceId() const {
return serviceId_;
}
void UpdateVpcEndpointServiceResourceAttributeRequest::setServiceId(const std::string &serviceId) {
serviceId_ = serviceId;
setParameter(std::string("ServiceId"), serviceId);
}

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/privatelink/model/UpdateVpcEndpointServiceResourceAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Privatelink;
using namespace AlibabaCloud::Privatelink::Model;
UpdateVpcEndpointServiceResourceAttributeResult::UpdateVpcEndpointServiceResourceAttributeResult() :
ServiceResult()
{}
UpdateVpcEndpointServiceResourceAttributeResult::UpdateVpcEndpointServiceResourceAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateVpcEndpointServiceResourceAttributeResult::~UpdateVpcEndpointServiceResourceAttributeResult()
{}
void UpdateVpcEndpointServiceResourceAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,117 @@
/*
* 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/privatelink/model/UpdateVpcEndpointZoneConnectionResourceAttributeRequest.h>
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointZoneConnectionResourceAttributeRequest;
UpdateVpcEndpointZoneConnectionResourceAttributeRequest::UpdateVpcEndpointZoneConnectionResourceAttributeRequest()
: RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointZoneConnectionResourceAttribute") {
setMethod(HttpRequest::Method::Post);
}
UpdateVpcEndpointZoneConnectionResourceAttributeRequest::~UpdateVpcEndpointZoneConnectionResourceAttributeRequest() {}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getClientToken() const {
return clientToken_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getEndpointId() const {
return endpointId_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setEndpointId(const std::string &endpointId) {
endpointId_ = endpointId;
setParameter(std::string("EndpointId"), endpointId);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getRegionId() const {
return regionId_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getResourceId() const {
return resourceId_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
bool UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getDryRun() const {
return dryRun_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getResourceAllocateMode() const {
return resourceAllocateMode_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setResourceAllocateMode(const std::string &resourceAllocateMode) {
resourceAllocateMode_ = resourceAllocateMode;
setParameter(std::string("ResourceAllocateMode"), resourceAllocateMode);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getResourceType() const {
return resourceType_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getResourceReplaceMode() const {
return resourceReplaceMode_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setResourceReplaceMode(const std::string &resourceReplaceMode) {
resourceReplaceMode_ = resourceReplaceMode;
setParameter(std::string("ResourceReplaceMode"), resourceReplaceMode);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getZoneId() const {
return zoneId_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}
std::string UpdateVpcEndpointZoneConnectionResourceAttributeRequest::getServiceId() const {
return serviceId_;
}
void UpdateVpcEndpointZoneConnectionResourceAttributeRequest::setServiceId(const std::string &serviceId) {
serviceId_ = serviceId;
setParameter(std::string("ServiceId"), serviceId);
}

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/privatelink/model/UpdateVpcEndpointZoneConnectionResourceAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Privatelink;
using namespace AlibabaCloud::Privatelink::Model;
UpdateVpcEndpointZoneConnectionResourceAttributeResult::UpdateVpcEndpointZoneConnectionResourceAttributeResult() :
ServiceResult()
{}
UpdateVpcEndpointZoneConnectionResourceAttributeResult::UpdateVpcEndpointZoneConnectionResourceAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateVpcEndpointZoneConnectionResourceAttributeResult::~UpdateVpcEndpointZoneConnectionResourceAttributeResult()
{}
void UpdateVpcEndpointZoneConnectionResourceAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}