From f6993928966695965fb6d4b0b3117c0156180b9e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 5 Jul 2023 05:41:51 +0000 Subject: [PATCH] Add latest update. --- VERSION | 2 +- privatelink/CMakeLists.txt | 16 ++ .../privatelink/PrivatelinkClient.h | 32 ++++ .../AddUserToVpcEndpointServiceRequest.h | 3 + .../model/ChangeResourceGroupRequest.h | 54 +++++++ .../model/ChangeResourceGroupResult.h | 49 ++++++ .../CheckResourceSupportOperateRequest.h | 48 ++++++ .../model/CheckResourceSupportOperateResult.h | 53 +++++++ .../model/CreateVpcEndpointRequest.h | 18 +++ .../model/CreateVpcEndpointServiceRequest.h | 21 +++ .../model/CreateVpcEndpointServiceResult.h | 4 + .../privatelink/model/DescribeZonesRequest.h | 3 + .../model/GetVpcEndpointAttributeResult.h | 2 + .../GetVpcEndpointServiceAttributeResult.h | 52 ++++--- .../model/ListVpcEndpointConnectionsRequest.h | 6 + .../model/ListVpcEndpointConnectionsResult.h | 9 +- .../ListVpcEndpointSecurityGroupsResult.h | 4 +- .../ListVpcEndpointServiceResourcesResult.h | 5 +- .../ListVpcEndpointServiceUsersRequest.h | 3 + .../model/ListVpcEndpointServiceUsersResult.h | 12 +- .../ListVpcEndpointServicesByEndUserRequest.h | 10 ++ .../ListVpcEndpointServicesByEndUserResult.h | 15 +- .../model/ListVpcEndpointServicesRequest.h | 10 ++ .../model/ListVpcEndpointServicesResult.h | 14 +- .../model/ListVpcEndpointZonesResult.h | 7 +- .../model/ListVpcEndpointsRequest.h | 10 ++ .../model/ListVpcEndpointsResult.h | 13 +- .../NotifyResourceAddressFamilyRequest.h | 51 +++++++ .../model/NotifyResourceAddressFamilyResult.h | 49 ++++++ .../RemoveUserFromVpcEndpointServiceRequest.h | 3 + .../privatelink/model/TagResourcesRequest.h | 61 ++++++++ .../privatelink/model/TagResourcesResult.h | 49 ++++++ ...UpdateVpcEndpointServiceAttributeRequest.h | 3 + privatelink/src/PrivatelinkClient.cc | 144 ++++++++++++++++++ .../AddUserToVpcEndpointServiceRequest.cc | 9 ++ .../src/model/ChangeResourceGroupRequest.cc | 72 +++++++++ .../src/model/ChangeResourceGroupResult.cc | 44 ++++++ .../CheckResourceSupportOperateRequest.cc | 54 +++++++ .../CheckResourceSupportOperateResult.cc | 58 +++++++ .../src/model/CreateVpcEndpointRequest.cc | 38 +++++ .../model/CreateVpcEndpointServiceRequest.cc | 47 ++++++ .../model/CreateVpcEndpointServiceResult.cc | 14 ++ privatelink/src/model/DescribeZonesRequest.cc | 9 ++ .../model/GetVpcEndpointAttributeResult.cc | 7 + .../GetVpcEndpointServiceAttributeResult.cc | 134 ++++++++-------- .../ListVpcEndpointConnectionsRequest.cc | 18 +++ .../model/ListVpcEndpointConnectionsResult.cc | 17 ++- .../ListVpcEndpointSecurityGroupsResult.cc | 4 +- .../ListVpcEndpointServiceResourcesResult.cc | 6 +- .../ListVpcEndpointServiceUsersRequest.cc | 9 ++ .../ListVpcEndpointServiceUsersResult.cc | 24 ++- ...ListVpcEndpointServicesByEndUserRequest.cc | 21 +++ .../ListVpcEndpointServicesByEndUserResult.cc | 27 +++- .../model/ListVpcEndpointServicesRequest.cc | 21 +++ .../model/ListVpcEndpointServicesResult.cc | 25 ++- .../src/model/ListVpcEndpointZonesResult.cc | 10 +- .../src/model/ListVpcEndpointsRequest.cc | 21 +++ .../src/model/ListVpcEndpointsResult.cc | 23 ++- .../NotifyResourceAddressFamilyRequest.cc | 63 ++++++++ .../NotifyResourceAddressFamilyResult.cc | 44 ++++++ ...RemoveUserFromVpcEndpointServiceRequest.cc | 9 ++ privatelink/src/model/TagResourcesRequest.cc | 86 +++++++++++ privatelink/src/model/TagResourcesResult.cc | 44 ++++++ ...pdateVpcEndpointServiceAttributeRequest.cc | 9 ++ 64 files changed, 1685 insertions(+), 117 deletions(-) create mode 100644 privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupRequest.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupResult.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateRequest.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateResult.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyRequest.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyResult.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/TagResourcesRequest.h create mode 100644 privatelink/include/alibabacloud/privatelink/model/TagResourcesResult.h create mode 100644 privatelink/src/model/ChangeResourceGroupRequest.cc create mode 100644 privatelink/src/model/ChangeResourceGroupResult.cc create mode 100644 privatelink/src/model/CheckResourceSupportOperateRequest.cc create mode 100644 privatelink/src/model/CheckResourceSupportOperateResult.cc create mode 100644 privatelink/src/model/NotifyResourceAddressFamilyRequest.cc create mode 100644 privatelink/src/model/NotifyResourceAddressFamilyResult.cc create mode 100644 privatelink/src/model/TagResourcesRequest.cc create mode 100644 privatelink/src/model/TagResourcesResult.cc diff --git a/VERSION b/VERSION index af96c1386..afb1284db 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1632 \ No newline at end of file +1.36.1633 \ No newline at end of file diff --git a/privatelink/CMakeLists.txt b/privatelink/CMakeLists.txt index 1e1685897..c855252e0 100644 --- a/privatelink/CMakeLists.txt +++ b/privatelink/CMakeLists.txt @@ -29,8 +29,12 @@ set(privatelink_public_header_model include/alibabacloud/privatelink/model/AttachResourceToVpcEndpointServiceResult.h include/alibabacloud/privatelink/model/AttachSecurityGroupToVpcEndpointRequest.h include/alibabacloud/privatelink/model/AttachSecurityGroupToVpcEndpointResult.h + include/alibabacloud/privatelink/model/ChangeResourceGroupRequest.h + include/alibabacloud/privatelink/model/ChangeResourceGroupResult.h include/alibabacloud/privatelink/model/CheckProductOpenRequest.h include/alibabacloud/privatelink/model/CheckProductOpenResult.h + include/alibabacloud/privatelink/model/CheckResourceSupportOperateRequest.h + include/alibabacloud/privatelink/model/CheckResourceSupportOperateResult.h include/alibabacloud/privatelink/model/CreateVpcEndpointRequest.h include/alibabacloud/privatelink/model/CreateVpcEndpointResult.h include/alibabacloud/privatelink/model/CreateVpcEndpointServiceRequest.h @@ -75,12 +79,16 @@ set(privatelink_public_header_model include/alibabacloud/privatelink/model/ListVpcEndpointZonesResult.h include/alibabacloud/privatelink/model/ListVpcEndpointsRequest.h include/alibabacloud/privatelink/model/ListVpcEndpointsResult.h + include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyRequest.h + include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyResult.h include/alibabacloud/privatelink/model/OpenPrivateLinkServiceRequest.h include/alibabacloud/privatelink/model/OpenPrivateLinkServiceResult.h include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceResult.h include/alibabacloud/privatelink/model/RemoveZoneFromVpcEndpointRequest.h include/alibabacloud/privatelink/model/RemoveZoneFromVpcEndpointResult.h + include/alibabacloud/privatelink/model/TagResourcesRequest.h + include/alibabacloud/privatelink/model/TagResourcesResult.h include/alibabacloud/privatelink/model/UpdateVpcEndpointAttributeRequest.h include/alibabacloud/privatelink/model/UpdateVpcEndpointAttributeResult.h include/alibabacloud/privatelink/model/UpdateVpcEndpointConnectionAttributeRequest.h @@ -102,8 +110,12 @@ set(privatelink_src src/model/AttachResourceToVpcEndpointServiceResult.cc src/model/AttachSecurityGroupToVpcEndpointRequest.cc src/model/AttachSecurityGroupToVpcEndpointResult.cc + src/model/ChangeResourceGroupRequest.cc + src/model/ChangeResourceGroupResult.cc src/model/CheckProductOpenRequest.cc src/model/CheckProductOpenResult.cc + src/model/CheckResourceSupportOperateRequest.cc + src/model/CheckResourceSupportOperateResult.cc src/model/CreateVpcEndpointRequest.cc src/model/CreateVpcEndpointResult.cc src/model/CreateVpcEndpointServiceRequest.cc @@ -148,12 +160,16 @@ set(privatelink_src src/model/ListVpcEndpointZonesResult.cc src/model/ListVpcEndpointsRequest.cc src/model/ListVpcEndpointsResult.cc + src/model/NotifyResourceAddressFamilyRequest.cc + src/model/NotifyResourceAddressFamilyResult.cc src/model/OpenPrivateLinkServiceRequest.cc src/model/OpenPrivateLinkServiceResult.cc src/model/RemoveUserFromVpcEndpointServiceRequest.cc src/model/RemoveUserFromVpcEndpointServiceResult.cc src/model/RemoveZoneFromVpcEndpointRequest.cc src/model/RemoveZoneFromVpcEndpointResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc src/model/UpdateVpcEndpointAttributeRequest.cc src/model/UpdateVpcEndpointAttributeResult.cc src/model/UpdateVpcEndpointConnectionAttributeRequest.cc diff --git a/privatelink/include/alibabacloud/privatelink/PrivatelinkClient.h b/privatelink/include/alibabacloud/privatelink/PrivatelinkClient.h index 593735961..74c75ebcd 100644 --- a/privatelink/include/alibabacloud/privatelink/PrivatelinkClient.h +++ b/privatelink/include/alibabacloud/privatelink/PrivatelinkClient.h @@ -30,8 +30,12 @@ #include "model/AttachResourceToVpcEndpointServiceResult.h" #include "model/AttachSecurityGroupToVpcEndpointRequest.h" #include "model/AttachSecurityGroupToVpcEndpointResult.h" +#include "model/ChangeResourceGroupRequest.h" +#include "model/ChangeResourceGroupResult.h" #include "model/CheckProductOpenRequest.h" #include "model/CheckProductOpenResult.h" +#include "model/CheckResourceSupportOperateRequest.h" +#include "model/CheckResourceSupportOperateResult.h" #include "model/CreateVpcEndpointRequest.h" #include "model/CreateVpcEndpointResult.h" #include "model/CreateVpcEndpointServiceRequest.h" @@ -76,12 +80,16 @@ #include "model/ListVpcEndpointZonesResult.h" #include "model/ListVpcEndpointsRequest.h" #include "model/ListVpcEndpointsResult.h" +#include "model/NotifyResourceAddressFamilyRequest.h" +#include "model/NotifyResourceAddressFamilyResult.h" #include "model/OpenPrivateLinkServiceRequest.h" #include "model/OpenPrivateLinkServiceResult.h" #include "model/RemoveUserFromVpcEndpointServiceRequest.h" #include "model/RemoveUserFromVpcEndpointServiceResult.h" #include "model/RemoveZoneFromVpcEndpointRequest.h" #include "model/RemoveZoneFromVpcEndpointResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/UpdateVpcEndpointAttributeRequest.h" #include "model/UpdateVpcEndpointAttributeResult.h" #include "model/UpdateVpcEndpointConnectionAttributeRequest.h" @@ -113,9 +121,15 @@ namespace AlibabaCloud typedef Outcome AttachSecurityGroupToVpcEndpointOutcome; typedef std::future AttachSecurityGroupToVpcEndpointOutcomeCallable; typedef std::function&)> AttachSecurityGroupToVpcEndpointAsyncHandler; + typedef Outcome ChangeResourceGroupOutcome; + typedef std::future ChangeResourceGroupOutcomeCallable; + typedef std::function&)> ChangeResourceGroupAsyncHandler; typedef Outcome CheckProductOpenOutcome; typedef std::future CheckProductOpenOutcomeCallable; typedef std::function&)> CheckProductOpenAsyncHandler; + typedef Outcome CheckResourceSupportOperateOutcome; + typedef std::future CheckResourceSupportOperateOutcomeCallable; + typedef std::function&)> CheckResourceSupportOperateAsyncHandler; typedef Outcome CreateVpcEndpointOutcome; typedef std::future CreateVpcEndpointOutcomeCallable; typedef std::function&)> CreateVpcEndpointAsyncHandler; @@ -182,6 +196,9 @@ namespace AlibabaCloud typedef Outcome ListVpcEndpointsOutcome; typedef std::future ListVpcEndpointsOutcomeCallable; typedef std::function&)> ListVpcEndpointsAsyncHandler; + typedef Outcome NotifyResourceAddressFamilyOutcome; + typedef std::future NotifyResourceAddressFamilyOutcomeCallable; + typedef std::function&)> NotifyResourceAddressFamilyAsyncHandler; typedef Outcome OpenPrivateLinkServiceOutcome; typedef std::future OpenPrivateLinkServiceOutcomeCallable; typedef std::function&)> OpenPrivateLinkServiceAsyncHandler; @@ -191,6 +208,9 @@ namespace AlibabaCloud typedef Outcome RemoveZoneFromVpcEndpointOutcome; typedef std::future RemoveZoneFromVpcEndpointOutcomeCallable; typedef std::function&)> RemoveZoneFromVpcEndpointAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome UpdateVpcEndpointAttributeOutcome; typedef std::future UpdateVpcEndpointAttributeOutcomeCallable; typedef std::function&)> UpdateVpcEndpointAttributeAsyncHandler; @@ -223,9 +243,15 @@ namespace AlibabaCloud AttachSecurityGroupToVpcEndpointOutcome attachSecurityGroupToVpcEndpoint(const Model::AttachSecurityGroupToVpcEndpointRequest &request)const; void attachSecurityGroupToVpcEndpointAsync(const Model::AttachSecurityGroupToVpcEndpointRequest& request, const AttachSecurityGroupToVpcEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachSecurityGroupToVpcEndpointOutcomeCallable attachSecurityGroupToVpcEndpointCallable(const Model::AttachSecurityGroupToVpcEndpointRequest& request) const; + ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; + void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; CheckProductOpenOutcome checkProductOpen(const Model::CheckProductOpenRequest &request)const; void checkProductOpenAsync(const Model::CheckProductOpenRequest& request, const CheckProductOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckProductOpenOutcomeCallable checkProductOpenCallable(const Model::CheckProductOpenRequest& request) const; + CheckResourceSupportOperateOutcome checkResourceSupportOperate(const Model::CheckResourceSupportOperateRequest &request)const; + void checkResourceSupportOperateAsync(const Model::CheckResourceSupportOperateRequest& request, const CheckResourceSupportOperateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckResourceSupportOperateOutcomeCallable checkResourceSupportOperateCallable(const Model::CheckResourceSupportOperateRequest& request) const; CreateVpcEndpointOutcome createVpcEndpoint(const Model::CreateVpcEndpointRequest &request)const; void createVpcEndpointAsync(const Model::CreateVpcEndpointRequest& request, const CreateVpcEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVpcEndpointOutcomeCallable createVpcEndpointCallable(const Model::CreateVpcEndpointRequest& request) const; @@ -292,6 +318,9 @@ namespace AlibabaCloud ListVpcEndpointsOutcome listVpcEndpoints(const Model::ListVpcEndpointsRequest &request)const; void listVpcEndpointsAsync(const Model::ListVpcEndpointsRequest& request, const ListVpcEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVpcEndpointsOutcomeCallable listVpcEndpointsCallable(const Model::ListVpcEndpointsRequest& request) const; + NotifyResourceAddressFamilyOutcome notifyResourceAddressFamily(const Model::NotifyResourceAddressFamilyRequest &request)const; + void notifyResourceAddressFamilyAsync(const Model::NotifyResourceAddressFamilyRequest& request, const NotifyResourceAddressFamilyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NotifyResourceAddressFamilyOutcomeCallable notifyResourceAddressFamilyCallable(const Model::NotifyResourceAddressFamilyRequest& request) const; OpenPrivateLinkServiceOutcome openPrivateLinkService(const Model::OpenPrivateLinkServiceRequest &request)const; void openPrivateLinkServiceAsync(const Model::OpenPrivateLinkServiceRequest& request, const OpenPrivateLinkServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenPrivateLinkServiceOutcomeCallable openPrivateLinkServiceCallable(const Model::OpenPrivateLinkServiceRequest& request) const; @@ -301,6 +330,9 @@ namespace AlibabaCloud RemoveZoneFromVpcEndpointOutcome removeZoneFromVpcEndpoint(const Model::RemoveZoneFromVpcEndpointRequest &request)const; void removeZoneFromVpcEndpointAsync(const Model::RemoveZoneFromVpcEndpointRequest& request, const RemoveZoneFromVpcEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveZoneFromVpcEndpointOutcomeCallable removeZoneFromVpcEndpointCallable(const Model::RemoveZoneFromVpcEndpointRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; UpdateVpcEndpointAttributeOutcome updateVpcEndpointAttribute(const Model::UpdateVpcEndpointAttributeRequest &request)const; void updateVpcEndpointAttributeAsync(const Model::UpdateVpcEndpointAttributeRequest& request, const UpdateVpcEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateVpcEndpointAttributeOutcomeCallable updateVpcEndpointAttributeCallable(const Model::UpdateVpcEndpointAttributeRequest& request) const; diff --git a/privatelink/include/alibabacloud/privatelink/model/AddUserToVpcEndpointServiceRequest.h b/privatelink/include/alibabacloud/privatelink/model/AddUserToVpcEndpointServiceRequest.h index d8ec0fd4d..1d2806252 100644 --- a/privatelink/include/alibabacloud/privatelink/model/AddUserToVpcEndpointServiceRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/AddUserToVpcEndpointServiceRequest.h @@ -32,6 +32,8 @@ public: ~AddUserToVpcEndpointServiceRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getUserARN() const; + void setUserARN(const std::string &userARN); long getUserId() const; void setUserId(long userId); std::string getRegionId() const; @@ -43,6 +45,7 @@ public: private: std::string clientToken_; + std::string userARN_; long userId_; std::string regionId_; bool dryRun_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupRequest.h b/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupRequest.h new file mode 100644 index 000000000..d2e93a371 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PRIVATELINK_MODEL_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Privatelink { +namespace Model { +class ALIBABACLOUD_PRIVATELINK_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest { +public: + ChangeResourceGroupRequest(); + ~ChangeResourceGroupRequest(); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getResourceRegionId() const; + void setResourceRegionId(const std::string &resourceRegionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getService() const; + void setService(const std::string &service); + +private: + std::string resourceGroupId_; + std::string resourceRegionId_; + std::string resourceId_; + std::string resourceType_; + std::string service_; +}; +} // namespace Model +} // namespace Privatelink +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_CHANGERESOURCEGROUPREQUEST_H_ diff --git a/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupResult.h b/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupResult.h new file mode 100644 index 000000000..867f472cd --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/ChangeResourceGroupResult.h @@ -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_CHANGERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_CHANGERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Privatelink + { + namespace Model + { + class ALIBABACLOUD_PRIVATELINK_EXPORT ChangeResourceGroupResult : public ServiceResult + { + public: + + + ChangeResourceGroupResult(); + explicit ChangeResourceGroupResult(const std::string &payload); + ~ChangeResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_CHANGERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateRequest.h b/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateRequest.h new file mode 100644 index 000000000..0c0f9dc13 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATEREQUEST_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Privatelink { +namespace Model { +class ALIBABACLOUD_PRIVATELINK_EXPORT CheckResourceSupportOperateRequest : public RpcServiceRequest { +public: + CheckResourceSupportOperateRequest(); + ~CheckResourceSupportOperateRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string resourceId_; + std::string zoneId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Privatelink +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATEREQUEST_H_ diff --git a/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateResult.h b/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateResult.h new file mode 100644 index 000000000..ddb9e3a40 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/CheckResourceSupportOperateResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATERESULT_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Privatelink + { + namespace Model + { + class ALIBABACLOUD_PRIVATELINK_EXPORT CheckResourceSupportOperateResult : public ServiceResult + { + public: + + + CheckResourceSupportOperateResult(); + explicit CheckResourceSupportOperateResult(const std::string &payload); + ~CheckResourceSupportOperateResult(); + bool getResourceCanBeDowngraded()const; + bool getResourceZoneCanBeDeleted()const; + + protected: + void parse(const std::string &payload); + private: + bool resourceCanBeDowngraded_; + bool resourceZoneCanBeDeleted_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_CHECKRESOURCESUPPORTOPERATERESULT_H_ \ No newline at end of file diff --git a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointRequest.h b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointRequest.h index 8830b441a..a263a82d0 100644 --- a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointRequest.h @@ -28,17 +28,30 @@ namespace Privatelink { namespace Model { class ALIBABACLOUD_PRIVATELINK_EXPORT CreateVpcEndpointRequest : public RpcServiceRequest { public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; struct Zone { std::string vSwitchId; std::string zoneId; std::string ip; }; + struct Tag { + std::string key; + std::string value; + }; CreateVpcEndpointRequest(); ~CreateVpcEndpointRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::vector getSecurityGroupId() const; void setSecurityGroupId(const std::vector &securityGroupId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getEndpointType() const; @@ -47,6 +60,8 @@ public: void setZone(const std::vector &zone); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getEndpointDescription() const; @@ -64,11 +79,14 @@ public: private: std::string clientToken_; + std::vector systemTag_; std::vector securityGroupId_; + std::string resourceGroupId_; std::string regionId_; std::string endpointType_; std::vector zone_; std::string serviceName_; + std::vector tag_; bool dryRun_; std::string endpointDescription_; long zonePrivateIpAddressCount_; diff --git a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceRequest.h b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceRequest.h index fdbe925cd..5de407adb 100644 --- a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceRequest.h @@ -28,6 +28,15 @@ namespace Privatelink { namespace Model { class ALIBABACLOUD_PRIVATELINK_EXPORT CreateVpcEndpointServiceRequest : public RpcServiceRequest { public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct Tag { + std::string key; + std::string value; + }; struct Resource { std::string resourceType; std::string resourceId; @@ -43,18 +52,26 @@ public: void setAutoAcceptEnabled(bool autoAcceptEnabled); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::string getPayer() const; void setPayer(const std::string &payer); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); bool getZoneAffinityEnabled() const; void setZoneAffinityEnabled(bool zoneAffinityEnabled); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::vector getResource() const; void setResource(const std::vector &resource); std::string getServiceResourceType() const; void setServiceResourceType(const std::string &serviceResourceType); + bool getServiceSupportIPv6() const; + void setServiceSupportIPv6(bool serviceSupportIPv6); std::string getServiceDescription() const; void setServiceDescription(const std::string &serviceDescription); @@ -63,12 +80,16 @@ private: std::string privateServiceDomain_; bool autoAcceptEnabled_; std::string clientToken_; + std::vector systemTag_; std::string payer_; + std::string resourceGroupId_; std::string regionId_; bool zoneAffinityEnabled_; + std::vector tag_; bool dryRun_; std::vector resource_; std::string serviceResourceType_; + bool serviceSupportIPv6_; std::string serviceDescription_; }; } // namespace Model diff --git a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceResult.h b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceResult.h index 54ef476e6..8983dcbf5 100644 --- a/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/CreateVpcEndpointServiceResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud explicit CreateVpcEndpointServiceResult(const std::string &payload); ~CreateVpcEndpointServiceResult(); std::string getServiceBusinessStatus()const; + std::string getResourceGroupId()const; std::string getServiceName()const; std::string getServiceStatus()const; std::string getServiceDescription()const; @@ -46,11 +47,13 @@ namespace AlibabaCloud bool getZoneAffinityEnabled()const; bool getAutoAcceptEnabled()const; std::string getServiceId()const; + bool getServiceSupportIPv6()const; protected: void parse(const std::string &payload); private: std::string serviceBusinessStatus_; + std::string resourceGroupId_; std::string serviceName_; std::string serviceStatus_; std::string serviceDescription_; @@ -59,6 +62,7 @@ namespace AlibabaCloud bool zoneAffinityEnabled_; bool autoAcceptEnabled_; std::string serviceId_; + bool serviceSupportIPv6_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/DescribeZonesRequest.h b/privatelink/include/alibabacloud/privatelink/model/DescribeZonesRequest.h index 329dcc401..7a81f7d0d 100644 --- a/privatelink/include/alibabacloud/privatelink/model/DescribeZonesRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/DescribeZonesRequest.h @@ -32,9 +32,12 @@ public: ~DescribeZonesRequest(); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getServiceResourceType() const; + void setServiceResourceType(const std::string &serviceResourceType); private: std::string regionId_; + std::string serviceResourceType_; }; } // namespace Model } // namespace Privatelink diff --git a/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h b/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h index 769d57f55..01ad25ab1 100644 --- a/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud ~GetVpcEndpointAttributeResult(); std::string getPayer()const; std::string getEndpointDomain()const; + std::string getResourceGroupId()const; std::string getCreateTime()const; bool getResourceOwner()const; long getZonePrivateIpAddressCount()const; @@ -62,6 +63,7 @@ namespace AlibabaCloud private: std::string payer_; std::string endpointDomain_; + std::string resourceGroupId_; std::string createTime_; bool resourceOwner_; long zonePrivateIpAddressCount_; diff --git a/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointServiceAttributeResult.h b/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointServiceAttributeResult.h index 544bbff9f..53cb098f8 100644 --- a/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointServiceAttributeResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointServiceAttributeResult.h @@ -37,27 +37,29 @@ namespace AlibabaCloud GetVpcEndpointServiceAttributeResult(); explicit GetVpcEndpointServiceAttributeResult(const std::string &payload); ~GetVpcEndpointServiceAttributeResult(); + std::string getResourceGroupId()const; + int getMaxBandwidth()const; + bool getPrivateServiceDomainEnabled()const; + int getMinBandwidth()const; + std::vector getZones()const; + bool getAutoAcceptEnabled()const; + std::string getServiceId()const; + bool getServiceSupportIPv6()const; + std::string getPrivateServiceDomainVerifyStatus()const; + std::string getPrivateServiceDomainVerifyName()const; + std::string getServiceStatus()const; + std::string getServiceType()const; + std::string getServiceResourceType()const; + std::string getPrivateServiceName()const; std::string getPayer()const; std::string getPrivateServiceDomainBusinessStatus()const; std::string getServiceDescription()const; std::string getCreateTime()const; - int getMaxBandwidth()const; std::string getPrivateServiceDomain()const; - bool getPrivateServiceDomainEnabled()const; - int getMinBandwidth()const; std::string getServiceDomain()const; - std::vector getZones()const; - bool getAutoAcceptEnabled()const; - std::string getServiceId()const; - std::string getPrivateServiceDomainVerifyStatus()const; std::string getServiceBusinessStatus()const; - std::string getPrivateServiceDomainVerifyName()const; std::string getServiceName()const; - std::string getServiceStatus()const; - std::string getServiceType()const; int getConnectBandwidth()const; - std::string getServiceResourceType()const; - std::string getPrivateServiceName()const; std::string getRegionId()const; bool getZoneAffinityEnabled()const; std::string getPrivateServiceDomainVerifyValue()const; @@ -65,27 +67,29 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string resourceGroupId_; + int maxBandwidth_; + bool privateServiceDomainEnabled_; + int minBandwidth_; + std::vector zones_; + bool autoAcceptEnabled_; + std::string serviceId_; + bool serviceSupportIPv6_; + std::string privateServiceDomainVerifyStatus_; + std::string privateServiceDomainVerifyName_; + std::string serviceStatus_; + std::string serviceType_; + std::string serviceResourceType_; + std::string privateServiceName_; std::string payer_; std::string privateServiceDomainBusinessStatus_; std::string serviceDescription_; std::string createTime_; - int maxBandwidth_; std::string privateServiceDomain_; - bool privateServiceDomainEnabled_; - int minBandwidth_; std::string serviceDomain_; - std::vector zones_; - bool autoAcceptEnabled_; - std::string serviceId_; - std::string privateServiceDomainVerifyStatus_; std::string serviceBusinessStatus_; - std::string privateServiceDomainVerifyName_; std::string serviceName_; - std::string serviceStatus_; - std::string serviceType_; int connectBandwidth_; - std::string serviceResourceType_; - std::string privateServiceName_; std::string regionId_; bool zoneAffinityEnabled_; std::string privateServiceDomainVerifyValue_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsRequest.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsRequest.h index 8c07dfde0..4ba0e941e 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsRequest.h @@ -36,10 +36,14 @@ public: void setEndpointOwnerId(long endpointOwnerId); std::string getReplacedResourceId() const; void setReplacedResourceId(const std::string &replacedResourceId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); + long getConnectionId() const; + void setConnectionId(long connectionId); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getConnectionStatus() const; @@ -57,8 +61,10 @@ private: std::string endpointId_; long endpointOwnerId_; std::string replacedResourceId_; + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; + long connectionId_; std::string resourceId_; std::string connectionStatus_; int maxResults_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsResult.h index e0a3b8d16..91276fbb0 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsResult.h @@ -36,6 +36,8 @@ namespace AlibabaCloud { struct Zone { + std::string connectionStringId; + long connectionId; std::string zoneId; std::string eniId; std::string resourceId; @@ -48,6 +50,7 @@ namespace AlibabaCloud }; long endpointOwnerId; std::string modifiedTime; + std::string resourceGroupId; bool resourceOwner; int bandwidth; std::string endpointId; @@ -62,15 +65,17 @@ namespace AlibabaCloud explicit ListVpcEndpointConnectionsResult(const std::string &payload); ~ListVpcEndpointConnectionsResult(); std::vector getConnections()const; + std::string getTotalCount()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector connections_; + std::string totalCount_; std::string nextToken_; - std::string maxResults_; + int maxResults_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointSecurityGroupsResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointSecurityGroupsResult.h index 34541dae3..1f82472dc 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointSecurityGroupsResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointSecurityGroupsResult.h @@ -43,14 +43,14 @@ namespace AlibabaCloud ~ListVpcEndpointSecurityGroupsResult(); std::vector getSecurityGroups()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector securityGroups_; std::string nextToken_; - std::string maxResults_; + int maxResults_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceResourcesResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceResourcesResult.h index 22692518b..ab5234888 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceResourcesResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceResourcesResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct Resource { + bool resourceSupportIPv6; long relatedEndpointCount; long relatedDeprecatedEndpointCount; std::string vpcId; @@ -52,14 +53,14 @@ namespace AlibabaCloud explicit ListVpcEndpointServiceResourcesResult(const std::string &payload); ~ListVpcEndpointServiceResourcesResult(); std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; std::vector getResources()const; protected: void parse(const std::string &payload); private: std::string nextToken_; - std::string maxResults_; + int maxResults_; std::vector resources_; }; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersRequest.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersRequest.h index e832efb9a..57f90d797 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_PRIVATELINK_EXPORT ListVpcEndpointServiceUsersRequest : publi public: ListVpcEndpointServiceUsersRequest(); ~ListVpcEndpointServiceUsersRequest(); + std::string getUserListType() const; + void setUserListType(const std::string &userListType); long getUserId() const; void setUserId(long userId); std::string getRegionId() const; @@ -42,6 +44,7 @@ public: void setServiceId(const std::string &serviceId); private: + std::string userListType_; long userId_; std::string regionId_; std::string nextToken_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersResult.h index 69f969775..05362e26f 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceUsersResult.h @@ -36,21 +36,29 @@ namespace AlibabaCloud { long userId; }; + struct UserARN + { + std::string userARN; + }; ListVpcEndpointServiceUsersResult(); explicit ListVpcEndpointServiceUsersResult(const std::string &payload); ~ListVpcEndpointServiceUsersResult(); + std::string getTotalCount()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; std::vector getUsers()const; + std::vector getUserARNs()const; protected: void parse(const std::string &payload); private: + std::string totalCount_; std::string nextToken_; - std::string maxResults_; + int maxResults_; std::vector users_; + std::vector userARNs_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserRequest.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserRequest.h index af343eb28..59574cc19 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserRequest.h @@ -28,14 +28,22 @@ namespace Privatelink { namespace Model { class ALIBABACLOUD_PRIVATELINK_EXPORT ListVpcEndpointServicesByEndUserRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; ListVpcEndpointServicesByEndUserRequest(); ~ListVpcEndpointServicesByEndUserRequest(); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getServiceType() const; void setServiceType(const std::string &serviceType); int getMaxResults() const; @@ -44,9 +52,11 @@ public: void setServiceId(const std::string &serviceId); private: + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; std::string serviceName_; + std::vector tag_; std::string serviceType_; int maxResults_; std::string serviceId_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserResult.h index 9ffc973c9..e2f95edfd 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserResult.h @@ -34,13 +34,22 @@ namespace AlibabaCloud public: struct Service { + struct TagModel + { + std::string value; + std::string key; + }; std::string payer; + std::string resourceGroupId; std::string serviceName; std::string serviceType; std::string serviceDescription; + std::string serviceResourceType; std::string privateServiceName; + std::vector tags; std::string serviceDomain; std::string serviceId; + bool serviceSupportIPv6; std::vector zones; }; @@ -49,15 +58,17 @@ namespace AlibabaCloud explicit ListVpcEndpointServicesByEndUserResult(const std::string &payload); ~ListVpcEndpointServicesByEndUserResult(); std::vector getServices()const; + std::string getTotalCount()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector services_; + std::string totalCount_; std::string nextToken_; - std::string maxResults_; + int maxResults_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesRequest.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesRequest.h index 51bdff44d..1d8e8b93b 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesRequest.h @@ -28,6 +28,10 @@ namespace Privatelink { namespace Model { class ALIBABACLOUD_PRIVATELINK_EXPORT ListVpcEndpointServicesRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; ListVpcEndpointServicesRequest(); ~ListVpcEndpointServicesRequest(); std::string getServiceBusinessStatus() const; @@ -36,6 +40,8 @@ public: void setAutoAcceptEnabled(bool autoAcceptEnabled); std::string getServiceStatus() const; void setServiceStatus(const std::string &serviceStatus); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; @@ -44,6 +50,8 @@ public: void setZoneAffinityEnabled(bool zoneAffinityEnabled); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getServiceResourceType() const; @@ -57,10 +65,12 @@ private: std::string serviceBusinessStatus_; bool autoAcceptEnabled_; std::string serviceStatus_; + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; bool zoneAffinityEnabled_; std::string serviceName_; + std::vector tag_; std::string resourceId_; std::string serviceResourceType_; int maxResults_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesResult.h index c5bfcca7b..06d9ea45a 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesResult.h @@ -34,7 +34,13 @@ namespace AlibabaCloud public: struct Service { + struct TagModel + { + std::string value; + std::string key; + }; std::string payer; + std::string resourceGroupId; std::string serviceDescription; std::string createTime; int maxBandwidth; @@ -42,6 +48,7 @@ namespace AlibabaCloud std::string serviceDomain; bool autoAcceptEnabled; std::string serviceId; + bool serviceSupportIPv6; std::string serviceBusinessStatus; std::string serviceName; std::string serviceStatus; @@ -49,6 +56,7 @@ namespace AlibabaCloud int connectBandwidth; std::string serviceResourceType; std::string regionId; + std::vector tags; bool zoneAffinityEnabled; }; @@ -57,15 +65,17 @@ namespace AlibabaCloud explicit ListVpcEndpointServicesResult(const std::string &payload); ~ListVpcEndpointServicesResult(); std::vector getServices()const; + int getTotalCount()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector services_; + int totalCount_; std::string nextToken_; - std::string maxResults_; + int maxResults_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointZonesResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointZonesResult.h index 6947df3e9..e9facaae1 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointZonesResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointZonesResult.h @@ -34,9 +34,12 @@ namespace AlibabaCloud public: struct Zone { + long nsiIndex; std::string zoneId; std::string eniId; + std::string zoneIpv6Address; std::string serviceStatus; + std::string nsiIndexString; std::string vSwitchId; std::string eniIp; std::string zoneStatus; @@ -49,14 +52,14 @@ namespace AlibabaCloud explicit ListVpcEndpointZonesResult(const std::string &payload); ~ListVpcEndpointZonesResult(); std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; std::vector getZones()const; protected: void parse(const std::string &payload); private: std::string nextToken_; - std::string maxResults_; + int maxResults_; std::vector zones_; }; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsRequest.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsRequest.h index dbda3d075..13cb7091c 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsRequest.h @@ -28,12 +28,18 @@ namespace Privatelink { namespace Model { class ALIBABACLOUD_PRIVATELINK_EXPORT ListVpcEndpointsRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; ListVpcEndpointsRequest(); ~ListVpcEndpointsRequest(); std::string getEndpointId() const; void setEndpointId(const std::string &endpointId); std::string getEndpointStatus() const; void setEndpointStatus(const std::string &endpointStatus); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; @@ -42,6 +48,8 @@ public: void setEndpointType(const std::string &endpointType); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getConnectionStatus() const; void setConnectionStatus(const std::string &connectionStatus); std::string getVpcId() const; @@ -54,10 +62,12 @@ public: private: std::string endpointId_; std::string endpointStatus_; + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; std::string endpointType_; std::string serviceName_; + std::vector tag_; std::string connectionStatus_; std::string vpcId_; std::string endpointName_; diff --git a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsResult.h b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsResult.h index 75dc9ceab..691b65cda 100644 --- a/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsResult.h +++ b/privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointsResult.h @@ -34,7 +34,13 @@ namespace AlibabaCloud public: struct Endpoint { + struct TagModel + { + std::string value; + std::string key; + }; std::string endpointDomain; + std::string resourceGroupId; std::string createTime; bool resourceOwner; std::string endpointBusinessStatus; @@ -49,6 +55,7 @@ namespace AlibabaCloud std::string endpointType; std::string regionId; std::string connectionStatus; + std::vector tags; bool zoneAffinityEnabled; }; @@ -57,15 +64,17 @@ namespace AlibabaCloud explicit ListVpcEndpointsResult(const std::string &payload); ~ListVpcEndpointsResult(); std::vector getEndpoints()const; + int getTotalCount()const; std::string getNextToken()const; - std::string getMaxResults()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector endpoints_; + int totalCount_; std::string nextToken_; - std::string maxResults_; + int maxResults_; }; } diff --git a/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyRequest.h b/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyRequest.h new file mode 100644 index 000000000..523ed96c3 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PRIVATELINK_MODEL_NOTIFYRESOURCEADDRESSFAMILYREQUEST_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_NOTIFYRESOURCEADDRESSFAMILYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Privatelink { +namespace Model { +class ALIBABACLOUD_PRIVATELINK_EXPORT NotifyResourceAddressFamilyRequest : public RpcServiceRequest { +public: + NotifyResourceAddressFamilyRequest(); + ~NotifyResourceAddressFamilyRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAddressFamily() const; + void setAddressFamily(const std::string &addressFamily); + std::string getIpv6Address() const; + void setIpv6Address(const std::string &ipv6Address); + +private: + std::string resourceId_; + std::string resourceType_; + std::string addressFamily_; + std::string ipv6Address_; +}; +} // namespace Model +} // namespace Privatelink +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_NOTIFYRESOURCEADDRESSFAMILYREQUEST_H_ diff --git a/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyResult.h b/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyResult.h new file mode 100644 index 000000000..974a11598 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/NotifyResourceAddressFamilyResult.h @@ -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_NOTIFYRESOURCEADDRESSFAMILYRESULT_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_NOTIFYRESOURCEADDRESSFAMILYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Privatelink + { + namespace Model + { + class ALIBABACLOUD_PRIVATELINK_EXPORT NotifyResourceAddressFamilyResult : public ServiceResult + { + public: + + + NotifyResourceAddressFamilyResult(); + explicit NotifyResourceAddressFamilyResult(const std::string &payload); + ~NotifyResourceAddressFamilyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_NOTIFYRESOURCEADDRESSFAMILYRESULT_H_ \ No newline at end of file diff --git a/privatelink/include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h b/privatelink/include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h index 974fd1599..ade1cd824 100644 --- a/privatelink/include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/RemoveUserFromVpcEndpointServiceRequest.h @@ -32,6 +32,8 @@ public: ~RemoveUserFromVpcEndpointServiceRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getUserARN() const; + void setUserARN(const std::string &userARN); long getUserId() const; void setUserId(long userId); std::string getRegionId() const; @@ -43,6 +45,7 @@ public: private: std::string clientToken_; + std::string userARN_; long userId_; std::string regionId_; bool dryRun_; diff --git a/privatelink/include/alibabacloud/privatelink/model/TagResourcesRequest.h b/privatelink/include/alibabacloud/privatelink/model/TagResourcesRequest.h new file mode 100644 index 000000000..4351367ca --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/TagResourcesRequest.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_PRIVATELINK_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Privatelink { +namespace Model { +class ALIBABACLOUD_PRIVATELINK_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + bool dryRun_; + std::string clientToken_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; +}; +} // namespace Model +} // namespace Privatelink +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/privatelink/include/alibabacloud/privatelink/model/TagResourcesResult.h b/privatelink/include/alibabacloud/privatelink/model/TagResourcesResult.h new file mode 100644 index 000000000..77ebba296 --- /dev/null +++ b/privatelink/include/alibabacloud/privatelink/model/TagResourcesResult.h @@ -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_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_PRIVATELINK_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Privatelink + { + namespace Model + { + class ALIBABACLOUD_PRIVATELINK_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_PRIVATELINK_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/privatelink/include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h b/privatelink/include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h index e6ba9855d..460be2104 100644 --- a/privatelink/include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h +++ b/privatelink/include/alibabacloud/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h @@ -46,6 +46,8 @@ public: void setZoneAffinityEnabled(bool zoneAffinityEnabled); bool getDryRun() const; void setDryRun(bool dryRun); + bool getServiceSupportIPv6() const; + void setServiceSupportIPv6(bool serviceSupportIPv6); std::string getServiceDescription() const; void setServiceDescription(const std::string &serviceDescription); std::string getServiceId() const; @@ -60,6 +62,7 @@ private: std::string regionId_; bool zoneAffinityEnabled_; bool dryRun_; + bool serviceSupportIPv6_; std::string serviceDescription_; std::string serviceId_; }; diff --git a/privatelink/src/PrivatelinkClient.cc b/privatelink/src/PrivatelinkClient.cc index 23644edd8..f72f78c23 100644 --- a/privatelink/src/PrivatelinkClient.cc +++ b/privatelink/src/PrivatelinkClient.cc @@ -195,6 +195,42 @@ PrivatelinkClient::AttachSecurityGroupToVpcEndpointOutcomeCallable PrivatelinkCl return task->get_future(); } +PrivatelinkClient::ChangeResourceGroupOutcome PrivatelinkClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result())); + else + return ChangeResourceGroupOutcome(outcome.error()); +} + +void PrivatelinkClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PrivatelinkClient::ChangeResourceGroupOutcomeCallable PrivatelinkClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PrivatelinkClient::CheckProductOpenOutcome PrivatelinkClient::checkProductOpen(const CheckProductOpenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +267,42 @@ PrivatelinkClient::CheckProductOpenOutcomeCallable PrivatelinkClient::checkProdu return task->get_future(); } +PrivatelinkClient::CheckResourceSupportOperateOutcome PrivatelinkClient::checkResourceSupportOperate(const CheckResourceSupportOperateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckResourceSupportOperateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckResourceSupportOperateOutcome(CheckResourceSupportOperateResult(outcome.result())); + else + return CheckResourceSupportOperateOutcome(outcome.error()); +} + +void PrivatelinkClient::checkResourceSupportOperateAsync(const CheckResourceSupportOperateRequest& request, const CheckResourceSupportOperateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkResourceSupportOperate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PrivatelinkClient::CheckResourceSupportOperateOutcomeCallable PrivatelinkClient::checkResourceSupportOperateCallable(const CheckResourceSupportOperateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkResourceSupportOperate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PrivatelinkClient::CreateVpcEndpointOutcome PrivatelinkClient::createVpcEndpoint(const CreateVpcEndpointRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1095,42 @@ PrivatelinkClient::ListVpcEndpointsOutcomeCallable PrivatelinkClient::listVpcEnd return task->get_future(); } +PrivatelinkClient::NotifyResourceAddressFamilyOutcome PrivatelinkClient::notifyResourceAddressFamily(const NotifyResourceAddressFamilyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return NotifyResourceAddressFamilyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return NotifyResourceAddressFamilyOutcome(NotifyResourceAddressFamilyResult(outcome.result())); + else + return NotifyResourceAddressFamilyOutcome(outcome.error()); +} + +void PrivatelinkClient::notifyResourceAddressFamilyAsync(const NotifyResourceAddressFamilyRequest& request, const NotifyResourceAddressFamilyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, notifyResourceAddressFamily(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PrivatelinkClient::NotifyResourceAddressFamilyOutcomeCallable PrivatelinkClient::notifyResourceAddressFamilyCallable(const NotifyResourceAddressFamilyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->notifyResourceAddressFamily(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PrivatelinkClient::OpenPrivateLinkServiceOutcome PrivatelinkClient::openPrivateLinkService(const OpenPrivateLinkServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1239,42 @@ PrivatelinkClient::RemoveZoneFromVpcEndpointOutcomeCallable PrivatelinkClient::r return task->get_future(); } +PrivatelinkClient::TagResourcesOutcome PrivatelinkClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void PrivatelinkClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PrivatelinkClient::TagResourcesOutcomeCallable PrivatelinkClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PrivatelinkClient::UpdateVpcEndpointAttributeOutcome PrivatelinkClient::updateVpcEndpointAttribute(const UpdateVpcEndpointAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc b/privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc index 47a0e6888..607fb798a 100644 --- a/privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc +++ b/privatelink/src/model/AddUserToVpcEndpointServiceRequest.cc @@ -34,6 +34,15 @@ void AddUserToVpcEndpointServiceRequest::setClientToken(const std::string &clien setParameter(std::string("ClientToken"), clientToken); } +std::string AddUserToVpcEndpointServiceRequest::getUserARN() const { + return userARN_; +} + +void AddUserToVpcEndpointServiceRequest::setUserARN(const std::string &userARN) { + userARN_ = userARN; + setParameter(std::string("UserARN"), userARN); +} + long AddUserToVpcEndpointServiceRequest::getUserId() const { return userId_; } diff --git a/privatelink/src/model/ChangeResourceGroupRequest.cc b/privatelink/src/model/ChangeResourceGroupRequest.cc new file mode 100644 index 000000000..8bd540f91 --- /dev/null +++ b/privatelink/src/model/ChangeResourceGroupRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Privatelink::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() + : RpcServiceRequest("privatelink", "2020-04-15", "ChangeResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {} + +std::string ChangeResourceGroupRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ChangeResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ChangeResourceGroupRequest::getResourceRegionId() const { + return resourceRegionId_; +} + +void ChangeResourceGroupRequest::setResourceRegionId(const std::string &resourceRegionId) { + resourceRegionId_ = resourceRegionId; + setParameter(std::string("ResourceRegionId"), resourceRegionId); +} + +std::string ChangeResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ChangeResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ChangeResourceGroupRequest::getService() const { + return service_; +} + +void ChangeResourceGroupRequest::setService(const std::string &service) { + service_ = service; + setParameter(std::string("Service"), service); +} + diff --git a/privatelink/src/model/ChangeResourceGroupResult.cc b/privatelink/src/model/ChangeResourceGroupResult.cc new file mode 100644 index 000000000..309e1f653 --- /dev/null +++ b/privatelink/src/model/ChangeResourceGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Privatelink; +using namespace AlibabaCloud::Privatelink::Model; + +ChangeResourceGroupResult::ChangeResourceGroupResult() : + ServiceResult() +{} + +ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResourceGroupResult::~ChangeResourceGroupResult() +{} + +void ChangeResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/privatelink/src/model/CheckResourceSupportOperateRequest.cc b/privatelink/src/model/CheckResourceSupportOperateRequest.cc new file mode 100644 index 000000000..d07eddb34 --- /dev/null +++ b/privatelink/src/model/CheckResourceSupportOperateRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Privatelink::Model::CheckResourceSupportOperateRequest; + +CheckResourceSupportOperateRequest::CheckResourceSupportOperateRequest() + : RpcServiceRequest("privatelink", "2020-04-15", "CheckResourceSupportOperate") { + setMethod(HttpRequest::Method::Post); +} + +CheckResourceSupportOperateRequest::~CheckResourceSupportOperateRequest() {} + +std::string CheckResourceSupportOperateRequest::getResourceId() const { + return resourceId_; +} + +void CheckResourceSupportOperateRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string CheckResourceSupportOperateRequest::getZoneId() const { + return zoneId_; +} + +void CheckResourceSupportOperateRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CheckResourceSupportOperateRequest::getResourceType() const { + return resourceType_; +} + +void CheckResourceSupportOperateRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/privatelink/src/model/CheckResourceSupportOperateResult.cc b/privatelink/src/model/CheckResourceSupportOperateResult.cc new file mode 100644 index 000000000..dcac78366 --- /dev/null +++ b/privatelink/src/model/CheckResourceSupportOperateResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Privatelink; +using namespace AlibabaCloud::Privatelink::Model; + +CheckResourceSupportOperateResult::CheckResourceSupportOperateResult() : + ServiceResult() +{} + +CheckResourceSupportOperateResult::CheckResourceSupportOperateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckResourceSupportOperateResult::~CheckResourceSupportOperateResult() +{} + +void CheckResourceSupportOperateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ResourceZoneCanBeDeleted"].isNull()) + resourceZoneCanBeDeleted_ = value["ResourceZoneCanBeDeleted"].asString() == "true"; + if(!value["ResourceCanBeDowngraded"].isNull()) + resourceCanBeDowngraded_ = value["ResourceCanBeDowngraded"].asString() == "true"; + +} + +bool CheckResourceSupportOperateResult::getResourceCanBeDowngraded()const +{ + return resourceCanBeDowngraded_; +} + +bool CheckResourceSupportOperateResult::getResourceZoneCanBeDeleted()const +{ + return resourceZoneCanBeDeleted_; +} + diff --git a/privatelink/src/model/CreateVpcEndpointRequest.cc b/privatelink/src/model/CreateVpcEndpointRequest.cc index a0a8c8ce5..95cfeb3b5 100644 --- a/privatelink/src/model/CreateVpcEndpointRequest.cc +++ b/privatelink/src/model/CreateVpcEndpointRequest.cc @@ -34,6 +34,21 @@ void CreateVpcEndpointRequest::setClientToken(const std::string &clientToken) { setParameter(std::string("ClientToken"), clientToken); } +std::vector CreateVpcEndpointRequest::getSystemTag() const { + return systemTag_; +} + +void CreateVpcEndpointRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } +} + std::vector CreateVpcEndpointRequest::getSecurityGroupId() const { return securityGroupId_; } @@ -42,6 +57,15 @@ void CreateVpcEndpointRequest::setSecurityGroupId(const std::vector securityGroupId_ = securityGroupId; } +std::string CreateVpcEndpointRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVpcEndpointRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateVpcEndpointRequest::getRegionId() const { return regionId_; } @@ -84,6 +108,20 @@ void CreateVpcEndpointRequest::setServiceName(const std::string &serviceName) { setParameter(std::string("ServiceName"), serviceName); } +std::vector CreateVpcEndpointRequest::getTag() const { + return tag_; +} + +void CreateVpcEndpointRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateVpcEndpointRequest::getDryRun() const { return dryRun_; } diff --git a/privatelink/src/model/CreateVpcEndpointServiceRequest.cc b/privatelink/src/model/CreateVpcEndpointServiceRequest.cc index 4d1c569b0..08d879a84 100644 --- a/privatelink/src/model/CreateVpcEndpointServiceRequest.cc +++ b/privatelink/src/model/CreateVpcEndpointServiceRequest.cc @@ -61,6 +61,21 @@ void CreateVpcEndpointServiceRequest::setClientToken(const std::string &clientTo setParameter(std::string("ClientToken"), clientToken); } +std::vector CreateVpcEndpointServiceRequest::getSystemTag() const { + return systemTag_; +} + +void CreateVpcEndpointServiceRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } +} + std::string CreateVpcEndpointServiceRequest::getPayer() const { return payer_; } @@ -70,6 +85,15 @@ void CreateVpcEndpointServiceRequest::setPayer(const std::string &payer) { setParameter(std::string("Payer"), payer); } +std::string CreateVpcEndpointServiceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVpcEndpointServiceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateVpcEndpointServiceRequest::getRegionId() const { return regionId_; } @@ -88,6 +112,20 @@ void CreateVpcEndpointServiceRequest::setZoneAffinityEnabled(bool zoneAffinityEn setParameter(std::string("ZoneAffinityEnabled"), zoneAffinityEnabled ? "true" : "false"); } +std::vector CreateVpcEndpointServiceRequest::getTag() const { + return tag_; +} + +void CreateVpcEndpointServiceRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateVpcEndpointServiceRequest::getDryRun() const { return dryRun_; } @@ -121,6 +159,15 @@ void CreateVpcEndpointServiceRequest::setServiceResourceType(const std::string & setParameter(std::string("ServiceResourceType"), serviceResourceType); } +bool CreateVpcEndpointServiceRequest::getServiceSupportIPv6() const { + return serviceSupportIPv6_; +} + +void CreateVpcEndpointServiceRequest::setServiceSupportIPv6(bool serviceSupportIPv6) { + serviceSupportIPv6_ = serviceSupportIPv6; + setParameter(std::string("ServiceSupportIPv6"), serviceSupportIPv6 ? "true" : "false"); +} + std::string CreateVpcEndpointServiceRequest::getServiceDescription() const { return serviceDescription_; } diff --git a/privatelink/src/model/CreateVpcEndpointServiceResult.cc b/privatelink/src/model/CreateVpcEndpointServiceResult.cc index 03ac014fd..8456c7da2 100644 --- a/privatelink/src/model/CreateVpcEndpointServiceResult.cc +++ b/privatelink/src/model/CreateVpcEndpointServiceResult.cc @@ -57,6 +57,10 @@ void CreateVpcEndpointServiceResult::parse(const std::string &payload) autoAcceptEnabled_ = value["AutoAcceptEnabled"].asString() == "true"; if(!value["ServiceId"].isNull()) serviceId_ = value["ServiceId"].asString(); + if(!value["ServiceSupportIPv6"].isNull()) + serviceSupportIPv6_ = value["ServiceSupportIPv6"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -65,6 +69,11 @@ std::string CreateVpcEndpointServiceResult::getServiceBusinessStatus()const return serviceBusinessStatus_; } +std::string CreateVpcEndpointServiceResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateVpcEndpointServiceResult::getServiceName()const { return serviceName_; @@ -105,3 +114,8 @@ std::string CreateVpcEndpointServiceResult::getServiceId()const return serviceId_; } +bool CreateVpcEndpointServiceResult::getServiceSupportIPv6()const +{ + return serviceSupportIPv6_; +} + diff --git a/privatelink/src/model/DescribeZonesRequest.cc b/privatelink/src/model/DescribeZonesRequest.cc index 86a1dde4d..105e64dfc 100644 --- a/privatelink/src/model/DescribeZonesRequest.cc +++ b/privatelink/src/model/DescribeZonesRequest.cc @@ -34,3 +34,12 @@ void DescribeZonesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string DescribeZonesRequest::getServiceResourceType() const { + return serviceResourceType_; +} + +void DescribeZonesRequest::setServiceResourceType(const std::string &serviceResourceType) { + serviceResourceType_ = serviceResourceType; + setParameter(std::string("ServiceResourceType"), serviceResourceType); +} + diff --git a/privatelink/src/model/GetVpcEndpointAttributeResult.cc b/privatelink/src/model/GetVpcEndpointAttributeResult.cc index 766e5f861..fc633f9b3 100644 --- a/privatelink/src/model/GetVpcEndpointAttributeResult.cc +++ b/privatelink/src/model/GetVpcEndpointAttributeResult.cc @@ -77,6 +77,8 @@ void GetVpcEndpointAttributeResult::parse(const std::string &payload) zoneAffinityEnabled_ = value["ZoneAffinityEnabled"].asString() == "true"; if(!value["PrivateServiceName"].isNull()) privateServiceName_ = value["PrivateServiceName"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -90,6 +92,11 @@ std::string GetVpcEndpointAttributeResult::getEndpointDomain()const return endpointDomain_; } +std::string GetVpcEndpointAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string GetVpcEndpointAttributeResult::getCreateTime()const { return createTime_; diff --git a/privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc b/privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc index ce38c5cdd..ce1f6c6f1 100644 --- a/privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc +++ b/privatelink/src/model/GetVpcEndpointServiceAttributeResult.cc @@ -88,9 +88,83 @@ void GetVpcEndpointServiceAttributeResult::parse(const std::string &payload) privateServiceDomainVerifyValue_ = value["PrivateServiceDomainVerifyValue"].asString(); if(!value["PrivateServiceName"].isNull()) privateServiceName_ = value["PrivateServiceName"].asString(); + if(!value["ServiceSupportIPv6"].isNull()) + serviceSupportIPv6_ = value["ServiceSupportIPv6"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } +std::string GetVpcEndpointServiceAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +int GetVpcEndpointServiceAttributeResult::getMaxBandwidth()const +{ + return maxBandwidth_; +} + +bool GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainEnabled()const +{ + return privateServiceDomainEnabled_; +} + +int GetVpcEndpointServiceAttributeResult::getMinBandwidth()const +{ + return minBandwidth_; +} + +std::vector GetVpcEndpointServiceAttributeResult::getZones()const +{ + return zones_; +} + +bool GetVpcEndpointServiceAttributeResult::getAutoAcceptEnabled()const +{ + return autoAcceptEnabled_; +} + +std::string GetVpcEndpointServiceAttributeResult::getServiceId()const +{ + return serviceId_; +} + +bool GetVpcEndpointServiceAttributeResult::getServiceSupportIPv6()const +{ + return serviceSupportIPv6_; +} + +std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainVerifyStatus()const +{ + return privateServiceDomainVerifyStatus_; +} + +std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainVerifyName()const +{ + return privateServiceDomainVerifyName_; +} + +std::string GetVpcEndpointServiceAttributeResult::getServiceStatus()const +{ + return serviceStatus_; +} + +std::string GetVpcEndpointServiceAttributeResult::getServiceType()const +{ + return serviceType_; +} + +std::string GetVpcEndpointServiceAttributeResult::getServiceResourceType()const +{ + return serviceResourceType_; +} + +std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceName()const +{ + return privateServiceName_; +} + std::string GetVpcEndpointServiceAttributeResult::getPayer()const { return payer_; @@ -111,91 +185,31 @@ std::string GetVpcEndpointServiceAttributeResult::getCreateTime()const return createTime_; } -int GetVpcEndpointServiceAttributeResult::getMaxBandwidth()const -{ - return maxBandwidth_; -} - std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceDomain()const { return privateServiceDomain_; } -bool GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainEnabled()const -{ - return privateServiceDomainEnabled_; -} - -int GetVpcEndpointServiceAttributeResult::getMinBandwidth()const -{ - return minBandwidth_; -} - std::string GetVpcEndpointServiceAttributeResult::getServiceDomain()const { return serviceDomain_; } -std::vector GetVpcEndpointServiceAttributeResult::getZones()const -{ - return zones_; -} - -bool GetVpcEndpointServiceAttributeResult::getAutoAcceptEnabled()const -{ - return autoAcceptEnabled_; -} - -std::string GetVpcEndpointServiceAttributeResult::getServiceId()const -{ - return serviceId_; -} - -std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainVerifyStatus()const -{ - return privateServiceDomainVerifyStatus_; -} - std::string GetVpcEndpointServiceAttributeResult::getServiceBusinessStatus()const { return serviceBusinessStatus_; } -std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceDomainVerifyName()const -{ - return privateServiceDomainVerifyName_; -} - std::string GetVpcEndpointServiceAttributeResult::getServiceName()const { return serviceName_; } -std::string GetVpcEndpointServiceAttributeResult::getServiceStatus()const -{ - return serviceStatus_; -} - -std::string GetVpcEndpointServiceAttributeResult::getServiceType()const -{ - return serviceType_; -} - int GetVpcEndpointServiceAttributeResult::getConnectBandwidth()const { return connectBandwidth_; } -std::string GetVpcEndpointServiceAttributeResult::getServiceResourceType()const -{ - return serviceResourceType_; -} - -std::string GetVpcEndpointServiceAttributeResult::getPrivateServiceName()const -{ - return privateServiceName_; -} - std::string GetVpcEndpointServiceAttributeResult::getRegionId()const { return regionId_; diff --git a/privatelink/src/model/ListVpcEndpointConnectionsRequest.cc b/privatelink/src/model/ListVpcEndpointConnectionsRequest.cc index 80bcce4a1..92fc86eea 100644 --- a/privatelink/src/model/ListVpcEndpointConnectionsRequest.cc +++ b/privatelink/src/model/ListVpcEndpointConnectionsRequest.cc @@ -52,6 +52,15 @@ void ListVpcEndpointConnectionsRequest::setReplacedResourceId(const std::string setParameter(std::string("ReplacedResourceId"), replacedResourceId); } +std::string ListVpcEndpointConnectionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVpcEndpointConnectionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListVpcEndpointConnectionsRequest::getRegionId() const { return regionId_; } @@ -70,6 +79,15 @@ void ListVpcEndpointConnectionsRequest::setNextToken(const std::string &nextToke setParameter(std::string("NextToken"), nextToken); } +long ListVpcEndpointConnectionsRequest::getConnectionId() const { + return connectionId_; +} + +void ListVpcEndpointConnectionsRequest::setConnectionId(long connectionId) { + connectionId_ = connectionId; + setParameter(std::string("ConnectionId"), std::to_string(connectionId)); +} + std::string ListVpcEndpointConnectionsRequest::getResourceId() const { return resourceId_; } diff --git a/privatelink/src/model/ListVpcEndpointConnectionsResult.cc b/privatelink/src/model/ListVpcEndpointConnectionsResult.cc index 1802c26ee..34f5a6aeb 100644 --- a/privatelink/src/model/ListVpcEndpointConnectionsResult.cc +++ b/privatelink/src/model/ListVpcEndpointConnectionsResult.cc @@ -59,6 +59,8 @@ void ListVpcEndpointConnectionsResult::parse(const std::string &payload) connectionsObject.endpointId = valueConnectionsConnection["EndpointId"].asString(); if(!valueConnectionsConnection["EndpointVpcId"].isNull()) connectionsObject.endpointVpcId = valueConnectionsConnection["EndpointVpcId"].asString(); + if(!valueConnectionsConnection["ResourceGroupId"].isNull()) + connectionsObject.resourceGroupId = valueConnectionsConnection["ResourceGroupId"].asString(); auto allZonesNode = valueConnectionsConnection["Zones"]["Zone"]; for (auto valueConnectionsConnectionZonesZone : allZonesNode) { @@ -81,6 +83,10 @@ void ListVpcEndpointConnectionsResult::parse(const std::string &payload) zonesObject.replacedEniId = valueConnectionsConnectionZonesZone["ReplacedEniId"].asString(); if(!valueConnectionsConnectionZonesZone["StatusInfo"].isNull()) zonesObject.statusInfo = valueConnectionsConnectionZonesZone["StatusInfo"].asString(); + if(!valueConnectionsConnectionZonesZone["ConnectionId"].isNull()) + zonesObject.connectionId = std::stol(valueConnectionsConnectionZonesZone["ConnectionId"].asString()); + if(!valueConnectionsConnectionZonesZone["ConnectionStringId"].isNull()) + zonesObject.connectionStringId = valueConnectionsConnectionZonesZone["ConnectionStringId"].asString(); connectionsObject.zones.push_back(zonesObject); } connections_.push_back(connectionsObject); @@ -88,7 +94,9 @@ void ListVpcEndpointConnectionsResult::parse(const std::string &payload) if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } @@ -97,12 +105,17 @@ std::vector ListVpcEndpointConnect return connections_; } +std::string ListVpcEndpointConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointConnectionsResult::getNextToken()const { return nextToken_; } -std::string ListVpcEndpointConnectionsResult::getMaxResults()const +int ListVpcEndpointConnectionsResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc b/privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc index b535575a8..270d3590b 100644 --- a/privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc +++ b/privatelink/src/model/ListVpcEndpointSecurityGroupsResult.cc @@ -50,7 +50,7 @@ void ListVpcEndpointSecurityGroupsResult::parse(const std::string &payload) if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); } @@ -64,7 +64,7 @@ std::string ListVpcEndpointSecurityGroupsResult::getNextToken()const return nextToken_; } -std::string ListVpcEndpointSecurityGroupsResult::getMaxResults()const +int ListVpcEndpointSecurityGroupsResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointServiceResourcesResult.cc b/privatelink/src/model/ListVpcEndpointServiceResourcesResult.cc index 304672cab..138c0935a 100644 --- a/privatelink/src/model/ListVpcEndpointServiceResourcesResult.cc +++ b/privatelink/src/model/ListVpcEndpointServiceResourcesResult.cc @@ -65,12 +65,14 @@ void ListVpcEndpointServiceResourcesResult::parse(const std::string &payload) resourcesObject.autoAllocatedEnabled = valueResourcesResource["AutoAllocatedEnabled"].asString() == "true"; if(!valueResourcesResource["StatusInfo"].isNull()) resourcesObject.statusInfo = valueResourcesResource["StatusInfo"].asString(); + if(!valueResourcesResource["ResourceSupportIPv6"].isNull()) + resourcesObject.resourceSupportIPv6 = valueResourcesResource["ResourceSupportIPv6"].asString() == "true"; resources_.push_back(resourcesObject); } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); } @@ -79,7 +81,7 @@ std::string ListVpcEndpointServiceResourcesResult::getNextToken()const return nextToken_; } -std::string ListVpcEndpointServiceResourcesResult::getMaxResults()const +int ListVpcEndpointServiceResourcesResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc b/privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc index beefc0cc8..1249d02e0 100644 --- a/privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc +++ b/privatelink/src/model/ListVpcEndpointServiceUsersRequest.cc @@ -25,6 +25,15 @@ ListVpcEndpointServiceUsersRequest::ListVpcEndpointServiceUsersRequest() ListVpcEndpointServiceUsersRequest::~ListVpcEndpointServiceUsersRequest() {} +std::string ListVpcEndpointServiceUsersRequest::getUserListType() const { + return userListType_; +} + +void ListVpcEndpointServiceUsersRequest::setUserListType(const std::string &userListType) { + userListType_ = userListType; + setParameter(std::string("UserListType"), userListType); +} + long ListVpcEndpointServiceUsersRequest::getUserId() const { return userId_; } diff --git a/privatelink/src/model/ListVpcEndpointServiceUsersResult.cc b/privatelink/src/model/ListVpcEndpointServiceUsersResult.cc index a75b34cea..c2db595f5 100644 --- a/privatelink/src/model/ListVpcEndpointServiceUsersResult.cc +++ b/privatelink/src/model/ListVpcEndpointServiceUsersResult.cc @@ -47,19 +47,34 @@ void ListVpcEndpointServiceUsersResult::parse(const std::string &payload) usersObject.userId = std::stol(valueUsersUser["UserId"].asString()); users_.push_back(usersObject); } + auto allUserARNsNode = value["UserARNs"]["UserARN"]; + for (auto valueUserARNsUserARN : allUserARNsNode) + { + UserARN userARNsObject; + if(!valueUserARNsUserARN["UserARN"].isNull()) + userARNsObject.userARN = valueUserARNsUserARN["UserARN"].asString(); + userARNs_.push_back(userARNsObject); + } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } +std::string ListVpcEndpointServiceUsersResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointServiceUsersResult::getNextToken()const { return nextToken_; } -std::string ListVpcEndpointServiceUsersResult::getMaxResults()const +int ListVpcEndpointServiceUsersResult::getMaxResults()const { return maxResults_; } @@ -69,3 +84,8 @@ std::vector ListVpcEndpointServiceUsers return users_; } +std::vector ListVpcEndpointServiceUsersResult::getUserARNs()const +{ + return userARNs_; +} + diff --git a/privatelink/src/model/ListVpcEndpointServicesByEndUserRequest.cc b/privatelink/src/model/ListVpcEndpointServicesByEndUserRequest.cc index 468efbab7..5c829468c 100644 --- a/privatelink/src/model/ListVpcEndpointServicesByEndUserRequest.cc +++ b/privatelink/src/model/ListVpcEndpointServicesByEndUserRequest.cc @@ -25,6 +25,15 @@ ListVpcEndpointServicesByEndUserRequest::ListVpcEndpointServicesByEndUserRequest ListVpcEndpointServicesByEndUserRequest::~ListVpcEndpointServicesByEndUserRequest() {} +std::string ListVpcEndpointServicesByEndUserRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVpcEndpointServicesByEndUserRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListVpcEndpointServicesByEndUserRequest::getRegionId() const { return regionId_; } @@ -52,6 +61,18 @@ void ListVpcEndpointServicesByEndUserRequest::setServiceName(const std::string & setParameter(std::string("ServiceName"), serviceName); } +std::vector ListVpcEndpointServicesByEndUserRequest::getTag() const { + return tag_; +} + +void ListVpcEndpointServicesByEndUserRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + std::string ListVpcEndpointServicesByEndUserRequest::getServiceType() const { return serviceType_; } diff --git a/privatelink/src/model/ListVpcEndpointServicesByEndUserResult.cc b/privatelink/src/model/ListVpcEndpointServicesByEndUserResult.cc index 1fabef689..6b2f49595 100644 --- a/privatelink/src/model/ListVpcEndpointServicesByEndUserResult.cc +++ b/privatelink/src/model/ListVpcEndpointServicesByEndUserResult.cc @@ -57,6 +57,22 @@ void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload) servicesObject.serviceDescription = valueServicesService["ServiceDescription"].asString(); if(!valueServicesService["PrivateServiceName"].isNull()) servicesObject.privateServiceName = valueServicesService["PrivateServiceName"].asString(); + if(!valueServicesService["ServiceSupportIPv6"].isNull()) + servicesObject.serviceSupportIPv6 = valueServicesService["ServiceSupportIPv6"].asString() == "true"; + if(!valueServicesService["ResourceGroupId"].isNull()) + servicesObject.resourceGroupId = valueServicesService["ResourceGroupId"].asString(); + if(!valueServicesService["ServiceResourceType"].isNull()) + servicesObject.serviceResourceType = valueServicesService["ServiceResourceType"].asString(); + auto allTagsNode = valueServicesService["Tags"]["TagModel"]; + for (auto valueServicesServiceTagsTagModel : allTagsNode) + { + Service::TagModel tagsObject; + if(!valueServicesServiceTagsTagModel["Key"].isNull()) + tagsObject.key = valueServicesServiceTagsTagModel["Key"].asString(); + if(!valueServicesServiceTagsTagModel["Value"].isNull()) + tagsObject.value = valueServicesServiceTagsTagModel["Value"].asString(); + servicesObject.tags.push_back(tagsObject); + } auto allZones = value["Zones"]["Zone"]; for (auto value : allZones) servicesObject.zones.push_back(value.asString()); @@ -65,7 +81,9 @@ void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload) if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } @@ -74,12 +92,17 @@ std::vector ListVpcEndpointServ return services_; } +std::string ListVpcEndpointServicesByEndUserResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointServicesByEndUserResult::getNextToken()const { return nextToken_; } -std::string ListVpcEndpointServicesByEndUserResult::getMaxResults()const +int ListVpcEndpointServicesByEndUserResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointServicesRequest.cc b/privatelink/src/model/ListVpcEndpointServicesRequest.cc index ca66e10aa..63b81d517 100644 --- a/privatelink/src/model/ListVpcEndpointServicesRequest.cc +++ b/privatelink/src/model/ListVpcEndpointServicesRequest.cc @@ -52,6 +52,15 @@ void ListVpcEndpointServicesRequest::setServiceStatus(const std::string &service setParameter(std::string("ServiceStatus"), serviceStatus); } +std::string ListVpcEndpointServicesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVpcEndpointServicesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListVpcEndpointServicesRequest::getRegionId() const { return regionId_; } @@ -88,6 +97,18 @@ void ListVpcEndpointServicesRequest::setServiceName(const std::string &serviceNa setParameter(std::string("ServiceName"), serviceName); } +std::vector ListVpcEndpointServicesRequest::getTag() const { + return tag_; +} + +void ListVpcEndpointServicesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + std::string ListVpcEndpointServicesRequest::getResourceId() const { return resourceId_; } diff --git a/privatelink/src/model/ListVpcEndpointServicesResult.cc b/privatelink/src/model/ListVpcEndpointServicesResult.cc index 176d807b9..46321cadc 100644 --- a/privatelink/src/model/ListVpcEndpointServicesResult.cc +++ b/privatelink/src/model/ListVpcEndpointServicesResult.cc @@ -75,12 +75,28 @@ void ListVpcEndpointServicesResult::parse(const std::string &payload) servicesObject.serviceResourceType = valueServicesService["ServiceResourceType"].asString(); if(!valueServicesService["ServiceType"].isNull()) servicesObject.serviceType = valueServicesService["ServiceType"].asString(); + if(!valueServicesService["ServiceSupportIPv6"].isNull()) + servicesObject.serviceSupportIPv6 = valueServicesService["ServiceSupportIPv6"].asString() == "true"; + if(!valueServicesService["ResourceGroupId"].isNull()) + servicesObject.resourceGroupId = valueServicesService["ResourceGroupId"].asString(); + auto allTagsNode = valueServicesService["Tags"]["TagModel"]; + for (auto valueServicesServiceTagsTagModel : allTagsNode) + { + Service::TagModel tagsObject; + if(!valueServicesServiceTagsTagModel["Key"].isNull()) + tagsObject.key = valueServicesServiceTagsTagModel["Key"].asString(); + if(!valueServicesServiceTagsTagModel["Value"].isNull()) + tagsObject.value = valueServicesServiceTagsTagModel["Value"].asString(); + servicesObject.tags.push_back(tagsObject); + } services_.push_back(servicesObject); } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } @@ -89,12 +105,17 @@ std::vector ListVpcEndpointServicesResul return services_; } +int ListVpcEndpointServicesResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointServicesResult::getNextToken()const { return nextToken_; } -std::string ListVpcEndpointServicesResult::getMaxResults()const +int ListVpcEndpointServicesResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointZonesResult.cc b/privatelink/src/model/ListVpcEndpointZonesResult.cc index d4d66fb41..249875eb0 100644 --- a/privatelink/src/model/ListVpcEndpointZonesResult.cc +++ b/privatelink/src/model/ListVpcEndpointZonesResult.cc @@ -59,12 +59,18 @@ void ListVpcEndpointZonesResult::parse(const std::string &payload) zonesObject.zoneDomain = valueZonesZone["ZoneDomain"].asString(); if(!valueZonesZone["RegionId"].isNull()) zonesObject.regionId = valueZonesZone["RegionId"].asString(); + if(!valueZonesZone["NsiIndex"].isNull()) + zonesObject.nsiIndex = std::stol(valueZonesZone["NsiIndex"].asString()); + if(!valueZonesZone["NsiIndexString"].isNull()) + zonesObject.nsiIndexString = valueZonesZone["NsiIndexString"].asString(); + if(!valueZonesZone["ZoneIpv6Address"].isNull()) + zonesObject.zoneIpv6Address = valueZonesZone["ZoneIpv6Address"].asString(); zones_.push_back(zonesObject); } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); } @@ -73,7 +79,7 @@ std::string ListVpcEndpointZonesResult::getNextToken()const return nextToken_; } -std::string ListVpcEndpointZonesResult::getMaxResults()const +int ListVpcEndpointZonesResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/ListVpcEndpointsRequest.cc b/privatelink/src/model/ListVpcEndpointsRequest.cc index 5ca067e3c..443308d37 100644 --- a/privatelink/src/model/ListVpcEndpointsRequest.cc +++ b/privatelink/src/model/ListVpcEndpointsRequest.cc @@ -43,6 +43,15 @@ void ListVpcEndpointsRequest::setEndpointStatus(const std::string &endpointStatu setParameter(std::string("EndpointStatus"), endpointStatus); } +std::string ListVpcEndpointsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVpcEndpointsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListVpcEndpointsRequest::getRegionId() const { return regionId_; } @@ -79,6 +88,18 @@ void ListVpcEndpointsRequest::setServiceName(const std::string &serviceName) { setParameter(std::string("ServiceName"), serviceName); } +std::vector ListVpcEndpointsRequest::getTag() const { + return tag_; +} + +void ListVpcEndpointsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + std::string ListVpcEndpointsRequest::getConnectionStatus() const { return connectionStatus_; } diff --git a/privatelink/src/model/ListVpcEndpointsResult.cc b/privatelink/src/model/ListVpcEndpointsResult.cc index 0b1dce1ad..38a2a9622 100644 --- a/privatelink/src/model/ListVpcEndpointsResult.cc +++ b/privatelink/src/model/ListVpcEndpointsResult.cc @@ -75,12 +75,26 @@ void ListVpcEndpointsResult::parse(const std::string &payload) endpointsObject.endpointBusinessStatus = valueEndpointsEndpoint["EndpointBusinessStatus"].asString(); if(!valueEndpointsEndpoint["ServiceName"].isNull()) endpointsObject.serviceName = valueEndpointsEndpoint["ServiceName"].asString(); + if(!valueEndpointsEndpoint["ResourceGroupId"].isNull()) + endpointsObject.resourceGroupId = valueEndpointsEndpoint["ResourceGroupId"].asString(); + auto allTagsNode = valueEndpointsEndpoint["Tags"]["TagModel"]; + for (auto valueEndpointsEndpointTagsTagModel : allTagsNode) + { + Endpoint::TagModel tagsObject; + if(!valueEndpointsEndpointTagsTagModel["Key"].isNull()) + tagsObject.key = valueEndpointsEndpointTagsTagModel["Key"].asString(); + if(!valueEndpointsEndpointTagsTagModel["Value"].isNull()) + tagsObject.value = valueEndpointsEndpointTagsTagModel["Value"].asString(); + endpointsObject.tags.push_back(tagsObject); + } endpoints_.push_back(endpointsObject); } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) - maxResults_ = value["MaxResults"].asString(); + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } @@ -89,12 +103,17 @@ std::vector ListVpcEndpointsResult::getEndpoin return endpoints_; } +int ListVpcEndpointsResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointsResult::getNextToken()const { return nextToken_; } -std::string ListVpcEndpointsResult::getMaxResults()const +int ListVpcEndpointsResult::getMaxResults()const { return maxResults_; } diff --git a/privatelink/src/model/NotifyResourceAddressFamilyRequest.cc b/privatelink/src/model/NotifyResourceAddressFamilyRequest.cc new file mode 100644 index 000000000..4d39c16f9 --- /dev/null +++ b/privatelink/src/model/NotifyResourceAddressFamilyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Privatelink::Model::NotifyResourceAddressFamilyRequest; + +NotifyResourceAddressFamilyRequest::NotifyResourceAddressFamilyRequest() + : RpcServiceRequest("privatelink", "2020-04-15", "NotifyResourceAddressFamily") { + setMethod(HttpRequest::Method::Post); +} + +NotifyResourceAddressFamilyRequest::~NotifyResourceAddressFamilyRequest() {} + +std::string NotifyResourceAddressFamilyRequest::getResourceId() const { + return resourceId_; +} + +void NotifyResourceAddressFamilyRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string NotifyResourceAddressFamilyRequest::getResourceType() const { + return resourceType_; +} + +void NotifyResourceAddressFamilyRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string NotifyResourceAddressFamilyRequest::getAddressFamily() const { + return addressFamily_; +} + +void NotifyResourceAddressFamilyRequest::setAddressFamily(const std::string &addressFamily) { + addressFamily_ = addressFamily; + setParameter(std::string("AddressFamily"), addressFamily); +} + +std::string NotifyResourceAddressFamilyRequest::getIpv6Address() const { + return ipv6Address_; +} + +void NotifyResourceAddressFamilyRequest::setIpv6Address(const std::string &ipv6Address) { + ipv6Address_ = ipv6Address; + setParameter(std::string("Ipv6Address"), ipv6Address); +} + diff --git a/privatelink/src/model/NotifyResourceAddressFamilyResult.cc b/privatelink/src/model/NotifyResourceAddressFamilyResult.cc new file mode 100644 index 000000000..9f6767e16 --- /dev/null +++ b/privatelink/src/model/NotifyResourceAddressFamilyResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Privatelink; +using namespace AlibabaCloud::Privatelink::Model; + +NotifyResourceAddressFamilyResult::NotifyResourceAddressFamilyResult() : + ServiceResult() +{} + +NotifyResourceAddressFamilyResult::NotifyResourceAddressFamilyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +NotifyResourceAddressFamilyResult::~NotifyResourceAddressFamilyResult() +{} + +void NotifyResourceAddressFamilyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/privatelink/src/model/RemoveUserFromVpcEndpointServiceRequest.cc b/privatelink/src/model/RemoveUserFromVpcEndpointServiceRequest.cc index c106454a0..99f53ec6c 100644 --- a/privatelink/src/model/RemoveUserFromVpcEndpointServiceRequest.cc +++ b/privatelink/src/model/RemoveUserFromVpcEndpointServiceRequest.cc @@ -34,6 +34,15 @@ void RemoveUserFromVpcEndpointServiceRequest::setClientToken(const std::string & setParameter(std::string("ClientToken"), clientToken); } +std::string RemoveUserFromVpcEndpointServiceRequest::getUserARN() const { + return userARN_; +} + +void RemoveUserFromVpcEndpointServiceRequest::setUserARN(const std::string &userARN) { + userARN_ = userARN; + setParameter(std::string("UserARN"), userARN); +} + long RemoveUserFromVpcEndpointServiceRequest::getUserId() const { return userId_; } diff --git a/privatelink/src/model/TagResourcesRequest.cc b/privatelink/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..d1a899786 --- /dev/null +++ b/privatelink/src/model/TagResourcesRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Privatelink::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("privatelink", "2020-04-15", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setBodyParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +bool TagResourcesRequest::getDryRun() const { + return dryRun_; +} + +void TagResourcesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string TagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void TagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + diff --git a/privatelink/src/model/TagResourcesResult.cc b/privatelink/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..233d46fbf --- /dev/null +++ b/privatelink/src/model/TagResourcesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Privatelink; +using namespace AlibabaCloud::Privatelink::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/privatelink/src/model/UpdateVpcEndpointServiceAttributeRequest.cc b/privatelink/src/model/UpdateVpcEndpointServiceAttributeRequest.cc index 66f2abf8c..58e10ab07 100644 --- a/privatelink/src/model/UpdateVpcEndpointServiceAttributeRequest.cc +++ b/privatelink/src/model/UpdateVpcEndpointServiceAttributeRequest.cc @@ -97,6 +97,15 @@ void UpdateVpcEndpointServiceAttributeRequest::setDryRun(bool dryRun) { setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } +bool UpdateVpcEndpointServiceAttributeRequest::getServiceSupportIPv6() const { + return serviceSupportIPv6_; +} + +void UpdateVpcEndpointServiceAttributeRequest::setServiceSupportIPv6(bool serviceSupportIPv6) { + serviceSupportIPv6_ = serviceSupportIPv6; + setParameter(std::string("ServiceSupportIPv6"), serviceSupportIPv6 ? "true" : "false"); +} + std::string UpdateVpcEndpointServiceAttributeRequest::getServiceDescription() const { return serviceDescription_; }