Skip to content

Commit e99689a

Browse files
authored
[confidentialledger] regenerate sdk code (#46775)
* regenerate with latest codegen * update changelog
1 parent 8a5dd35 commit e99689a

50 files changed

Lines changed: 528 additions & 4960 deletions

Some content is hidden

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

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

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

3+
## 1.0.1 (2026-05-07)
4+
5+
### Other Changes
6+
7+
- Regenerated code with latest code generator tool
8+
39
## 2.0.0b5 (2025-05-19)
410

511
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/confidentialledger/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

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

Lines changed: 2 additions & 2 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.9+.
4+
This package has been tested with Python 3.10+.
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.9+ is required to use this package.
15+
- Python 3.10+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package

sdk/confidentialledger/azure-mgmt-confidentialledger/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commit": "994e2132b8c3533657ab86c11a6c39875f779d22",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.10.2",
5+
"use": [
6+
"@autorest/python@6.50.0",
7+
"@autorest/modelerfour@4.27.0"
8+
],
9+
"autorest_command": "autorest specification/confidentialledger/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/codespace/workspace/sdk --tag=package-2022-05-13 --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10+
"readme": "specification/confidentialledger/resource-manager/readme.md"
11+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.confidentialledger.models.AADBasedSecurityPrincipal": null,
5+
"azure.mgmt.confidentialledger.models.CertBasedSecurityPrincipal": null,
6+
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityRequest": null,
7+
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityResponse": null,
8+
"azure.mgmt.confidentialledger.models.Tags": null,
9+
"azure.mgmt.confidentialledger.models.ResourceLocation": null,
10+
"azure.mgmt.confidentialledger.models.Resource": null,
11+
"azure.mgmt.confidentialledger.models.ConfidentialLedger": null,
12+
"azure.mgmt.confidentialledger.models.ConfidentialLedgerList": null,
13+
"azure.mgmt.confidentialledger.models.ErrorAdditionalInfo": null,
14+
"azure.mgmt.confidentialledger.models.ErrorDetail": null,
15+
"azure.mgmt.confidentialledger.models.ErrorResponse": null,
16+
"azure.mgmt.confidentialledger.models.LedgerProperties": null,
17+
"azure.mgmt.confidentialledger.models.ResourceProviderOperationDefinition": null,
18+
"azure.mgmt.confidentialledger.models.ResourceProviderOperationDisplay": null,
19+
"azure.mgmt.confidentialledger.models.ResourceProviderOperationList": null,
20+
"azure.mgmt.confidentialledger.models.SystemData": null,
21+
"azure.mgmt.confidentialledger.models.LedgerRoleName": null,
22+
"azure.mgmt.confidentialledger.models.CreatedByType": null,
23+
"azure.mgmt.confidentialledger.models.LedgerType": null,
24+
"azure.mgmt.confidentialledger.models.ProvisioningState": null,
25+
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityReason": null,
26+
"azure.mgmt.confidentialledger.operations.Operations.list": null,
27+
"azure.mgmt.confidentialledger.aio.operations.Operations.list": null,
28+
"azure.mgmt.confidentialledger.ConfidentialLedger.check_name_availability": null,
29+
"azure.mgmt.confidentialledger.aio.ConfidentialLedger.check_name_availability": null,
30+
"azure.mgmt.confidentialledger.operations.LedgerOperations.get": null,
31+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.get": null,
32+
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_delete": null,
33+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_delete": null,
34+
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_create": null,
35+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_create": null,
36+
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_update": null,
37+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_update": null,
38+
"azure.mgmt.confidentialledger.operations.LedgerOperations.list_by_resource_group": null,
39+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.list_by_resource_group": null,
40+
"azure.mgmt.confidentialledger.operations.LedgerOperations.list_by_subscription": null,
41+
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.list_by_subscription": null
42+
}
43+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,57 @@
2020
from . import models as _models
2121
from ._configuration import ConfidentialLedgerConfiguration
2222
from ._utils.serialization import Deserializer, Serializer
23-
from .operations import ConfidentialLedgerOperationsMixin, LedgerOperations, ManagedCCFOperations, Operations
23+
from .operations import LedgerOperations, Operations, _ConfidentialLedgerOperationsMixin
2424

2525
if TYPE_CHECKING:
26+
from azure.core import AzureClouds
2627
from azure.core.credentials import TokenCredential
2728

2829

29-
class ConfidentialLedger(ConfidentialLedgerOperationsMixin):
30+
class ConfidentialLedger(_ConfidentialLedgerOperationsMixin):
3031
"""Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
3132
3233
:ivar operations: Operations operations
3334
:vartype operations: azure.mgmt.confidentialledger.operations.Operations
3435
:ivar ledger: LedgerOperations operations
3536
:vartype ledger: azure.mgmt.confidentialledger.operations.LedgerOperations
36-
:ivar managed_ccf: ManagedCCFOperations operations
37-
:vartype managed_ccf: azure.mgmt.confidentialledger.operations.ManagedCCFOperations
3837
:param credential: Credential needed for the client to connect to Azure. Required.
3938
:type credential: ~azure.core.credentials.TokenCredential
40-
:param subscription_id: The ID of the target subscription. Required.
39+
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
40+
00000000-0000-0000-0000-000000000000). Required.
4141
:type subscription_id: str
4242
:param base_url: Service URL. Default value is None.
4343
:type base_url: str
44-
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
45-
this default value may result in unsupported behavior.
44+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
45+
None.
46+
:paramtype cloud_setting: ~azure.core.AzureClouds
47+
:keyword api_version: Api Version. Default value is "2022-05-13". Note that overriding this
48+
default value may result in unsupported behavior.
4649
:paramtype api_version: str
4750
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4851
Retry-After header is present.
4952
"""
5053

5154
def __init__(
52-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
55+
self,
56+
credential: "TokenCredential",
57+
subscription_id: str,
58+
base_url: Optional[str] = None,
59+
*,
60+
cloud_setting: Optional["AzureClouds"] = None,
61+
**kwargs: Any
5362
) -> None:
54-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
63+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
5564
_endpoints = get_arm_endpoints(_cloud)
5665
if not base_url:
5766
base_url = _endpoints["resource_manager"]
5867
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
5968
self._config = ConfidentialLedgerConfiguration(
60-
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
69+
credential=credential,
70+
subscription_id=subscription_id,
71+
cloud_setting=cloud_setting,
72+
credential_scopes=credential_scopes,
73+
**kwargs
6174
)
6275

6376
_policies = kwargs.pop("policies", None)
@@ -86,7 +99,6 @@ def __init__(
8699
self._serialize.client_side_validation = False
87100
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
88101
self.ledger = LedgerOperations(self._client, self._config, self._serialize, self._deserialize)
89-
self.managed_ccf = ManagedCCFOperations(self._client, self._config, self._serialize, self._deserialize)
90102

91103
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
92104
"""Runs the network request through the client's chained policies.

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -25,15 +26,25 @@ class ConfidentialLedgerConfiguration: # pylint: disable=too-many-instance-attr
2526
2627
:param credential: Credential needed for the client to connect to Azure. Required.
2728
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: The ID of the target subscription. Required.
29+
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
30+
00000000-0000-0000-0000-000000000000). Required.
2931
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
31-
this default value may result in unsupported behavior.
32+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
33+
None.
34+
:type cloud_setting: ~azure.core.AzureClouds
35+
:keyword api_version: Api Version. Default value is "2022-05-13". Note that overriding this
36+
default value may result in unsupported behavior.
3237
:paramtype api_version: str
3338
"""
3439

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-09-19-preview")
40+
def __init__(
41+
self,
42+
credential: "TokenCredential",
43+
subscription_id: str,
44+
cloud_setting: Optional["AzureClouds"] = None,
45+
**kwargs: Any
46+
) -> None:
47+
api_version: str = kwargs.pop("api_version", "2022-05-13")
3748

3849
if credential is None:
3950
raise ValueError("Parameter 'credential' must not be None.")
@@ -42,6 +53,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4253

4354
self.credential = credential
4455
self.subscription_id = subscription_id
56+
self.cloud_setting = cloud_setting
4557
self.api_version = api_version
4658
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4759
kwargs.setdefault("sdk_moniker", "mgmt-confidentialledger/{}".format(VERSION))

0 commit comments

Comments
 (0)