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

[Confidential Ledger] GA Data Plane SDK #24900

Merged
merged 147 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from 139 commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
7cd32d0
remove duplicate typing
lynshi Mar 9, 2022
613a2e8
update version and changelog
lynshi Mar 9, 2022
cfac4d4
added confidentialledger to tox list and fix issues
lynshi Mar 22, 2022
773fea7
always import typing
lynshi Mar 22, 2022
b9db9ad
update date in changelog
lynshi Mar 22, 2022
c0bc9f7
fix trailing whitespace
lynshi Mar 22, 2022
f398334
Merge remote-tracking branch 'upstream/main' into lyshi/ga-changes
lynshi Apr 7, 2022
0d5297b
remove TransactionStatus model
lynshi Apr 7, 2022
641dbb8
align get_ledger_entry backoff config api with azure defaults
lynshi Apr 7, 2022
b818f89
update typing for ConfidentialLedgerCertificateCredential
lynshi Apr 7, 2022
81c9fe9
Merge remote-tracking branch 'upstream/main' into lyshi/ga-changes
lynshi May 16, 2022
69196ef
dpg generation for new version
lynshi May 16, 2022
ea990da
small updates
lynshi May 16, 2022
543f398
add pytest configuration
lynshi May 16, 2022
17589ba
wip
lynshi May 16, 2022
ebc937b
the tests ran
lynshi May 16, 2022
2bfd0e8
tested identity service client and added test for add cert-based user
lynshi May 17, 2022
fdf1a1c
change identity in test
lynshi May 17, 2022
4d90f03
passed non-async tests
lynshi May 17, 2022
a6100b6
pass all tests and make recordings
lynshi May 18, 2022
93e5c0a
totally generate using the old way
lynshi May 20, 2022
cac8bba
update swagger for stable api version
lynshi May 23, 2022
79a9fdc
generate using stable and remove auth
lynshi May 23, 2022
49b32e5
update ConfidentialLedgerClient init
lynshi May 25, 2022
673e817
patch async init
lynshi May 25, 2022
a6be184
overrode all expected client operations
lynshi May 26, 2022
f35b1bf
overrode async
lynshi May 26, 2022
a70005d
remove accidental file
lynshi May 26, 2022
4c533de
attr -> json
lynshi May 26, 2022
18bd1e0
fix typos
lynshi May 26, 2022
963eca3
add https://
lynshi May 26, 2022
388c5b8
fix imports and credential type checking
lynshi May 26, 2022
050738f
fix method name
lynshi May 26, 2022
6c74060
credential to args
lynshi May 26, 2022
e82233e
black
lynshi May 26, 2022
ce19164
fix some tests
lynshi May 26, 2022
5cd5d01
updated async tests
lynshi May 26, 2022
8e3b091
fixed entry for range query
lynshi May 26, 2022
54e607e
generate identity service so it does not get overriden
lynshi May 26, 2022
a738d3e
skip url encoding of user id
lynshi May 26, 2022
bb14753
generate with autorest python 5.17.0
lynshi Jun 4, 2022
5666fdd
pass identity service tests
lynshi Jun 4, 2022
7c407d1
remove api version from tests
lynshi Jun 4, 2022
ce8d38e
build in typical identity service uri
lynshi Jun 4, 2022
d956342
regenerated
lynshi Jun 6, 2022
6047dbd
update identity
lynshi Jun 6, 2022
51afd66
Union[IO, JSON]
lynshi Jun 6, 2022
2e64a89
set content-type for create user and fix transaction status check in …
lynshi Jun 6, 2022
240ad87
fix tests
lynshi Jun 6, 2022
3c13f31
fix user tests
lynshi Jun 6, 2022
0058d29
basic readme for samples
lynshi Jun 7, 2022
cf49ad8
follow retry policy parameter names
lynshi Jun 7, 2022
5cb5b0b
remove post and wait
lynshi Jun 7, 2022
3e4ad98
remove post_ledger_entry_wait_for_commit from test
lynshi Jun 9, 2022
060b385
Revert "remove post_ledger_entry_wait_for_commit from test"
lynshi Jun 9, 2022
a7fc5c3
Revert "remove post and wait"
lynshi Jun 9, 2022
955887a
add cert user before starting
lynshi Jun 10, 2022
da1ace8
add test config files
lynshi Jun 10, 2022
de933f3
remove unnecessary environment vars (set by the ARM template)
lynshi Jun 10, 2022
6d852e2
fix non-async test
lynshi Jun 10, 2022
d4dd31a
GetLedgerEntryPollingMethod
lynshi Jun 14, 2022
bbf2702
StatePollingMethod
lynshi Jun 14, 2022
2f91f81
complete poller nonasync
lynshi Jun 14, 2022
ef99752
AsyncLroPoller returned
lynshi Jun 14, 2022
22f3cd7
tests to lro
lynshi Jun 14, 2022
b6d6a5b
tests use pollers
lynshi Jun 14, 2022
878a637
update arm template
lynshi Jun 14, 2022
4f1e602
rename module and add sample
lynshi Jun 16, 2022
aab975a
update readme up to examples
lynshi Jun 17, 2022
dd68949
update readme
lynshi Jun 17, 2022
08924da
list ledger entries readme and sample
lynshi Jun 17, 2022
a888487
finish readme
lynshi Jun 17, 2022
5aadf23
finish samples
lynshi Jun 17, 2022
f15c6d6
update CHANGELOG
lynshi Jun 17, 2022
97a763b
retrieve cert at startup
lynshi Jun 17, 2022
7c68739
new recordings for identity service
lynshi Jun 17, 2022
86ffecd
check collection id
lynshi Jun 17, 2022
695779f
list collections
lynshi Jun 17, 2022
ab9c264
address pr comments
lynshi Jun 20, 2022
d4fbe76
rename resource group variable per live test setup
lynshi Jun 21, 2022
e7ad93d
ran black
lynshi Jun 23, 2022
12f586f
Merge remote-tracking branch 'upstream/main' into lyshi/ga-changes
lynshi Jun 23, 2022
4f21021
remove ARM template
lynshi Jun 23, 2022
3c4ff01
add user management samples
lynshi Jun 23, 2022
c7378fd
regenerate with fixed swagger
lynshi Jun 27, 2022
b4cd487
operations mixin for identity client
lynshi Jun 27, 2022
5c59a36
latest tests and recordings
lynshi Jun 27, 2022
c27de66
use confidential ledger id
lynshi Jun 27, 2022
91b70a5
updated recordings
lynshi Jun 27, 2022
c72a886
contextmanager for async samples
lynshi Jun 27, 2022
64d70e1
update changelog per comments
lynshi Jun 27, 2022
99ff7b3
put imports in all readme samples
lynshi Jun 27, 2022
ccf3077
remove operation prefix in Swagger and regenerate
lynshi Jun 27, 2022
48e5a73
remove some examples from readme and start samples section
lynshi Jun 27, 2022
2168ae6
samples skeleton
lynshi Jun 27, 2022
147c8cd
run list_ledger_entries samples
lynshi Jun 27, 2022
4d8539d
updated manage users sample
lynshi Jun 27, 2022
1f0bb3f
get receipt sample
lynshi Jun 27, 2022
f409405
write to ledger
lynshi Jun 27, 2022
bc1bdea
use collections
lynshi Jun 28, 2022
521a7e7
service verification samples
lynshi Jun 28, 2022
5265c07
fix collections signature
lynshi Jun 28, 2022
8a155f1
add aiohttp to requirements
lynshi Jun 28, 2022
18c01b6
use uniqueString for ledger name
lynshi Jun 28, 2022
8aca485
set resource location
lynshi Jun 28, 2022
53e0986
update setup.py based on example
lynshi Jun 28, 2022
712e94e
suppress credscan for test secret
lynshi Jun 28, 2022
9420191
fix super and credential attr
lynshi Jun 28, 2022
3aeb08e
omit in toc is causing errors and also apparently not necessary local…
lynshi Jun 28, 2022
4cf2d0a
update shared requirements
lynshi Jun 28, 2022
bf858ae
pylint fixes
lynshi Jun 28, 2022
fbac417
no more self.assert
lynshi Jun 29, 2022
cd163ed
fix super
lynshi Jun 29, 2022
9946e43
deduplicate pollingmethod
lynshi Jun 29, 2022
8986ed6
test fixes
lynshi Jun 29, 2022
c2b08d7
update ledger name
lynshi Jun 29, 2022
a0c7be9
shorten range query test and add delay to add user
lynshi Jun 29, 2022
c510894
greatly shorten range query test
lynshi Jun 29, 2022
423659c
redo recordings
lynshi Jun 29, 2022
f212830
add known word to cspell
lynshi Jun 29, 2022
96a8cc8
add PostTestSteps
lynshi Jun 29, 2022
46a3772
reduce flakiness
lynshi Jun 29, 2022
9445ba3
add envvars
lynshi Jun 29, 2022
cc4d494
remove PostTestSteps
lynshi Jun 29, 2022
bf66692
address edge cases in tests
lynshi Jun 29, 2022
7b663c7
autorest 6.0.1
lynshi Jun 29, 2022
bc02b34
regenerate with batch
lynshi Jun 30, 2022
67a8037
rerecord
lynshi Jun 30, 2022
be85e14
add comment
lynshi Jun 30, 2022
3ecdff8
better handling of cls in begin_post_ledger_entry
lynshi Jun 30, 2022
5a8bdba
fix typo
lynshi Jun 30, 2022
44edea7
Merge remote-tracking branch 'upstream/main' into lyshi/ga-changes
lynshi Jul 1, 2022
beb01d1
fetch TLS certificate automagically
lynshi Jul 1, 2022
db706d3
updated tests and README for new convenience TLS cert fetching
lynshi Jul 1, 2022
40fdb38
pass kwargs
lynshi Jul 1, 2022
f8e1e62
fix credential typo
lynshi Jul 12, 2022
d599101
identity_service -> certificate
lynshi Jul 12, 2022
586af87
rename endpoint params
lynshi Jul 12, 2022
ce9a8a9
regen after review and passed tests and samples
lynshi Jul 13, 2022
7a2f3bf
regenerated with latest swagger
lynshi Jul 14, 2022
ca9757a
Merge remote-tracking branch 'upstream/main' into lyshi/ga-changes
lynshi Jul 14, 2022
7320fee
updated per pr comments
lynshi Jul 14, 2022
a65d099
fix pylint
lynshi Jul 14, 2022
2454891
use tempfile.TemporaryDirectory
lynshi Jul 15, 2022
3818d7c
retry ResourceNotFoundError in poller
lynshi Jul 18, 2022
97b7669
address review comments
lynshi Jul 18, 2022
106c7bf
uupdate release date
lynshi Jul 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@
"startf",
"dpkg"
]
},
{
"filename": "sdk/confidentialledger/test-resources.bicep",
"words": [
"pysdkci"
]
}
],
"allowCompoundWords": true
Expand Down
15 changes: 13 additions & 2 deletions sdk/confidentialledger/azure-confidentialledger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# Release History

