/
cassandraClusters.ts
269 lines (267 loc) · 10.8 KB
/
cassandraClusters.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
ClusterResource,
CassandraClustersListBySubscriptionOptionalParams,
CassandraClustersListByResourceGroupOptionalParams,
BackupResource,
CassandraClustersListBackupsOptionalParams,
CassandraClustersGetOptionalParams,
CassandraClustersGetResponse,
CassandraClustersDeleteOptionalParams,
CassandraClustersCreateUpdateOptionalParams,
CassandraClustersCreateUpdateResponse,
CassandraClustersUpdateOptionalParams,
CassandraClustersUpdateResponse,
CommandPostBody,
CassandraClustersInvokeCommandOptionalParams,
CassandraClustersInvokeCommandResponse,
CassandraClustersGetBackupOptionalParams,
CassandraClustersGetBackupResponse,
CassandraClustersDeallocateOptionalParams,
CassandraClustersStartOptionalParams,
CassandraClustersStatusOptionalParams,
CassandraClustersStatusResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a CassandraClusters. */
export interface CassandraClusters {
/**
* List all managed Cassandra clusters in this subscription.
* @param options The options parameters.
*/
listBySubscription(
options?: CassandraClustersListBySubscriptionOptionalParams
): PagedAsyncIterableIterator<ClusterResource>;
/**
* List all managed Cassandra clusters in this resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The options parameters.
*/
listByResourceGroup(
resourceGroupName: string,
options?: CassandraClustersListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<ClusterResource>;
/**
* List the backups of this cluster that are available to restore.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
listBackups(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersListBackupsOptionalParams
): PagedAsyncIterableIterator<BackupResource>;
/**
* Get the properties of a managed Cassandra cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersGetOptionalParams
): Promise<CassandraClustersGetResponse>;
/**
* Deletes a managed Cassandra cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersDeleteOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Deletes a managed Cassandra cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersDeleteOptionalParams
): Promise<void>;
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable
* properties. To update only some properties, use PATCH.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @param options The options parameters.
*/
beginCreateUpdate(
resourceGroupName: string,
clusterName: string,
body: ClusterResource,
options?: CassandraClustersCreateUpdateOptionalParams
): Promise<
PollerLike<
PollOperationState<CassandraClustersCreateUpdateResponse>,
CassandraClustersCreateUpdateResponse
>
>;
/**
* Create or update a managed Cassandra cluster. When updating, you must specify all writable
* properties. To update only some properties, use PATCH.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body The properties specifying the desired state of the managed Cassandra cluster.
* @param options The options parameters.
*/
beginCreateUpdateAndWait(
resourceGroupName: string,
clusterName: string,
body: ClusterResource,
options?: CassandraClustersCreateUpdateOptionalParams
): Promise<CassandraClustersCreateUpdateResponse>;
/**
* Updates some of the properties of a managed Cassandra cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @param options The options parameters.
*/
beginUpdate(
resourceGroupName: string,
clusterName: string,
body: ClusterResource,
options?: CassandraClustersUpdateOptionalParams
): Promise<
PollerLike<
PollOperationState<CassandraClustersUpdateResponse>,
CassandraClustersUpdateResponse
>
>;
/**
* Updates some of the properties of a managed Cassandra cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Parameters to provide for specifying the managed Cassandra cluster.
* @param options The options parameters.
*/
beginUpdateAndWait(
resourceGroupName: string,
clusterName: string,
body: ClusterResource,
options?: CassandraClustersUpdateOptionalParams
): Promise<CassandraClustersUpdateResponse>;
/**
* Invoke a command like nodetool for cassandra maintenance
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where
* @param options The options parameters.
*/
beginInvokeCommand(
resourceGroupName: string,
clusterName: string,
body: CommandPostBody,
options?: CassandraClustersInvokeCommandOptionalParams
): Promise<
PollerLike<
PollOperationState<CassandraClustersInvokeCommandResponse>,
CassandraClustersInvokeCommandResponse
>
>;
/**
* Invoke a command like nodetool for cassandra maintenance
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param body Specification which command to run where
* @param options The options parameters.
*/
beginInvokeCommandAndWait(
resourceGroupName: string,
clusterName: string,
body: CommandPostBody,
options?: CassandraClustersInvokeCommandOptionalParams
): Promise<CassandraClustersInvokeCommandResponse>;
/**
* Get the properties of an individual backup of this cluster that is available to restore.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param backupId Id of a restorable backup of a Cassandra cluster.
* @param options The options parameters.
*/
getBackup(
resourceGroupName: string,
clusterName: string,
backupId: string,
options?: CassandraClustersGetBackupOptionalParams
): Promise<CassandraClustersGetBackupResponse>;
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate
* the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an
* already deallocated cluster. Use Start to restart the cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginDeallocate(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersDeallocateOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate
* the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an
* already deallocated cluster. Use Start to restart the cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginDeallocateAndWait(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersDeallocateOptionalParams
): Promise<void>;
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual
* machine of this cluster with reserved data disk. This won't do anything on an already running
* cluster. Use Deallocate to deallocate the cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginStart(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersStartOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual
* machine of this cluster with reserved data disk. This won't do anything on an already running
* cluster. Use Deallocate to deallocate the cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
beginStartAndWait(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersStartOptionalParams
): Promise<void>;
/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param options The options parameters.
*/
status(
resourceGroupName: string,
clusterName: string,
options?: CassandraClustersStatusOptionalParams
): Promise<CassandraClustersStatusResponse>;
}