Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CosmosDB] Introduce new features from latest swagger 11-15-Preview and add test coverage #34743

Merged
merged 48 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
664d0c6
generated code using autorest
ddhamotharan Mar 7, 2023
9dcfb7a
fix mongo collection functions in Custom/RestorableCosmosDBAccountRes…
ddhamotharan Mar 7, 2023
6b3abfd
Fix breaking changes that coming from the safeflatten
ArthurMa1978 Mar 7, 2023
1c749d7
InAccount restore changes for all api kinds
ddhamotharan Apr 5, 2023
3a7df4b
Merge branch 'users/ddhamotharan/11-15-preview-v3' of https://github.…
ddhamotharan Apr 5, 2023
2e6478f
Merge branch 'Azure:main' into users/ddhamotharan/11-15-preview-v3
ddhamotharan Apr 5, 2023
7e85c1f
Merge branch 'Azure:main' into users/ddhamotharan/11-15-preview-v3
ddhamotharan Apr 5, 2023
c6850e6
resolve build errors and update mongo db inaccount restore tests
ddhamotharan Apr 10, 2023
365faad
update session records
ddhamotharan Apr 10, 2023
59dd1eb
Merge branch 'users/ddhamotharan/11-15-preview-v3' of https://github.…
ddhamotharan Apr 10, 2023
c5e049d
Merge remote-tracking branch 'origin/main' into users/ddhamotharan/11…
ddhamotharan Apr 10, 2023
d1e3a40
resolve build errors after merge conflicts
ddhamotharan Apr 10, 2023
68f4bc3
regenerated changes using dotnet build /t:GenerateCode
ddhamotharan Apr 11, 2023
e9f1e96
Merge branch 'Azure:main' into users/ddhamotharan/11-15-preview-v3
ddhamotharan Apr 11, 2023
cd98dbb
update default values
ddhamotharan Apr 11, 2023
8221fbb
Merge branch 'users/ddhamotharan/11-15-preview-v3' of https://github.…
ddhamotharan Apr 11, 2023
7928b8c
fix test with default identity
ddhamotharan Apr 11, 2023
5134f30
updated with eng\scripts\CodeChecks.ps1 -ServiceDirectory cosmosdb
ddhamotharan Apr 11, 2023
e6dbd31
update sesion records for failing pipeline
ddhamotharan Apr 11, 2023
55b1ea1
update sesion records for failing pipeline
ddhamotharan Apr 11, 2023
a2f5cc4
update inaccount restore tests to use static time and session records…
ddhamotharan Apr 12, 2023
4d7be46
Update recording
live1206 Apr 12, 2023
bbfd4b7
Update recording
live1206 Apr 12, 2023
6da2413
update session records for sql and mongo and disable mongo inaccount …
ddhamotharan Apr 12, 2023
cbd5c17
resolve merge conflicts
ddhamotharan Apr 12, 2023
0f36485
Merge remote-tracking branch 'origin/main' into users/ddhamotharan/11…
ddhamotharan Apr 13, 2023
93279d0
update generated files with latest
ddhamotharan Apr 13, 2023
b85ea70
updated test case for burst capacity
rsharm7 Apr 16, 2023
078528a
Merge pull request #1 from ddhamotharan/BurstCapacityPreview
ddhamotharan Apr 17, 2023
171175a
update session records for database account operations
ddhamotharan Apr 17, 2023
f2091c3
updated test case to not enable burst capacity in account creation (#2)
rsharm7 Apr 17, 2023
3d9abb4
recorded all tests in DatabaseAccount (#3)
rsharm7 Apr 17, 2023
eaa06fe
session recordings of DatabaseAccountTests
rsharm7 Apr 17, 2023
4b1a29d
cross region restore updated test
dsapaliga Apr 18, 2023
22a564c
test recordings update
dsapaliga Apr 18, 2023
7c82cae
merged and fixed conflicts
dsapaliga Apr 19, 2023
15de058
Merge pull request #4 from ddhamotharan/users/dsapaliga/crossregionre…
ddhamotharan Apr 19, 2023
2392e39
updated recordings
dsapaliga Apr 20, 2023
8965681
Merge pull request #5 from ddhamotharan/users/dsapaliga/crossregionre…
ddhamotharan Apr 20, 2023
fd2edea
added new group cross region restore
dsapaliga Apr 20, 2023
76544d1
udpated recordings with playback verification
dsapaliga Apr 21, 2023
3260899
updated RestorabledatabaseAccountTests groupo
dsapaliga Apr 21, 2023
83156f4
Merge pull request #6 from ddhamotharan/users/dsapaliga/crossregionre…
ddhamotharan Apr 21, 2023
3adf700
Merge remote-tracking branch 'origin' into users/ddhamotharan/11-15-p…
ddhamotharan Apr 24, 2023
f42503d
update session records for private end point tests
ddhamotharan Apr 25, 2023
f8d4274
Rename BackupResource to CassandraClusterBackupResource
live1206 Apr 26, 2023
686cc7d
Update API
live1206 Apr 26, 2023
1fd1052
update changelog for new sdk release
ddhamotharan Apr 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>TestProxyPath</_Parameter1>
<_Parameter2>$(NuGetPackageRoot)azure.sdk.tools.testproxy\$(TestProxyVersion)\tools\net6.0\any\Azure.Sdk.Tools.TestProxy.dll</_Parameter2>
<_Parameter2>$(NuGetPackageRoot)\azure.sdk.tools.testproxy\$(TestProxyVersion)\tools\net6.0\any\Azure.Sdk.Tools.TestProxy.dll</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Project>
11 changes: 5 additions & 6 deletions sdk/cosmosdb/Azure.ResourceManager.CosmosDB/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Release History

## 1.4.0-beta.1 (Unreleased)
## 1.4.0-beta.1 (2023-04-28)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Updated Microsoft.DocumentDB RP API version to `2022-11-15-preview`
- Added support for restoring deleted table and gremlin resources within the same account
- Added support for cross region restore
- Added support for enabling burst capacity of the CosmosDB account

## 1.3.0 (2023-04-11)

Expand Down

Large diffs are not rendered by default.

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;
}
}
}
}
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;
}
}
}
}
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;
}
}
}
}
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;
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading