Skip to content

Commit bfffa0a

Browse files
committed
Update autoSnapshotPolicy.
1 parent 8a637c7 commit bfffa0a

16 files changed

+633
-10
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1426
1+
1.36.1427

dbfs/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ set(dbfs_public_header_model
5757
include/alibabacloud/dbfs/model/GetDbfsResult.h
5858
include/alibabacloud/dbfs/model/GetServiceLinkedRoleRequest.h
5959
include/alibabacloud/dbfs/model/GetServiceLinkedRoleResult.h
60+
include/alibabacloud/dbfs/model/GetSnapshotLinkRequest.h
61+
include/alibabacloud/dbfs/model/GetSnapshotLinkResult.h
6062
include/alibabacloud/dbfs/model/ListAutoSnapshotPoliciesRequest.h
6163
include/alibabacloud/dbfs/model/ListAutoSnapshotPoliciesResult.h
6264
include/alibabacloud/dbfs/model/ListAutoSnapshotPolicyAppliedDbfsRequest.h
@@ -71,6 +73,8 @@ set(dbfs_public_header_model
7173
include/alibabacloud/dbfs/model/ListDbfsAttachedEcsInstancesResult.h
7274
include/alibabacloud/dbfs/model/ListSnapshotRequest.h
7375
include/alibabacloud/dbfs/model/ListSnapshotResult.h
76+
include/alibabacloud/dbfs/model/ListSnapshotLinksRequest.h
77+
include/alibabacloud/dbfs/model/ListSnapshotLinksResult.h
7478
include/alibabacloud/dbfs/model/ListTagKeysRequest.h
7579
include/alibabacloud/dbfs/model/ListTagKeysResult.h
7680
include/alibabacloud/dbfs/model/ListTagValuesRequest.h
@@ -126,6 +130,8 @@ set(dbfs_src
126130
src/model/GetDbfsResult.cc
127131
src/model/GetServiceLinkedRoleRequest.cc
128132
src/model/GetServiceLinkedRoleResult.cc
133+
src/model/GetSnapshotLinkRequest.cc
134+
src/model/GetSnapshotLinkResult.cc
129135
src/model/ListAutoSnapshotPoliciesRequest.cc
130136
src/model/ListAutoSnapshotPoliciesResult.cc
131137
src/model/ListAutoSnapshotPolicyAppliedDbfsRequest.cc
@@ -140,6 +146,8 @@ set(dbfs_src
140146
src/model/ListDbfsAttachedEcsInstancesResult.cc
141147
src/model/ListSnapshotRequest.cc
142148
src/model/ListSnapshotResult.cc
149+
src/model/ListSnapshotLinksRequest.cc
150+
src/model/ListSnapshotLinksResult.cc
143151
src/model/ListTagKeysRequest.cc
144152
src/model/ListTagKeysResult.cc
145153
src/model/ListTagValuesRequest.cc

dbfs/include/alibabacloud/dbfs/DBFSClient.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
#include "model/GetDbfsResult.h"
5959
#include "model/GetServiceLinkedRoleRequest.h"
6060
#include "model/GetServiceLinkedRoleResult.h"
61+
#include "model/GetSnapshotLinkRequest.h"
62+
#include "model/GetSnapshotLinkResult.h"
6163
#include "model/ListAutoSnapshotPoliciesRequest.h"
6264
#include "model/ListAutoSnapshotPoliciesResult.h"
6365
#include "model/ListAutoSnapshotPolicyAppliedDbfsRequest.h"
@@ -72,6 +74,8 @@
7274
#include "model/ListDbfsAttachedEcsInstancesResult.h"
7375
#include "model/ListSnapshotRequest.h"
7476
#include "model/ListSnapshotResult.h"
77+
#include "model/ListSnapshotLinksRequest.h"
78+
#include "model/ListSnapshotLinksResult.h"
7579
#include "model/ListTagKeysRequest.h"
7680
#include "model/ListTagKeysResult.h"
7781
#include "model/ListTagValuesRequest.h"
@@ -151,6 +155,9 @@ namespace AlibabaCloud
151155
typedef Outcome<Error, Model::GetServiceLinkedRoleResult> GetServiceLinkedRoleOutcome;
152156
typedef std::future<GetServiceLinkedRoleOutcome> GetServiceLinkedRoleOutcomeCallable;
153157
typedef std::function<void(const DBFSClient*, const Model::GetServiceLinkedRoleRequest&, const GetServiceLinkedRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceLinkedRoleAsyncHandler;
158+
typedef Outcome<Error, Model::GetSnapshotLinkResult> GetSnapshotLinkOutcome;
159+
typedef std::future<GetSnapshotLinkOutcome> GetSnapshotLinkOutcomeCallable;
160+
typedef std::function<void(const DBFSClient*, const Model::GetSnapshotLinkRequest&, const GetSnapshotLinkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSnapshotLinkAsyncHandler;
154161
typedef Outcome<Error, Model::ListAutoSnapshotPoliciesResult> ListAutoSnapshotPoliciesOutcome;
155162
typedef std::future<ListAutoSnapshotPoliciesOutcome> ListAutoSnapshotPoliciesOutcomeCallable;
156163
typedef std::function<void(const DBFSClient*, const Model::ListAutoSnapshotPoliciesRequest&, const ListAutoSnapshotPoliciesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAutoSnapshotPoliciesAsyncHandler;
@@ -172,6 +179,9 @@ namespace AlibabaCloud
172179
typedef Outcome<Error, Model::ListSnapshotResult> ListSnapshotOutcome;
173180
typedef std::future<ListSnapshotOutcome> ListSnapshotOutcomeCallable;
174181
typedef std::function<void(const DBFSClient*, const Model::ListSnapshotRequest&, const ListSnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSnapshotAsyncHandler;
182+
typedef Outcome<Error, Model::ListSnapshotLinksResult> ListSnapshotLinksOutcome;
183+
typedef std::future<ListSnapshotLinksOutcome> ListSnapshotLinksOutcomeCallable;
184+
typedef std::function<void(const DBFSClient*, const Model::ListSnapshotLinksRequest&, const ListSnapshotLinksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSnapshotLinksAsyncHandler;
175185
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
176186
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
177187
typedef std::function<void(const DBFSClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
@@ -255,6 +265,9 @@ namespace AlibabaCloud
255265
GetServiceLinkedRoleOutcome getServiceLinkedRole(const Model::GetServiceLinkedRoleRequest &request)const;
256266
void getServiceLinkedRoleAsync(const Model::GetServiceLinkedRoleRequest& request, const GetServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
257267
GetServiceLinkedRoleOutcomeCallable getServiceLinkedRoleCallable(const Model::GetServiceLinkedRoleRequest& request) const;
268+
GetSnapshotLinkOutcome getSnapshotLink(const Model::GetSnapshotLinkRequest &request)const;
269+
void getSnapshotLinkAsync(const Model::GetSnapshotLinkRequest& request, const GetSnapshotLinkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
270+
GetSnapshotLinkOutcomeCallable getSnapshotLinkCallable(const Model::GetSnapshotLinkRequest& request) const;
258271
ListAutoSnapshotPoliciesOutcome listAutoSnapshotPolicies(const Model::ListAutoSnapshotPoliciesRequest &request)const;
259272
void listAutoSnapshotPoliciesAsync(const Model::ListAutoSnapshotPoliciesRequest& request, const ListAutoSnapshotPoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
260273
ListAutoSnapshotPoliciesOutcomeCallable listAutoSnapshotPoliciesCallable(const Model::ListAutoSnapshotPoliciesRequest& request) const;
@@ -276,6 +289,9 @@ namespace AlibabaCloud
276289
ListSnapshotOutcome listSnapshot(const Model::ListSnapshotRequest &request)const;
277290
void listSnapshotAsync(const Model::ListSnapshotRequest& request, const ListSnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
278291
ListSnapshotOutcomeCallable listSnapshotCallable(const Model::ListSnapshotRequest& request) const;
292+
ListSnapshotLinksOutcome listSnapshotLinks(const Model::ListSnapshotLinksRequest &request)const;
293+
void listSnapshotLinksAsync(const Model::ListSnapshotLinksRequest& request, const ListSnapshotLinksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
294+
ListSnapshotLinksOutcomeCallable listSnapshotLinksCallable(const Model::ListSnapshotLinksRequest& request) const;
279295
ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const;
280296
void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
281297
ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKREQUEST_H_
18+
#define ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKREQUEST_H_
19+
20+
#include <alibabacloud/dbfs/DBFSExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace DBFS {
28+
namespace Model {
29+
class ALIBABACLOUD_DBFS_EXPORT GetSnapshotLinkRequest : public RpcServiceRequest {
30+
public:
31+
GetSnapshotLinkRequest();
32+
~GetSnapshotLinkRequest();
33+
std::string getLinkId() const;
34+
void setLinkId(const std::string &linkId);
35+
std::string getRegionId() const;
36+
void setRegionId(const std::string &regionId);
37+
38+
private:
39+
std::string linkId_;
40+
std::string regionId_;
41+
};
42+
} // namespace Model
43+
} // namespace DBFS
44+
} // namespace AlibabaCloud
45+
#endif // !ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKREQUEST_H_
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKRESULT_H_
18+
#define ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/dbfs/DBFSExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace DBFS
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_DBFS_EXPORT GetSnapshotLinkResult : public ServiceResult
33+
{
34+
public:
35+
struct Data
36+
{
37+
struct EcsListItem
38+
{
39+
std::string ecsId;
40+
};
41+
std::string status;
42+
int snapshotCount;
43+
std::string category;
44+
std::string fsName;
45+
std::vector<EcsListItem> ecsList;
46+
std::string fsId;
47+
long totalSize;
48+
int sourceSize;
49+
std::string linkId;
50+
};
51+
52+
53+
GetSnapshotLinkResult();
54+
explicit GetSnapshotLinkResult(const std::string &payload);
55+
~GetSnapshotLinkResult();
56+
Data getData()const;
57+
58+
protected:
59+
void parse(const std::string &payload);
60+
private:
61+
Data data_;
62+
63+
};
64+
}
65+
}
66+
}
67+
#endif // !ALIBABACLOUD_DBFS_MODEL_GETSNAPSHOTLINKRESULT_H_

dbfs/include/alibabacloud/dbfs/model/ListAutoSnapshotPolicyAppliedDbfsResult.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ namespace AlibabaCloud
3535
struct DbfsListItem
3636
{
3737
std::string status;
38-
std::string snapshotCount;
38+
int snapshotCount;
3939
std::string fsName;
4040
long sizeG;
4141
std::string fsId;
4242
std::string regionId;
43-
std::string totalSize;
43+
long totalSize;
4444
};
4545

4646

dbfs/include/alibabacloud/dbfs/model/ListAutoSnapshotPolicyUnappliedDbfsResult.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace AlibabaCloud
3535
struct DbfsListItem
3636
{
3737
std::string status;
38-
std::string snapshotCount;
38+
int snapshotCount;
3939
std::string fsName;
4040
long sizeG;
4141
std::string fsId;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSREQUEST_H_
18+
#define ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSREQUEST_H_
19+
20+
#include <alibabacloud/dbfs/DBFSExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace DBFS {
28+
namespace Model {
29+
class ALIBABACLOUD_DBFS_EXPORT ListSnapshotLinksRequest : public RpcServiceRequest {
30+
public:
31+
ListSnapshotLinksRequest();
32+
~ListSnapshotLinksRequest();
33+
std::string getFilterValue() const;
34+
void setFilterValue(const std::string &filterValue);
35+
int getPageNumber() const;
36+
void setPageNumber(int pageNumber);
37+
std::string getFilterKey() const;
38+
void setFilterKey(const std::string &filterKey);
39+
std::string getRegionId() const;
40+
void setRegionId(const std::string &regionId);
41+
int getPageSize() const;
42+
void setPageSize(int pageSize);
43+
44+
private:
45+
std::string filterValue_;
46+
int pageNumber_;
47+
std::string filterKey_;
48+
std::string regionId_;
49+
int pageSize_;
50+
};
51+
} // namespace Model
52+
} // namespace DBFS
53+
} // namespace AlibabaCloud
54+
#endif // !ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSREQUEST_H_
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSRESULT_H_
18+
#define ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/dbfs/DBFSExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace DBFS
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_DBFS_EXPORT ListSnapshotLinksResult : public ServiceResult
33+
{
34+
public:
35+
struct Info
36+
{
37+
struct EcsListItem
38+
{
39+
std::string ecsId;
40+
};
41+
std::string status;
42+
int snapshotCount;
43+
std::string fsName;
44+
std::vector<Info::EcsListItem> ecsList;
45+
std::string fsId;
46+
long totalSize;
47+
int sourceSize;
48+
std::string linkId;
49+
};
50+
51+
52+
ListSnapshotLinksResult();
53+
explicit ListSnapshotLinksResult(const std::string &payload);
54+
~ListSnapshotLinksResult();
55+
std::vector<Info> getSnapshotLinks()const;
56+
int getTotalCount()const;
57+
int getPageSize()const;
58+
int getPageNumber()const;
59+
60+
protected:
61+
void parse(const std::string &payload);
62+
private:
63+
std::vector<Info> snapshotLinks_;
64+
int totalCount_;
65+
int pageSize_;
66+
int pageNumber_;
67+
68+
};
69+
}
70+
}
71+
}
72+
#endif // !ALIBABACLOUD_DBFS_MODEL_LISTSNAPSHOTLINKSRESULT_H_

0 commit comments

Comments
 (0)