Skip to content

Commit 22fe166

Browse files
authored
[CosmosDB] GA PowerShell commands for InAccount Restore of Deleted Database/ Containers feature for SQL/Mongo/Table/Gremlin (#23666)
* changes and generated code * update tests * update session records * update help files * update changelog * update session records * update TestUpdateCosmosDBAccountBackupPolicyToContinuous30Days session record * update session records * add notimestamp tests and update few old session records
1 parent a789816 commit 22fe166

File tree

268 files changed

+156322
-32193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+156322
-32193
lines changed

src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperations.cs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
731731
/// Managed Cassandra cluster name.
732732
/// </param>
733733
/// <param name='body'>
734-
/// The properties specifying the desired state of the managed Cassandra cluster.
734+
/// The properties specifying the desired state of the managed Cassandra
735+
/// cluster.
735736
/// </param>
736737
/// <param name='customHeaders'>
737738
/// Headers that will be added to request.
@@ -841,7 +842,8 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
841842
}
842843

843844
/// <summary>
844-
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
845+
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in
846+
/// a cluster.
845847
/// </summary>
846848
/// <param name='resourceGroupName'>
847849
/// The name of the resource group. The name is case insensitive.
@@ -1306,7 +1308,8 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
13061308

13071309
}
13081310
/// <summary>
1309-
/// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
1311+
/// Create or update a managed Cassandra cluster. When updating, you must
1312+
/// specify all writable properties. To update only some properties, use PATCH.
13101313
/// </summary>
13111314
/// <param name='resourceGroupName'>
13121315
/// The name of the resource group. The name is case insensitive.
@@ -1315,7 +1318,8 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
13151318
/// Managed Cassandra cluster name.
13161319
/// </param>
13171320
/// <param name='body'>
1318-
/// The properties specifying the desired state of the managed Cassandra cluster.
1321+
/// The properties specifying the desired state of the managed Cassandra
1322+
/// cluster.
13191323
/// </param>
13201324
/// <param name='customHeaders'>
13211325
/// Headers that will be added to request.
@@ -1857,7 +1861,7 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
18571861

18581862
}
18591863
/// <summary>
1860-
/// Invoke a command like nodetool for cassandra maintenance
1864+
/// Invoke a command like nodetool for cassandra maintenance
18611865
/// </summary>
18621866
/// <param name='resourceGroupName'>
18631867
/// The name of the resource group. The name is case insensitive.
@@ -2118,7 +2122,10 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
21182122

21192123
}
21202124
/// <summary>
2121-
/// 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&#39;t do anything on an already deallocated cluster. Use Start to restart the cluster.
2125+
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
2126+
/// Deallocation will deallocate the host virtual machine of this cluster, and
2127+
/// reserved the data disk. This won&#39;t do anything on an already deallocated
2128+
/// cluster. Use Start to restart the cluster.
21222129
/// </summary>
21232130
/// <param name='resourceGroupName'>
21242131
/// The name of the resource group. The name is case insensitive.
@@ -2340,7 +2347,10 @@ internal CassandraClustersOperations (CosmosDBManagementClient client)
23402347

23412348
}
23422349
/// <summary>
2343-
/// 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&#39;t do anything on an already running cluster. Use Deallocate to deallocate the cluster.
2350+
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
2351+
/// start the host virtual machine of this cluster with reserved data disk.
2352+
/// This won&#39;t do anything on an already running cluster. Use Deallocate to
2353+
/// deallocate the cluster.
23442354
/// </summary>
23452355
/// <param name='resourceGroupName'>
23462356
/// The name of the resource group. The name is case insensitive.

src/CosmosDB/CosmosDB.Sdk/Generated/CassandraClustersOperationsExtensions.cs

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ public static void Delete(this ICassandraClustersOperations operations, string r
148148
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
149149
}
150150
/// <summary>
151-
/// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
151+
/// Create or update a managed Cassandra cluster. When updating, you must
152+
/// specify all writable properties. To update only some properties, use PATCH.
152153
/// </summary>
153154
/// <param name='operations'>
154155
/// The operations group for this extension method.
@@ -165,7 +166,8 @@ public static ClusterResource CreateUpdate(this ICassandraClustersOperations ope
165166
}
166167

167168
/// <summary>
168-
/// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
169+
/// Create or update a managed Cassandra cluster. When updating, you must
170+
/// specify all writable properties. To update only some properties, use PATCH.
169171
/// </summary>
170172
/// <param name='operations'>
171173
/// The operations group for this extension method.
@@ -226,7 +228,7 @@ public static ClusterResource Update(this ICassandraClustersOperations operation
226228
}
227229
}
228230
/// <summary>
229-
/// Invoke a command like nodetool for cassandra maintenance
231+
/// Invoke a command like nodetool for cassandra maintenance
230232
/// </summary>
231233
/// <param name='operations'>
232234
/// The operations group for this extension method.
@@ -243,7 +245,7 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
243245
}
244246

