Skip to content

Commit b625e16

Browse files
author
SDKAuto
committed
CodeGen from PR 34001 in Azure/azure-rest-api-specs
Merge 5714503a05964b2a528ce29cc66820e1e357108d into 417b5dc4f4d1073c6e4bccf5e8606624f89d7739
1 parent ae9758d commit b625e16

File tree

56 files changed

+1890
-965
lines changed

Some content is hidden

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

56 files changed

+1890
-965
lines changed

sdk/confidentialledger/azure-mgmt-confidentialledger/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 2.0.0b5 (2025-04-16)
4+
5+
### Features Added
6+
7+
- Model `LedgerProperties` added property `host_level`
8+
- Model `LedgerProperties` added property `max_body_size_in_mb`
9+
- Model `LedgerProperties` added property `subject_name`
10+
- Model `LedgerProperties` added property `node_count`
11+
- Model `LedgerProperties` added property `write_lb_address_prefix`
12+
- Model `LedgerProperties` added property `worker_threads`
13+
- Model `LedgerProperties` added property `enclave_platform`
14+
- Model `LedgerProperties` added property `application_type`
15+
- Model `ManagedCCFProperties` added property `enclave_platform`
16+
- Added enum `ApplicationType`
17+
- Added enum `EnclavePlatform`
18+
319
## 2.0.0b4 (2024-04-22)
420

521
### Features Added

sdk/confidentialledger/azure-mgmt-confidentialledger/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Confidential Ledger Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "13962fb6f539de6125f94cdfdf177bfcd24efcb4",
2+
"commit": "c4a8f841b10349992a7110e18c2f846acd128739",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.7",
6+
"@autorest/python@6.32.3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/confidentialledger/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/confidentialledger/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.32.3 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/confidentialledger/resource-manager/readme.md"
1111
}

sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._confidential_ledger import ConfidentialLedger
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._confidential_ledger import ConfidentialLedger # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"ConfidentialLedger",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/_confidential_ledger.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -20,11 +21,10 @@
2021
from .operations import ConfidentialLedgerOperationsMixin, LedgerOperations, ManagedCCFOperations, Operations
2122

2223
if TYPE_CHECKING:
23-
# pylint: disable=unused-import,ungrouped-imports
2424
from azure.core.credentials import TokenCredential
2525

2626

27-
class ConfidentialLedger(ConfidentialLedgerOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
27+
class ConfidentialLedger(ConfidentialLedgerOperationsMixin):
2828
"""Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
2929
3030
:ivar operations: Operations operations
@@ -39,7 +39,7 @@ class ConfidentialLedger(ConfidentialLedgerOperationsMixin): # pylint: disable=
3939
:type subscription_id: str
4040
:param base_url: Service URL. Default value is "https://management.azure.com".
4141
:type base_url: str
42-
:keyword api_version: Api Version. Default value is "2023-06-28-preview". Note that overriding
42+
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
4343
this default value may result in unsupported behavior.
4444
:paramtype api_version: str
4545
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -107,7 +107,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
107107
def close(self) -> None:
108108
self._client.close()
109109

110-
def __enter__(self) -> "ConfidentialLedger":
110+
def __enter__(self) -> Self:
111111
self._client.__enter__()
112112
return self
113113

sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class ConfidentialLedgerConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class ConfidentialLedgerConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for ConfidentialLedger.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class ConfidentialLedgerConfiguration: # pylint: disable=too-many-instance-attr
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-06-28-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
3231
this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-06-28-preview")
36+
api_version: str = kwargs.pop("api_version", "2024-09-19-preview")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

0 commit comments

Comments
 (0)