Skip to content

Commit

Permalink
Client Encryption: Adds integration with latest CosmosDb Preview Pack…
Browse files Browse the repository at this point in the history
…age - 3.18.0-preview. (Azure#2340)

* Throw NotImplementedException for new Methods in 3.18.0-preview.

* Update changelog.md
  • Loading branch information
kr-santosh authored Mar 26, 2021
1 parent c0da3e3 commit 5e1bbe7
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ClientPreviewVersion>3.18.0</ClientPreviewVersion>
<ClientPreviewSuffixVersion>preview</ClientPreviewSuffixVersion>
<DirectVersion>3.17.2</DirectVersion>
<EncryptionVersion>1.0.0-previewV12</EncryptionVersion>
<EncryptionVersion>1.0.0-previewV13</EncryptionVersion>
<HybridRowVersion>1.1.0-preview1</HybridRowVersion>
<AboveDirBuildProps>$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))</AboveDirBuildProps>
<DefineConstants Condition=" '$(IsNightly)' == 'true' or '$(IsPreview)' == 'true' ">$(DefineConstants);PREVIEW</DefineConstants>
Expand Down
5 changes: 5 additions & 0 deletions Microsoft.Azure.Cosmos.Encryption/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Preview features are treated as a separate branch and will not be included in th
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### <a name="1.0.0-previewV13"/> [1.0.0-previewV13](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Encryption/1.0.0-previewV13) - 2021-03-26

#### Added
- [#2340](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/2340) Adds integration with latest CosmosDb Preview Package - 3.18.0-preview.

### <a name="1.0.0-previewV12"/> [1.0.0-previewV12](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Encryption/1.0.0-previewV12) - 2021-03-15

#### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,5 +873,25 @@ public override FeedIterator<T> GetChangeFeedIterator<T>(
changeFeedRequestOptions),
this.ResponseFactory);
}

public override Task<ItemResponse<T>> PatchItemAsync<T>(
string id,
PartitionKey partitionKey,
IReadOnlyList<PatchOperation> patchOperations,
PatchItemRequestOptions requestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

public override Task<ResponseMessage> PatchItemStreamAsync(
string id,
PartitionKey partitionKey,
IReadOnlyList<PatchOperation> patchOperations,
PatchItemRequestOptions requestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,13 @@ private async Task<TransactionalBatchResponse> DecryptTransactionalBatchResponse
response,
this.cosmosSerializer);
}

public override TransactionalBatch PatchItem(
string id,
IReadOnlyList<PatchOperation> patchOperations,
TransactionalBatchPatchItemRequestOptions requestOptions = null)
{
throw new NotImplementedException();
}
}
}
20 changes: 20 additions & 0 deletions Microsoft.Azure.Cosmos.Encryption/src/EncryptionContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -741,5 +741,25 @@ public override FeedIterator<T> GetChangeFeedIterator<T>(
changeFeedRequestOptions),
this.ResponseFactory);
}

public override Task<ItemResponse<T>> PatchItemAsync<T>(
string id,
PartitionKey partitionKey,
IReadOnlyList<PatchOperation> patchOperations,
PatchItemRequestOptions requestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

public override Task<ResponseMessage> PatchItemStreamAsync(
string id,
PartitionKey partitionKey,
IReadOnlyList<PatchOperation> patchOperations,
PatchItemRequestOptions requestOptions = null,
CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,13 @@ private async Task<TransactionalBatchResponse> DecryptTransactionalBatchResponse
response,
this.cosmosSerializer);
}

public override TransactionalBatch PatchItem(
string id,
IReadOnlyList<PatchOperation> patchOperations,
TransactionalBatchPatchItemRequestOptions requestOptions = null)
{
throw new NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<ItemGroup>
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.0.3" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.17.0-preview1" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.18.0-preview" />
<PackageReference Include="Azure.Core" Version="1.3.0" />
<PackageReference Include="Azure.Identity" Version="1.1.1" />
<PackageReference Include="Microsoft.Data.Encryption.Cryptography" Version="0.1.0-pre" />
Expand Down

0 comments on commit 5e1bbe7

Please sign in to comment.