245247
/// <summary>
246-
/// Invoke a command like nodetool for cassandra maintenance
248+
/// Invoke a command like nodetool for cassandra maintenance
247249
/// </summary>
248250
/// <param name='operations'>
249251
/// The operations group for this extension method.
@@ -265,7 +267,10 @@ public static CommandOutput InvokeCommand(this ICassandraClustersOperations oper
265267
}
266268
}
267269
/// <summary>
268-
/// 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&#39;t do anything on an already deallocated cluster. Use Start to restart the cluster.
270+
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
271+
/// Deallocation will deallocate the host virtual machine of this cluster, and
272+
/// reserved the data disk. This won&#39;t do anything on an already deallocated
273+
/// cluster. Use Start to restart the cluster.
269274
/// </summary>
270275
/// <param name='operations'>
271276
/// The operations group for this extension method.
@@ -282,7 +287,10 @@ public static void Deallocate(this ICassandraClustersOperations operations, stri
282287
}
283288

284289
/// <summary>
285-
/// 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&#39;t do anything on an already deallocated cluster. Use Start to restart the cluster.
290+
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
291+
/// Deallocation will deallocate the host virtual machine of this cluster, and
292+
/// reserved the data disk. This won&#39;t do anything on an already deallocated
293+
/// cluster. Use Start to restart the cluster.
286294
/// </summary>
287295
/// <param name='operations'>
288296
/// The operations group for this extension method.
@@ -301,7 +309,10 @@ public static void Deallocate(this ICassandraClustersOperations operations, stri
301309
(await operations.DeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
302310
}
303311
/// <summary>
304-
/// 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&#39;t do anything on an already running cluster. Use Deallocate to deallocate the cluster.
312+
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
313+
/// start the host virtual machine of this cluster with reserved data disk.
314+
/// This won&#39;t do anything on an already running cluster. Use Deallocate to
315+
/// deallocate the cluster.
305316
/// </summary>
306317
/// <param name='operations'>
307318
/// The operations group for this extension method.
@@ -318,7 +329,10 @@ public static void Start(this ICassandraClustersOperations operations, string re
318329
}
319330

320331
/// <summary>
321-
/// 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&#39;t do anything on an already running cluster. Use Deallocate to deallocate the cluster.
332+
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
333+
/// start the host virtual machine of this cluster with reserved data disk.
334+
/// This won&#39;t do anything on an already running cluster. Use Deallocate to
335+
/// deallocate the cluster.
322336
/// </summary>
323337
/// <param name='operations'>
324338
/// The operations group for this extension method.
@@ -337,7 +351,8 @@ public static void Start(this ICassandraClustersOperations operations, string re
337351
(await operations.StartWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
338352
}
339353
/// <summary>
340-
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
354+
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in
355+
/// a cluster.
341356
/// </summary>
342357
/// <param name='operations'>
343358
/// The operations group for this extension method.
@@ -354,7 +369,8 @@ public static CassandraClusterPublicStatus Status(this ICassandraClustersOperati
354369
}
355370

356371
/// <summary>
357-
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
372+
/// Gets the CPU, memory, and disk usage statistics for each Cassandra node in
373+
/// a cluster.
358374
/// </summary>
359375
/// <param name='operations'>
360376
/// The operations group for this extension method.
@@ -412,7 +428,8 @@ public static void BeginDelete(this ICassandraClustersOperations operations, str
412428
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
413429
}
414430
/// <summary>
415-
/// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
431+
/// Create or update a managed Cassandra cluster. When updating, you must
432+
/// specify all writable properties. To update only some properties, use PATCH.
416433
/// </summary>
417434
/// <param name='operations'>
418435
/// The operations group for this extension method.
@@ -429,7 +446,8 @@ public static ClusterResource BeginCreateUpdate(this ICassandraClustersOperation
429446
}
430447

431448
/// <summary>
432-
/// Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
449+
/// Create or update a managed Cassandra cluster. When updating, you must
450+
/// specify all writable properties. To update only some properties, use PATCH.
433451
/// </summary>
434452
/// <param name='operations'>
435453
/// The operations group for this extension method.
@@ -490,7 +508,7 @@ public static ClusterResource BeginUpdate(this ICassandraClustersOperations oper
490508
}
491509
}
492510
/// <summary>
493-
/// Invoke a command like nodetool for cassandra maintenance
511+
/// Invoke a command like nodetool for cassandra maintenance
494512
/// </summary>
495513
/// <param name='operations'>
496514
/// The operations group for this extension method.
@@ -507,7 +525,7 @@ public static CommandOutput BeginInvokeCommand(this ICassandraClustersOperations
507525
}
508526

509527
/// <summary>
510-
/// Invoke a command like nodetool for cassandra maintenance
528+
/// Invoke a command like nodetool for cassandra maintenance
511529
/// </summary>
512530
/// <param name='operations'>
513531
/// The operations group for this extension method.
@@ -529,7 +547,10 @@ public static CommandOutput BeginInvokeCommand(this ICassandraClustersOperations
529547
}
530548
}
531549
/// <summary>
532-
/// 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&#39;t do anything on an already deallocated cluster. Use Start to restart the cluster.
550+
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
551+
/// Deallocation will deallocate the host virtual machine of this cluster, and
552+
/// reserved the data disk. This won&#39;t do anything on an already deallocated
553+
/// cluster. Use Start to restart the cluster.
533554
/// </summary>
534555
/// <param name='operations'>
535556
/// The operations group for this extension method.
@@ -546,7 +567,10 @@ public static void BeginDeallocate(this ICassandraClustersOperations operations,
546567
}
547568

