Skip to content

Commit 37034c4

Browse files
authored
[Projects] Initial SDK commit (Azure#39960)
* initial commit * Import corrections * More CI fixes * Copyright headers * Typing extensions * Black * Pylint * Started typing cleanup * Spelling * Renamed test dir * Test identifiers * Incremental cleanup * Fixed identity parameter * Incremental cleanup * Updated client typing * First sample * Fixed sample * Support closing credentials * Added appconfig resource * Mypy happy * Test fixes * Made component instances frozen * CI cleanup * Default config store with settings * Fix optional annotation * Clean up public API of resources * Fix NoneType * Added appservice * Refactor loading/provisioning experience * Test fixes * Pylint + mypy * Re-record * Re-record * Added restaurant sample * Some refactor * Refactor * Fix Py3.9 compatibility * Fix pylint * Fix pylint * Add codeowners
1 parent ebf29c4 commit 37034c4

File tree

380 files changed

+44880
-2
lines changed

Some content is hidden

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

380 files changed

+44880
-2
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exclude_lines =
2121
if headers:
2222
if response.status_code not in
2323
if TYPE_CHECKING:
24+
@overload
2425
omit =
2526
*/test*
2627
env*

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@
316316
# PRLabel: %Operator Nexus - Network Cloud
317317
/sdk/networkcloud/ @Azure/azure-sdk-write-networkcloud
318318

319+
# AzureSdkOwners: @annatisch
320+
# ServiceLabel: %Azure Projects
321+
# ServiceOwners: @annatisch
322+
323+
# PRLabel: %Azure Projects
324+
/sdk/projects/ @annatisch
325+
319326
# ServiceLabel: %Purview
320327
# PRLabel: %Purview
321328
/sdk/purview/ @saxenarahulMs @adyabansal-ms

.vscode/cspell.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
"sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_vendor/**",
106106
"sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/azure/eventhub/extensions/checkpointstoreblobaio/_vendor/**",
107107
"sdk/storage/azure-storage-extensions/**",
108+
"sdk/projects/azure-projects/tests/test_infra/**",
109+
"sdk/projects/azure-projects/samples/**/*.html",
110+
"sdk/projects/azure-projects/azure/projects/resources/**/types.py",
108111
"sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/**",
109112
"sdk/ml/azure-ai-ml/azure/ai/ml/_utils/_virtual_cluster_utils/_restclient/**",
110113
"sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/job_name_generator.py",
@@ -640,6 +643,46 @@
640643
"signin"
641644
]
642645
},
646+
{
647+
"filename": "sdk/projects/azure-projects/tests/**/*.py",
648+
"words": [
649+
"tofile",
650+
"rgtest",
651+
"rgexists",
652+
"rgtag",
653+
"kvtest",
654+
"testb",
655+
"sclient",
656+
"aclient"
657+
]
658+
},
659+
{
660+
"filename": "sdk/projects/azure-projects/**",
661+
"words": [
662+
"azproj",
663+
"azproject",
664+
"azprojects",
665+
"aiservices",
666+
"aifoundry",
667+
"mcpcommand",
668+
"fastmcp",
669+
"GUNICORN",
670+
"GZRS",
671+
"RAGZRS",
672+
"nfsv",
673+
"Eloqua",
674+
"Hdfs",
675+
"Informix",
676+
"Magento",
677+
"Netezza",
678+
"Odbc",
679+
"Serp",
680+
"Sybase",
681+
"Vertica",
682+
"Xero",
683+
"redef"
684+
]
685+
},
643686
{
644687
"filename": "sdk/tables/azure-data-tables/tests/**/*.py",
645688
"words": [
@@ -1385,7 +1428,7 @@
13851428
"cómo",
13861429
"estás",
13871430
"logprobs",
1388-
"conver",
1431+
"conver"
13891432
]
13901433
},
13911434
{
@@ -1416,7 +1459,7 @@
14161459
"nbformat",
14171460
"nbconvert",
14181461
"onedp",
1419-
"azureai",
1462+
"azureai"
14201463
]
14211464
},
14221465
{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Release History
2+
3+
[comment]: # (Change log guidance: https://azure.github.io/azure-sdk/policies_releases.html#changelog-guidance)
4+
5+
6+
## 0.0.1a1 (Unreleased)
7+
8+
### Features Added
9+
10+
- Projects package

sdk/projects/azure-projects/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include _meta.json
2+
include *.md
3+
include azure/__init__.py
4+
recursive-include tests *.py *.yaml
5+
recursive-include samples *.py
6+
include azure/projects/py.typed

sdk/projects/azure-projects/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# Azure Projects client library for Python
3+
4+
This template package matches necessary patterns that the development team has established to create a unified SDK. The packages contained herein can be installed singly or as part of the `azure` namespace. Any other introductory text should go here.
5+
6+
This package has been tested with Python 3.8+.
7+
8+
For a more complete set of Azure libraries, see https://aka.ms/azsdk/python/all.
9+
10+
# Getting started
11+
12+
For a rich example of a well formatted readme, please check [here.](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-TEMPLATE.md) In addition, this is an [example readme](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-EXAMPLE.md) that should be emulated. Note that the top-level sections in this template align with that of the [template.](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-TEMPLATE.md)
13+
14+
# Key concepts
15+
16+
Bullet point list of your library's main concepts.
17+
18+
# Examples
19+
20+
Examples of some of the key concepts for your library.
21+
22+
# Troubleshooting
23+
24+
Running into issues? This section should contain details as to what to do there.
25+
26+
# Next steps
27+
28+
More sample code should go here, along with links out to the appropriate example tests.
29+
30+
# Contributing
31+
32+
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.
33+
34+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftemplate%2Fazure-template%2FREADME.png)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
# --------------------------------------------------------------------------
6+
7+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
# --------------------------------------------------------------------------
6+
7+
from ._resource import Resource
8+
from ._provision import provision, export, deprovision, deploy
9+
from ._component import field, AzureInfrastructure, AzureApp
10+
from ._bicep.expressions import Parameter, MISSING
11+
from ._version import VERSION
12+
13+
14+
__version__ = VERSION
15+
__all__ = [
16+
"provision",
17+
"export",
18+
"deprovision",
19+
"deploy",
20+
"field",
21+
"Resource",
22+
"AzureInfrastructure",
23+
"AzureApp",
24+
"Parameter",
25+
"MISSING",
26+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)