Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b60b6b3
update SDKs
yifan-zhou922 Dec 4, 2023
11a999a
update
yifan-zhou922 Dec 4, 2023
e1c37f2
update test
yifan-zhou922 Dec 4, 2023
2f80702
Update CHANGELOG.md
yifan-zhou922 Dec 4, 2023
f2e6b89
Update conftest.py
yifan-zhou922 Dec 4, 2023
be08f82
update
yifan-zhou922 Dec 4, 2023
cdcf0ab
Merge branch 'main' into yifanzhou/purview-datamap-0901
yifan-zhou922 Feb 18, 2024
2bd49a8
regenerate
yifan-zhou922 Feb 19, 2024
7c3c125
update test
yifan-zhou922 Feb 19, 2024
77a7938
update tests
yifan-zhou922 Feb 19, 2024
f862b44
update
yifan-zhou922 Feb 21, 2024
ffa3697
Update conftest.py
yifan-zhou922 Feb 21, 2024
cfeea05
update
yifan-zhou922 Feb 21, 2024
0cb2580
Update cspell.json
yifan-zhou922 Feb 21, 2024
4d12fb7
Update cspell.json
yifan-zhou922 Feb 21, 2024
546741d
Create assets.json
yifan-zhou922 Feb 21, 2024
0e24b40
Update environment_exclusions.py
yifan-zhou922 Feb 22, 2024
89a1c13
Update assets.json
ChenxiJiang333 Feb 22, 2024
43bc5c6
Update README.md
yifan-zhou922 Feb 22, 2024
200feb3
Delete sdk/purview/azure-purview-datamap/tests/recordings directory
ChenxiJiang333 Feb 22, 2024
5f7bb1f
update samples
yifan-zhou922 Feb 22, 2024
75846c1
Update assets.json
ChenxiJiang333 Feb 22, 2024
24582c0
Update README.md
yifan-zhou922 Feb 23, 2024
84c777f
Update CHANGELOG.md
msyyc Feb 26, 2024
a828fa2
Update README.md
yifan-zhou922 Feb 26, 2024
ee0a8c5
Update get_types.py
yifan-zhou922 Feb 27, 2024
fcef269
update
yifan-zhou922 Mar 1, 2024
ebf5bf9
update
yifan-zhou922 Mar 1, 2024
02a8f8a
Merge branch 'main' into yifanzhou/purview-datamap-0901
yifan-zhou922 Mar 4, 2024
04ea95c
Update README.md
yifan-zhou922 Mar 4, 2024
770ff4e
Create pyproject.toml
yifan-zhou922 Mar 4, 2024
43b32a9
Update CHANGELOG.md
yifan-zhou922 Mar 4, 2024
95a2a97
Update sdk/purview/azure-purview-datamap/README.md
yifan-zhou922 Mar 5, 2024
0373efe
Update sdk/purview/azure-purview-datamap/README.md
yifan-zhou922 Mar 5, 2024
9867dda
Update get_types.py
yifan-zhou922 Mar 5, 2024
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
40 changes: 25 additions & 15 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,37 +682,37 @@
},
{
"filename": "sdk/core/azure-core-tracing-opentelemetry/**",
"words": ["ctxt", "somethingstuid"]
"words": [ "ctxt", "somethingstuid" ]
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-conversations/**",
"words": ["conv", "summ"],
"words": [ "conv", "summ" ],
"caseSensitive": false
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-conversations/doc/*.rst",
"words": ["undoc"]
"words": [ "undoc" ]
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/**/_serialization.py",
"words": ["ctxt", "wday", "mday", "astimezone", "unflattened", "JSONify", "deseralize"]
"words": [ "ctxt", "wday", "mday", "astimezone", "unflattened", "JSONify", "deseralize" ]
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-questionanswering/**",
"words": ["qnas", "qnamaker", "ADTO"],
"words": [ "qnas", "qnamaker", "ADTO" ],
"caseSensitive": false
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/test_query_text*.py",
"words": ["groovin", "Olufsen"]
"words": [ "groovin", "Olufsen" ]
},
{
"filename": "sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/**/_serialization.py",
"words": ["ctxt", "wday", "mday", "astimezone", "unflattened", "JSONify", "deseralize"]
"words": [ "ctxt", "wday", "mday", "astimezone", "unflattened", "JSONify", "deseralize" ]
},
{
"filename": "sdk/cognitiveservices/azure-cognitiveservices-language-spellcheck/tests/*.py",
"words": ["Apim", "cognituve"]
"words": [ "Apim", "cognituve" ]
},
{
"filename": "sdk/communication/**",
Expand Down Expand Up @@ -1110,7 +1110,7 @@
},
{
"filename": "sdk/loadtestservice/azure-developer-loadtesting/azure/developer/loadtesting/**",
"words":[
"words": [
"vusers"
]
},
Expand Down Expand Up @@ -1275,7 +1275,7 @@
},
{
"filename": "sdk/attestation/azure-security-attestation/tests/conftest.py",
"words":[
"words": [
"sharedwus"
]
},
Expand Down Expand Up @@ -1303,8 +1303,8 @@
"resouce",
"nnumeral"
]
},
{
},
{
"filename": "sdk/storage/azure-storage-file-share/**",
"words": [
"XSMB",
Expand Down Expand Up @@ -1498,7 +1498,7 @@
"jsonify",
"ints",
"inirudebwoy",
"mghextreme"
"mghextreme"
]
},
{
Expand Down Expand Up @@ -1649,8 +1649,8 @@
"Nify",
"ctxt",
"unflattened",
"deseralize",
"wday"
"deseralize",
"wday"
]
},
{
Expand Down Expand Up @@ -1709,6 +1709,16 @@
"wday"
]
},
{
"filename": "sdk/purview/azure-purview-datamap/azure/purview/datamap/*.py",
"words": [
"mros",
"Nify",
"deserializers",
"ctxt",
"wday"
]
},
{
"filename": "sdk/healthinsights/azure-healthinsights-radiologyinsights/**",
"words": [
Expand Down
5 changes: 5 additions & 0 deletions sdk/purview/azure-purview-datamap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 1.0.0b1 (2024-03-05)

- Initial version for Purview DataMap
21 changes: 21 additions & 0 deletions sdk/purview/azure-purview-datamap/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions sdk/purview/azure-purview-datamap/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include *.md
include LICENSE
include azure/purview/datamap/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/purview/__init__.py
92 changes: 92 additions & 0 deletions sdk/purview/azure-purview-datamap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Azure Purview Datamap client library for Python
Microsoft Purview Data Map provides the foundation for data discovery and data governance. Microsoft Purview Data Map is a cloud native PaaS service that captures metadata about enterprise data present in analytics and operation systems on-premises and cloud. DataMapClient provides a set of APIs in the Purview Data Map service. For a full list of APIs, please refer to [Data Map API](https://learn.microsoft.com/rest/api/purview/datamapdataplane/operation-groups?view=rest-purview-datamapdataplane-2023-09-01).

## Getting started

### Installing the package

```bash
python -m pip install azure-purview-datamap
```

#### Prequisites

- Python 3.8 or later is required to use this package.
- You need an [Azure subscription][azure_sub] to use this package.
- An existing Azure Purview Datamap instance.
#### Create with an Azure Active Directory Credential
To use an [Azure Active Directory (AAD) token credential][authenticate_with_token],
provide an instance of the desired credential type obtained from the
[azure-identity][azure_identity_credentials] library.

To authenticate with AAD, you must first [pip][pip] install [`azure-identity`][azure_identity_pip]

After setup, you can choose which type of [credential][azure_identity_credentials] from azure.identity to use.
As an example, [DefaultAzureCredential][default_azure_credential] can be used to authenticate the client:

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`

Use the returned token credential to authenticate the client:

```python
>>> from azure.purview.datamap import DataMapClient
>>> from azure.identity import DefaultAzureCredential
>>> client = DataMapClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
```

## Key concepts

### Client

This package offers request builders so you can build http requests and send these requests to the service using the `send_request` method.
For more information on how to use request builders and our clients, see [here][request_builders_and_client].

## Examples

```python
>>> from azure.purview.datamap import DataMapClient
>>> from azure.identity import DefaultAzureCredential
>>> from azure.core.exceptions import HttpResponseError

>>> client = DataMapClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
>>> try:
client.type_definition.get()
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))

```

## Troubleshooting

## Next steps

For more generic samples, see our [client docs][request_builders_and_client].

## Contributing

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.

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.

This project has adopted the
[Microsoft Open Source Code of Conduct][code_of_conduct]. For more information,
see the Code of Conduct FAQ or contact [email protected] with any
additional questions or comments.

<!-- LINKS -->
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
[authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials
[azure_identity_pip]: https://pypi.org/project/azure-identity/
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential
[request_builders_and_client]: https://aka.ms/azsdk/python/protocol/quickstart
[pip]: https://pypi.org/project/pip/
[azure_sub]: https://azure.microsoft.com/free/

6 changes: 6 additions & 0 deletions sdk/purview/azure-purview-datamap/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/purview/azure-purview-datamap",
"Tag": "python/purview/azure-purview-datamap_3f980f3fd6"
}
1 change: 1 addition & 0 deletions sdk/purview/azure-purview-datamap/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._client import DataMapClient
from ._version import VERSION

__version__ = VERSION

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

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

_patch_sdk()
Loading