Skip to content
Draft
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
33 changes: 33 additions & 0 deletions sdk/attestation/azure-mgmt-attestation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Release History

## 2.0.0b2 (2026-03-25)

### Features Added

- Client `AttestationManagementClient` added method `send_request`
- Model `AttestationProvider` added property `properties`
- Model `PrivateEndpointConnection` added property `system_data`
- Model `PrivateLinkResource` added property `system_data`
- Model `PrivateLinkResourceListResult` added property `next_link`
- Model `Resource` added property `system_data`
- Model `TrackedResource` added property `system_data`
- Added model `CloudError`
- Added model `JsonWebKey`
- Added model `JsonWebKeySet`
- Added model `StatusResult`

### Breaking Changes

- Method `Operations.list` changed from `asynchronous` to `synchronous`
- Model `AttestationProvider` deleted or renamed its instance variable `trust_model`
- Model `AttestationProvider` deleted or renamed its instance variable `status`
- Model `AttestationProvider` deleted or renamed its instance variable `attest_uri`
- Model `AttestationProvider` deleted or renamed its instance variable `public_network_access`
- Model `AttestationProvider` deleted or renamed its instance variable `private_endpoint_connections`
- Model `AttestationProvider` deleted or renamed its instance variable `tpm_attestation_authentication`
- Deleted or renamed model `JSONWebKey`
- Deleted or renamed model `JSONWebKeySet`
- Deleted or renamed model `OperationList`

## 1.1.0 (2026-03-25)

skip changelog generation

## 2.0.0b1 (2022-10-28)

### Features Added
Expand Down
9 changes: 4 additions & 5 deletions sdk/attestation/azure-mgmt-attestation/MANIFEST.in
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/attestation/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
87 changes: 32 additions & 55 deletions sdk/attestation/azure-mgmt-attestation/README.md
Original file line number Diff line number Diff line change
@@ -1,84 +1,61 @@
# Microsoft Azure SDK for Python

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

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

## Getting Started
## Getting started

### Prerequsites
```shell
pip install azure-identity
### Prerequisites

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

### Install the package

```bash
pip install azure-mgmt-attestation
pip install azure-identity
```

Before running the examples, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal

### Authentication

### Resources
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Attestation Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

## Examples
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

### List Attestation Providers
```python
from azure.core.exceptions import ClientAuthenticationError
from azure.identity import DefaultAzureCredential
from azure.mgmt.attestation import AttestationManagementClient
import os

client = AttestationManagementClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)

response = client.attestation_providers.list()
print(response)
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AttestationManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Troubleshooting

### CredentialUnavailableError
The CredentialUnavailableError is a specific error type derived from ClientAuthenticationError. This error type is used to indicate that the credential can't authenticate in the current environment, due to missing required configuration or setup. This error is also used as an indication for chained credential types, such as DefaultAzureCredential and ChainedTokenCredential, that the chained credential should continue to attempt other credential types later in the chain.

### Permission issues
Service client calls that result in HttpResponseError with a StatusCode of 401 or 403 often indicate the caller doesn't have sufficient permissions for the specified API. Check the [service documentation](https://learn.microsoft.com/azure/attestation/) to determine which RBAC roles are needed for the specific request, and ensure the authenticated user or service principal have been granted the appropriate roles on the resource.

## Next Steps

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.

## Examples

