Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.0.1 (2026-05-07)

### Other Changes

- Regenerated code with latest code generator tool

Comment thread
msyyc marked this conversation as resolved.
## 2.0.0b5 (2025-05-19)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/confidentialledger/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Confidential Ledger Management Client Library.
This package has been tested with Python 3.9+.
This package has been tested with Python 3.10+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
Comment thread
msyyc marked this conversation as resolved.

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

### Prerequisites

- Python 3.9+ is required to use this package.
- Python 3.10+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)
Comment thread
msyyc marked this conversation as resolved.

### Install the package
Expand Down
11 changes: 0 additions & 11 deletions sdk/confidentialledger/azure-mgmt-confidentialledger/_meta.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commit": "994e2132b8c3533657ab86c11a6c39875f779d22",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.50.0",
"@autorest/modelerfour@4.27.0"
],
"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",
"readme": "specification/confidentialledger/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"CrossLanguagePackageId": null,
"CrossLanguageDefinitionId": {
"azure.mgmt.confidentialledger.models.AADBasedSecurityPrincipal": null,
"azure.mgmt.confidentialledger.models.CertBasedSecurityPrincipal": null,
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityRequest": null,
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityResponse": null,
"azure.mgmt.confidentialledger.models.Tags": null,
"azure.mgmt.confidentialledger.models.ResourceLocation": null,
"azure.mgmt.confidentialledger.models.Resource": null,
"azure.mgmt.confidentialledger.models.ConfidentialLedger": null,
"azure.mgmt.confidentialledger.models.ConfidentialLedgerList": null,
"azure.mgmt.confidentialledger.models.ErrorAdditionalInfo": null,
"azure.mgmt.confidentialledger.models.ErrorDetail": null,
"azure.mgmt.confidentialledger.models.ErrorResponse": null,
"azure.mgmt.confidentialledger.models.LedgerProperties": null,
"azure.mgmt.confidentialledger.models.ResourceProviderOperationDefinition": null,
"azure.mgmt.confidentialledger.models.ResourceProviderOperationDisplay": null,
"azure.mgmt.confidentialledger.models.ResourceProviderOperationList": null,
"azure.mgmt.confidentialledger.models.SystemData": null,
"azure.mgmt.confidentialledger.models.LedgerRoleName": null,
"azure.mgmt.confidentialledger.models.CreatedByType": null,
"azure.mgmt.confidentialledger.models.LedgerType": null,
"azure.mgmt.confidentialledger.models.ProvisioningState": null,
"azure.mgmt.confidentialledger.models.CheckNameAvailabilityReason": null,
"azure.mgmt.confidentialledger.operations.Operations.list": null,
"azure.mgmt.confidentialledger.aio.operations.Operations.list": null,
"azure.mgmt.confidentialledger.ConfidentialLedger.check_name_availability": null,
"azure.mgmt.confidentialledger.aio.ConfidentialLedger.check_name_availability": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.get": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.get": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_delete": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_delete": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_create": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_create": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.begin_update": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.begin_update": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.list_by_resource_group": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.list_by_resource_group": null,
"azure.mgmt.confidentialledger.operations.LedgerOperations.list_by_subscription": null,
"azure.mgmt.confidentialledger.aio.operations.LedgerOperations.list_by_subscription": null
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,57 @@
from . import models as _models
from ._configuration import ConfidentialLedgerConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import ConfidentialLedgerOperationsMixin, LedgerOperations, ManagedCCFOperations, Operations
from .operations import LedgerOperations, Operations, _ConfidentialLedgerOperationsMixin

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


class ConfidentialLedger(ConfidentialLedgerOperationsMixin):
class ConfidentialLedger(_ConfidentialLedgerOperationsMixin):
"""Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.confidentialledger.operations.Operations
:ivar ledger: LedgerOperations operations
:vartype ledger: azure.mgmt.confidentialledger.operations.LedgerOperations
:ivar managed_ccf: ManagedCCFOperations operations
:vartype managed_ccf: azure.mgmt.confidentialledger.operations.ManagedCCFOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
:param base_url: Service URL. Default value is None.
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2022-05-13". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
self,
credential: "TokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
*,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = ConfidentialLedgerConfiguration(
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
credential=credential,
subscription_id=subscription_id,
cloud_setting=cloud_setting,
credential_scopes=credential_scopes,
**kwargs
)

_policies = kwargs.pop("policies", None)
Expand Down Expand Up @@ -86,7 +99,6 @@ def __init__(
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.ledger = LedgerOperations(self._client, self._config, self._serialize, self._deserialize)
self.managed_ccf = ManagedCCFOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -25,15 +26,25 @@ class ConfidentialLedgerConfiguration: # pylint: disable=too-many-instance-attr

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-09-19-preview". Note that overriding
this default value may result in unsupported behavior.
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2022-05-13". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-19-preview")
def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2022-05-13")

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

self.credential = credential
self.subscription_id = subscription_id
self.cloud_setting = cloud_setting
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-confidentialledger/{}".format(VERSION))
Expand Down
Loading