## 1.0.0b2 (Unreleased)
## 1.0.0 (Unreleased)
lynshi marked this conversation as resolved.
Show resolved Hide resolved

GA Data Plane Python SDK for Confidential Ledger.

### Bugs Fixed
- User ids that are certificate fingerprints are no longer URL-encoded in the request URI.

### Other Changes
### Breaking Changes
- Removed all models. Methods now return JSON directly.
- `sub_ledger_id` fields are now named `collection_id`.
- `azure.confidentialledger.identity_service` has been renamed to `azure.confidentialledger.certificate`.
- `ConfidentialLedgerIdentityServiceClient` is now `ConfidentialLedgerCertificateClient`.
- `post_ledger_entry` has been renamed to `create_ledger_entry`.

### Other Changes
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
lynshi marked this conversation as resolved.
Show resolved Hide resolved
- Convenience poller methods added for certain long-running operations.
- Add new supported API versions: `2022-20-04-preview` and `2022-05-13`.
lynshi marked this conversation as resolved.
Show resolved Hide resolved

## 1.0.0b1 (2021-05-12)

Expand Down
452 changes: 237 additions & 215 deletions sdk/confidentialledger/azure-confidentialledger/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1,46 +1,24 @@
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
# pylint: disable=unused-import
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._client import ConfidentialLedgerClient
from ._enums import LedgerUserRole, TransactionState
from ._models import (
AppendResult,
Consortium,
ConsortiumMember,
Constitution,
EnclaveQuote,
LedgerEnclaves,
LedgerEntry,
LedgerUser,
TransactionReceipt,
TransactionStatus,
)
from ._shared import ConfidentialLedgerCertificateCredential
from ._version import VERSION

__version__ = VERSION

__all__ = [
"ConfidentialLedgerCertificateCredential",
"ConfidentialLedgerClient",
# Enums
"LedgerUserRole",
"TransactionState",
# Models
"AppendResult",
"Consortium",
"ConsortiumMember",
"Constitution",
"EnclaveQuote",
"LedgerEnclaves",
"LedgerEntry",
"LedgerUser",
"TransactionReceipt",
"TransactionStatus",
]
try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ConfidentialLedgerClient"]
__all__.extend([p for p in _patch_all if p not in __all__])

from ._version import VERSION

__version__ = VERSION
_patch_sdk()
Loading