Code samples for this package can be found at:
- [Search Attestation Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Contributing
## Troubleshooting

This project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
the right to, and actually do, grant us the rights to use your contribution.
For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
## Next steps

When you submit a pull request, a CLA-bot will automatically determine whether
you need to provide a CLA and decorate the PR appropriately (e.g., label,
comment). Simply follow the instructions provided by the bot. You will only
need to do this once across all repos using our CLA.
## Provide Feedback

This project has adopted the
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information, see the
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
additional questions or comments.
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
11 changes: 0 additions & 11 deletions sdk/attestation/azure-mgmt-attestation/_meta.json

This file was deleted.

10 changes: 10 additions & 0 deletions sdk/attestation/azure-mgmt-attestation/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apiVersion": "2021-06-01",
"apiVersions": {
"Microsoft.Attestation": "2021-06-01"
},
"commit": "661354eacb7c1e697aa2d7be980c7ebe02255138",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/attestation/resource-manager/Microsoft.Attestation/Attestation",
"emitterVersion": "0.61.1"
}
65 changes: 65 additions & 0 deletions sdk/attestation/azure-mgmt-attestation/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"CrossLanguagePackageId": "Microsoft.Attestation",
"CrossLanguageDefinitionId": {
"azure.mgmt.attestation.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.attestation.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.attestation.models.AttestationProvider": "Microsoft.Attestation.AttestationProvider",
"azure.mgmt.attestation.models.AttestationProviderListResult": "Microsoft.Attestation.AttestationProviderListResult",
"azure.mgmt.attestation.models.AttestationServiceCreationParams": "Microsoft.Attestation.AttestationServiceCreationParams",
"azure.mgmt.attestation.models.AttestationServiceCreationSpecificParams": "Microsoft.Attestation.AttestationServiceCreationSpecificParams",
"azure.mgmt.attestation.models.AttestationServicePatchParams": "Microsoft.Attestation.AttestationServicePatchParams",
"azure.mgmt.attestation.models.AttestationServicePatchSpecificParams": "Microsoft.Attestation.AttestationServicePatchSpecificParams",
"azure.mgmt.attestation.models.CloudError": "Microsoft.Attestation.CloudError",
"azure.mgmt.attestation.models.CloudErrorBody": "Microsoft.Attestation.CloudErrorBody",
"azure.mgmt.attestation.models.JsonWebKey": "Microsoft.Attestation.JsonWebKey",
"azure.mgmt.attestation.models.JsonWebKeySet": "Microsoft.Attestation.JsonWebKeySet",
"azure.mgmt.attestation.models.LogSpecification": "Microsoft.Attestation.LogSpecification",
"azure.mgmt.attestation.models.OperationProperties": "Microsoft.Attestation.OperationProperties",
"azure.mgmt.attestation.models.OperationsDefinition": "Microsoft.Attestation.OperationsDefinition",
"azure.mgmt.attestation.models.OperationsDisplayDefinition": "Microsoft.Attestation.OperationsDisplayDefinition",
"azure.mgmt.attestation.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
"azure.mgmt.attestation.models.PrivateEndpointConnection": "Microsoft.Attestation.PrivateEndpointConnection",
"azure.mgmt.attestation.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
"azure.mgmt.attestation.models.PrivateLinkResource": "Azure.ResourceManager.CommonTypes.PrivateLinkResource",
"azure.mgmt.attestation.models.PrivateLinkResourceListResult": "Azure.ResourceManager.ResourceListResult",
"azure.mgmt.attestation.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
"azure.mgmt.attestation.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
"azure.mgmt.attestation.models.ServiceSpecification": "Microsoft.Attestation.ServiceSpecification",
"azure.mgmt.attestation.models.StatusResult": "Microsoft.Attestation.StatusResult",
"azure.mgmt.attestation.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.attestation.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.attestation.models.AttestationServiceStatus": "Microsoft.Attestation.AttestationServiceStatus",
"azure.mgmt.attestation.models.PublicNetworkAccessType": "Microsoft.Attestation.PublicNetworkAccessType",
"azure.mgmt.attestation.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
"azure.mgmt.attestation.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
"azure.mgmt.attestation.models.TpmAttestationAuthenticationType": "Microsoft.Attestation.TpmAttestationAuthenticationType",
"azure.mgmt.attestation.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.attestation.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.get": "Microsoft.Attestation.AttestationProviders.get",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.get": "Microsoft.Attestation.AttestationProviders.get",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.create": "Microsoft.Attestation.AttestationProviders.create",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.create": "Microsoft.Attestation.AttestationProviders.create",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.update": "Microsoft.Attestation.AttestationProviders.update",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.update": "Microsoft.Attestation.AttestationProviders.update",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.delete": "Microsoft.Attestation.AttestationProviders.delete",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.delete": "Microsoft.Attestation.AttestationProviders.delete",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.list_by_resource_group": "Microsoft.Attestation.AttestationProviders.listByResourceGroup",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.list_by_resource_group": "Microsoft.Attestation.AttestationProviders.listByResourceGroup",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.list": "Microsoft.Attestation.AttestationProviders.list",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.list": "Microsoft.Attestation.AttestationProviders.list",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.list_default": "Microsoft.Attestation.AttestationProvidersOperationGroup.listDefault",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.list_default": "Microsoft.Attestation.AttestationProvidersOperationGroup.listDefault",
"azure.mgmt.attestation.operations.AttestationProvidersOperations.get_default_by_location": "Microsoft.Attestation.AttestationProvidersOperationGroup.getDefaultByLocation",
"azure.mgmt.attestation.aio.operations.AttestationProvidersOperations.get_default_by_location": "Microsoft.Attestation.AttestationProvidersOperationGroup.getDefaultByLocation",
"azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.Attestation.PrivateEndpointConnections.get",
"azure.mgmt.attestation.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.Attestation.PrivateEndpointConnections.get",
"azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations.create": "Microsoft.Attestation.PrivateEndpointConnections.create",
"azure.mgmt.attestation.aio.operations.PrivateEndpointConnectionsOperations.create": "Microsoft.Attestation.PrivateEndpointConnections.create",
"azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations.delete": "Microsoft.Attestation.PrivateEndpointConnections.delete",
"azure.mgmt.attestation.aio.operations.PrivateEndpointConnectionsOperations.delete": "Microsoft.Attestation.PrivateEndpointConnections.delete",
"azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations.list": "Microsoft.Attestation.PrivateEndpointConnections.list",
"azure.mgmt.attestation.aio.operations.PrivateEndpointConnectionsOperations.list": "Microsoft.Attestation.PrivateEndpointConnections.list",
"azure.mgmt.attestation.operations.PrivateLinkResourcesOperations.list_by_provider": "Microsoft.Attestation.AttestationProviders.listByProvider",
"azure.mgmt.attestation.aio.operations.PrivateLinkResourcesOperations.list_by_provider": "Microsoft.Attestation.AttestationProviders.listByProvider"
}
}
2 changes: 1 addition & 1 deletion sdk/attestation/azure-mgmt-attestation/azure/__init__.py
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 @@ -2,25 +2,31 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._attestation_management_client import AttestationManagementClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import AttestationManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AttestationManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Loading
Loading