548569
/// <summary>
549-
/// 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&#39;t do anything on an already deallocated cluster. Use Start to restart the cluster.
570+
/// Deallocate the Managed Cassandra Cluster and Associated Data Centers.
571+
/// Deallocation will deallocate the host virtual machine of this cluster, and
572+
/// reserved the data disk. This won&#39;t do anything on an already deallocated
573+
/// cluster. Use Start to restart the cluster.
550574
/// </summary>
551575
/// <param name='operations'>
552576
/// The operations group for this extension method.
@@ -565,7 +589,10 @@ public static void BeginDeallocate(this ICassandraClustersOperations operations,
565589
(await operations.BeginDeallocateWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
566590
}
567591
/// <summary>
568-
/// 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&#39;t do anything on an already running cluster. Use Deallocate to deallocate the cluster.
592+
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
593+
/// start the host virtual machine of this cluster with reserved data disk.
594+
/// This won&#39;t do anything on an already running cluster. Use Deallocate to
595+
/// deallocate the cluster.
569596
/// </summary>
570597
/// <param name='operations'>
571598
/// The operations group for this extension method.
@@ -582,7 +609,10 @@ public static void BeginStart(this ICassandraClustersOperations operations, stri
582609
}
583610

584611
/// <summary>
585-
/// 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&#39;t do anything on an already running cluster. Use Deallocate to deallocate the cluster.
612+
/// Start the Managed Cassandra Cluster and Associated Data Centers. Start will
613+
/// start the host virtual machine of this cluster with reserved data disk.
614+
/// This won&#39;t do anything on an already running cluster. Use Deallocate to
615+
/// deallocate the cluster.
586616
/// </summary>
587617
/// <param name='operations'>
588618
/// The operations group for this extension method.

src/CosmosDB/CosmosDB.Sdk/Generated/CassandraDataCentersOperations.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ internal CassandraDataCentersOperations (CosmosDBManagementClient client)
876876

877877
}
878878
/// <summary>
879-
/// Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
879+
/// Create or update a managed Cassandra data center. When updating, overwrite
880+
/// all properties. To update only some properties, use PATCH.
880881
/// </summary>
881882
/// <param name='resourceGroupName'>
882883
/// The name of the resource group. The name is case insensitive.

src/CosmosDB/CosmosDB.Sdk/Generated/CassandraDataCentersOperationsExtensions.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ public static void Delete(this ICassandraDataCentersOperations operations, strin
139139
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, dataCenterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
140140
}
141141
/// <summary>
142-
/// Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
142+
/// Create or update a managed Cassandra data center. When updating, overwrite
143+
/// all properties. To update only some properties, use PATCH.
143144
/// </summary>
144145
/// <param name='operations'>
145146
/// The operations group for this extension method.
@@ -159,7 +160,8 @@ public static DataCenterResource CreateUpdate(this ICassandraDataCentersOperatio
159160
}
160161

161162
/// <summary>
162-
/// Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
163+
/// Create or update a managed Cassandra data center. When updating, overwrite
164+
/// all properties. To update only some properties, use PATCH.
163165
/// </summary>
164166
/// <param name='operations'>
165167
/// The operations group for this extension method.
@@ -271,7 +273,8 @@ public static void BeginDelete(this ICassandraDataCentersOperations operations,
271273
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, dataCenterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
272274
}
273275
/// <summary>
274-
/// Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
276+
/// Create or update a managed Cassandra data center. When updating, overwrite
277+
/// all properties. To update only some properties, use PATCH.
275278
/// </summary>
276279
/// <param name='operations'>
277280
/// The operations group for this extension method.
@@ -291,7 +294,8 @@ public static DataCenterResource BeginCreateUpdate(this ICassandraDataCentersOpe
291294
}
292295

293296
/// <summary>
294-
/// Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
297+
/// Create or update a managed Cassandra data center. When updating, overwrite
298+
/// all properties. To update only some properties, use PATCH.
295299
/// </summary>
296300
/// <param name='operations'>
297301
/// The operations group for this extension method.

0 commit comments

Comments
 (0)