-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CosmosDB] Introduce new features from latest swagger 11-15-Preview a…
…nd add test coverage (#34743) * generated code using autorest * fix mongo collection functions in Custom/RestorableCosmosDBAccountResource.cs * Fix breaking changes that coming from the safeflatten * InAccount restore changes for all api kinds * resolve build errors and update mongo db inaccount restore tests * update session records * resolve build errors after merge conflicts * regenerated changes using dotnet build /t:GenerateCode * update default values * fix test with default identity * updated with eng\scripts\CodeChecks.ps1 -ServiceDirectory cosmosdb * update sesion records for failing pipeline * update sesion records for failing pipeline * update inaccount restore tests to use static time and session records for table and gremlin tests * Update recording * Update recording * update session records for sql and mongo and disable mongo inaccount restore tests * update generated files with latest * updated test case for burst capacity * update session records for database account operations * updated test case to not enable burst capacity in account creation (#2) * recorded all tests in DatabaseAccount (#3) * updated test case to not enable burst capacity in account creation * recorded all tests in DatabaseAccount * session recordings of DatabaseAccountTests * cross region restore updated test * test recordings update * updated recordings * added new group cross region restore * udpated recordings with playback verification * updated RestorabledatabaseAccountTests groupo * update session records for private end point tests * Rename BackupResource to CassandraClusterBackupResource * Update API * update changelog for new sdk release --------- Co-authored-by: Arthur Ma <arthurma@microsoft.com> Co-authored-by: Wei Hu <huwe@microsoft.com> Co-authored-by: Richa Sharma <richasharma@microsoft.com> Co-authored-by: Richa Sharma <richasharma.amu@gmail.com> Co-authored-by: dsapaliga <dsapaliga@microsoft.com>
- Loading branch information
1 parent
dd90afe
commit 169daa5
Showing
569 changed files
with
439,467 additions
and
240,513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
479 changes: 476 additions & 3 deletions
479
...mosdb/Azure.ResourceManager.CosmosDB/api/Azure.ResourceManager.CosmosDB.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...re.ResourceManager.CosmosDB/src/Custom/Models/CosmosDBSqlDatabaseCreateOrUpdateContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
using Azure.ResourceManager.Models; | ||
|
||
// Custom code to restore the safeflattened property | ||
|
||
namespace Azure.ResourceManager.CosmosDB.Models | ||
{ | ||
/// <summary> Parameters to create and update Cosmos DB SQL database. </summary> | ||
public partial class CosmosDBSqlDatabaseCreateOrUpdateContent : TrackedResourceData | ||
{ | ||
/// <summary> Name of the Cosmos DB SQL database. </summary> | ||
public string ResourceDatabaseName | ||
{ | ||
get => Resource is null ? default : Resource.DatabaseName; | ||
set | ||
{ | ||
if (Resource is null) | ||
Resource = new CosmosDBSqlDatabaseResourceInfo(value); | ||
else | ||
Resource.DatabaseName = value; | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...db/Azure.ResourceManager.CosmosDB/src/Custom/Models/CosmosDBTableCreateOrUpdateContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
using Azure.ResourceManager.Models; | ||
|
||
// Custom code to restore the safeflattened property | ||
|
||
namespace Azure.ResourceManager.CosmosDB.Models | ||
{ | ||
/// <summary> Parameters to create and update Cosmos DB Table. </summary> | ||
public partial class CosmosDBTableCreateOrUpdateContent : TrackedResourceData | ||
{ | ||
/// <summary> Name of the Cosmos DB table. </summary> | ||
public string ResourceTableName | ||
{ | ||
get => Resource is null ? default : Resource.TableName; | ||
set | ||
{ | ||
if (Resource is null) | ||
Resource = new CosmosDBTableResourceInfo(value); | ||
else | ||
Resource.TableName = value; | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../Azure.ResourceManager.CosmosDB/src/Custom/Models/GremlinDatabaseCreateOrUpdateContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
using Azure.ResourceManager.Models; | ||
|
||
// Custom code to restore the safeflattened property | ||
|
||
namespace Azure.ResourceManager.CosmosDB.Models | ||
{ | ||
/// <summary> Parameters to create and update Cosmos DB Gremlin database. </summary> | ||
public partial class GremlinDatabaseCreateOrUpdateContent : TrackedResourceData | ||
{ | ||
/// <summary> Name of the Cosmos DB Gremlin database. </summary> | ||
public string ResourceDatabaseName | ||
{ | ||
get => Resource is null ? default : Resource.DatabaseName; | ||
set | ||
{ | ||
if (Resource is null) | ||
Resource = new GremlinDatabaseResourceInfo(value); | ||
else | ||
Resource.DatabaseName = value; | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../Azure.ResourceManager.CosmosDB/src/Custom/Models/MongoDBDatabaseCreateOrUpdateContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
using Azure.ResourceManager.Models; | ||
|
||
// Custom code to restore the safeflattened property | ||
|
||
namespace Azure.ResourceManager.CosmosDB.Models | ||
{ | ||
/// <summary> Parameters to create and update Cosmos DB MongoDB database. </summary> | ||
public partial class MongoDBDatabaseCreateOrUpdateContent : TrackedResourceData | ||
{ | ||
/// <summary> Name of the Cosmos DB MongoDB database. </summary> | ||
public string ResourceDatabaseName | ||
{ | ||
get => Resource is null ? default : Resource.DatabaseName; | ||
set | ||
{ | ||
if (Resource is null) | ||
Resource = new MongoDBDatabaseResourceInfo(value); | ||
else | ||
Resource.DatabaseName = value; | ||
} | ||
} | ||
} | ||
} |
153 changes: 153 additions & 0 deletions
153
sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraClusterBackupResource.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.