Skip to content

Commit 1f5106d

Browse files
committed
Configurations: 'specification/education/resource-manager/Microsoft.Education/Education/tspconfig.yaml', API Version: 2021-12-01-preview, SDK Release Type: beta, and CommitSHA: 'd0beff06ece5e53277d93233b70d46b703346576' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6350982 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
1 parent 8c03c97 commit 1f5106d

93 files changed

Lines changed: 10150 additions & 7201 deletions

File tree

Some content is hidden

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

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

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

3+
## 1.0.0b3 (2026-05-26)
4+
5+
### Features Added
6+
7+
- Client `EducationManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `EducationManagementClient` added method `send_request`
9+
- Model `GrantDetails` added property `properties`
10+
- Model `JoinRequestDetails` added property `properties`
11+
- Model `LabDetails` added property `properties`
12+
- Model `StudentDetails` added property `properties`
13+
- Model `StudentLabDetails` added property `properties`
14+
- Added model `GrantDetailProperties`
15+
- Added model `JoinRequestProperties`
16+
- Added model `LabProperties`
17+
- Added model `ProxyResource`
18+
- Added model `StudentLabProperties`
19+
- Added model `StudentProperties`
20+
21+
### Breaking Changes
22+
23+
- Model `GrantDetails` deleted or renamed its instance variable `offer_cap`
24+
- Model `GrantDetails` deleted or renamed its instance variable `effective_date`
25+
- Model `GrantDetails` deleted or renamed its instance variable `offer_type`
26+
- Model `GrantDetails` deleted or renamed its instance variable `expiration_date`
27+
- Model `GrantDetails` deleted or renamed its instance variable `status`
28+
- Model `GrantDetails` deleted or renamed its instance variable `allocated_budget`
29+
- Model `JoinRequestDetails` deleted or renamed its instance variable `first_name`
30+
- Model `JoinRequestDetails` deleted or renamed its instance variable `last_name`
31+
- Model `JoinRequestDetails` deleted or renamed its instance variable `email`
32+
- Model `JoinRequestDetails` deleted or renamed its instance variable `status`
33+
- Model `LabDetails` deleted or renamed its instance variable `display_name`
34+
- Model `LabDetails` deleted or renamed its instance variable `budget_per_student`
35+
- Model `LabDetails` deleted or renamed its instance variable `description`
36+
- Model `LabDetails` deleted or renamed its instance variable `expiration_date`
37+
- Model `LabDetails` deleted or renamed its instance variable `effective_date`
38+
- Model `LabDetails` deleted or renamed its instance variable `status`
39+
- Model `LabDetails` deleted or renamed its instance variable `max_student_count`
40+
- Model `LabDetails` deleted or renamed its instance variable `invitation_code`
41+
- Model `LabDetails` deleted or renamed its instance variable `currency_properties_total_allocated_budget_currency`
42+
- Model `LabDetails` deleted or renamed its instance variable `value_properties_total_allocated_budget_value`
43+
- Model `LabDetails` deleted or renamed its instance variable `currency_properties_total_budget_currency`
44+
- Model `LabDetails` deleted or renamed its instance variable `value_properties_total_budget_value`
45+
- Model `StudentDetails` deleted or renamed its instance variable `first_name`
46+
- Model `StudentDetails` deleted or renamed its instance variable `last_name`
47+
- Model `StudentDetails` deleted or renamed its instance variable `email`
48+
- Model `StudentDetails` deleted or renamed its instance variable `role`
49+
- Model `StudentDetails` deleted or renamed its instance variable `budget`
50+
- Model `StudentDetails` deleted or renamed its instance variable `subscription_id`
51+
- Model `StudentDetails` deleted or renamed its instance variable `expiration_date`
52+
- Model `StudentDetails` deleted or renamed its instance variable `status`
53+
- Model `StudentDetails` deleted or renamed its instance variable `effective_date`
54+
- Model `StudentDetails` deleted or renamed its instance variable `subscription_alias`
55+
- Model `StudentDetails` deleted or renamed its instance variable `subscription_invite_last_sent_date`
56+
- Model `StudentLabDetails` deleted or renamed its instance variable `display_name`
57+
- Model `StudentLabDetails` deleted or renamed its instance variable `description`
58+
- Model `StudentLabDetails` deleted or renamed its instance variable `expiration_date`
59+
- Model `StudentLabDetails` deleted or renamed its instance variable `role`
60+
- Model `StudentLabDetails` deleted or renamed its instance variable `budget`
61+
- Model `StudentLabDetails` deleted or renamed its instance variable `subscription_id`
62+
- Model `StudentLabDetails` deleted or renamed its instance variable `status`
63+
- Model `StudentLabDetails` deleted or renamed its instance variable `effective_date`
64+
- Model `StudentLabDetails` deleted or renamed its instance variable `lab_scope`
65+
- Deleted or renamed model `GrantListResponse`
66+
- Deleted or renamed model `JoinRequestList`
67+
- Method `GrantsOperations.get` changed its parameter `include_allocated_budget` from `positional_or_keyword` to `keyword_only`
68+
- Method `GrantsOperations.list` changed its parameter `include_allocated_budget` from `positional_or_keyword` to `keyword_only`
69+
- Method `GrantsOperations.list_all` changed its parameter `include_allocated_budget` from `positional_or_keyword` to `keyword_only`
70+
- Method `JoinRequestsOperations.list` changed its parameter `include_denied` from `positional_or_keyword` to `keyword_only`
71+
- Method `LabsOperations.generate_invite_code` changed its parameter `only_update_student_count_parameter` from `positional_or_keyword` to `keyword_only`
72+
- Method `LabsOperations.get` changed its parameter `include_budget` from `positional_or_keyword` to `keyword_only`
73+
- Method `LabsOperations.list` changed its parameter `include_budget` from `positional_or_keyword` to `keyword_only`
74+
- Method `LabsOperations.list_all` changed its parameter `include_budget` from `positional_or_keyword` to `keyword_only`
75+
- Method `LabsOperations.list_all` changed its parameter `include_deleted` from `positional_or_keyword` to `keyword_only`
76+
- Method `StudentsOperations.list` changed its parameter `include_deleted` from `positional_or_keyword` to `keyword_only`
77+
- Deleted or renamed model `EducationManagementClientOperationsMixin`
78+
379
## 1.0.0b2 (2022-12-12)
480

581
### Other Changes
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/education/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,61 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Education Management Client Library.
4-
This package has been tested with Python 3.7+.
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_
88

99
_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_
1010

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

14-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17-
Code samples for this package can be found at [Education Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18-
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
15+
- Python 3.10+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
1917

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-education
22+
pip install azure-identity
23+
```
2224

23-
If you encounter any bugs or have suggestions, please file an issue in the
24-
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
25-
section of the project.
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
28+
29+
- `AZURE_CLIENT_ID` for Azure client ID.
30+
- `AZURE_TENANT_ID` for Azure tenant ID.
31+
- `AZURE_CLIENT_SECRET` for Azure client secret.
32+
33+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34+
35+
With above configuration, client can be authenticated by following code:
36+
37+
```python
38+
from azure.identity import DefaultAzureCredential
39+
from azure.mgmt.education import EducationManagementClient
40+
import os
2641

42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = EducationManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
2745

46+
## Examples
2847

48+
Code samples for this package can be found at:
49+
- [Search Education Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
58+
59+
If you encounter any bugs or have suggestions, please file an issue in the
60+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
61+
section of the project.

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

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"apiVersion": "2021-12-01-preview",
3+
"apiVersions": {
4+
"Microsoft.Education": "2021-12-01-preview"
5+
},
6+
"commit": "d0beff06ece5e53277d93233b70d46b703346576",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/education/resource-manager/Microsoft.Education/Education",
9+
"emitterVersion": "0.62.1"
10+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.Education",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.education.models.Amount": "Microsoft.Education.Amount",
5+
"azure.mgmt.education.models.ErrorResponse": "Microsoft.Education.ErrorResponse",
6+
"azure.mgmt.education.models.ErrorResponseBody": "Microsoft.Education.ErrorResponseBody",
7+
"azure.mgmt.education.models.GrantDetailProperties": "Microsoft.Education.GrantDetailProperties",
8+
"azure.mgmt.education.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
9+
"azure.mgmt.education.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
10+
"azure.mgmt.education.models.GrantDetails": "Microsoft.Education.GrantDetails",
11+
"azure.mgmt.education.models.InviteCodeGenerateRequest": "Microsoft.Education.InviteCodeGenerateRequest",
12+
"azure.mgmt.education.models.JoinRequestDetails": "Microsoft.Education.JoinRequestDetails",
13+
"azure.mgmt.education.models.JoinRequestProperties": "Microsoft.Education.JoinRequestProperties",
14+
"azure.mgmt.education.models.LabDetails": "Microsoft.Education.LabDetails",
15+
"azure.mgmt.education.models.LabProperties": "Microsoft.Education.LabProperties",
16+
"azure.mgmt.education.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
17+
"azure.mgmt.education.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
18+
"azure.mgmt.education.models.OperationListResult": "Azure.ResourceManager.CommonTypes.OperationListResult",
19+
"azure.mgmt.education.models.RedeemRequest": "Microsoft.Education.RedeemRequest",
20+
"azure.mgmt.education.models.StudentDetails": "Microsoft.Education.StudentDetails",
21+
"azure.mgmt.education.models.StudentLabDetails": "Microsoft.Education.StudentLabDetails",
22+
"azure.mgmt.education.models.StudentLabProperties": "Microsoft.Education.StudentLabProperties",
23+
"azure.mgmt.education.models.StudentProperties": "Microsoft.Education.StudentProperties",
24+
"azure.mgmt.education.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
25+
"azure.mgmt.education.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
26+
"azure.mgmt.education.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
27+
"azure.mgmt.education.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
28+
"azure.mgmt.education.models.GrantType": "Microsoft.Education.GrantType",
29+
"azure.mgmt.education.models.GrantStatus": "Microsoft.Education.GrantStatus",
30+
"azure.mgmt.education.models.LabStatus": "Microsoft.Education.LabStatus",
31+
"azure.mgmt.education.models.JoinRequestStatus": "Microsoft.Education.JoinRequestStatus",
32+
"azure.mgmt.education.models.StudentRole": "Microsoft.Education.StudentRole",
33+
"azure.mgmt.education.models.StudentLabStatus": "Microsoft.Education.StudentLabStatus",
34+
"azure.mgmt.education.operations.Operations.list": "Microsoft.Education.Operations.list",
35+
"azure.mgmt.education.aio.operations.Operations.list": "Microsoft.Education.Operations.list",
36+
"azure.mgmt.education.operations.GrantsOperations.get": "Microsoft.Education.Grants.get",
37+
"azure.mgmt.education.aio.operations.GrantsOperations.get": "Microsoft.Education.Grants.get",
38+
"azure.mgmt.education.operations.GrantsOperations.list": "Microsoft.Education.Grants.list",
39+
"azure.mgmt.education.aio.operations.GrantsOperations.list": "Microsoft.Education.Grants.list",
40+
"azure.mgmt.education.operations.GrantsOperations.list_all": "Microsoft.Education.Grants.listAll",
41+
"azure.mgmt.education.aio.operations.GrantsOperations.list_all": "Microsoft.Education.Grants.listAll",
42+
"azure.mgmt.education.operations.LabsOperations.get": "Microsoft.Education.Labs.get",
43+
"azure.mgmt.education.aio.operations.LabsOperations.get": "Microsoft.Education.Labs.get",
44+
"azure.mgmt.education.operations.LabsOperations.create_or_update": "Microsoft.Education.Labs.createOrUpdate",
45+
"azure.mgmt.education.aio.operations.LabsOperations.create_or_update": "Microsoft.Education.Labs.createOrUpdate",
46+
"azure.mgmt.education.operations.LabsOperations.delete": "Microsoft.Education.Labs.delete",
47+
"azure.mgmt.education.aio.operations.LabsOperations.delete": "Microsoft.Education.Labs.delete",
48+
"azure.mgmt.education.operations.LabsOperations.list": "Microsoft.Education.Labs.list",
49+
"azure.mgmt.education.aio.operations.LabsOperations.list": "Microsoft.Education.Labs.list",
50+
"azure.mgmt.education.operations.LabsOperations.list_all": "Microsoft.Education.Labs.listAll",
51+
"azure.mgmt.education.aio.operations.LabsOperations.list_all": "Microsoft.Education.Labs.listAll",
52+
"azure.mgmt.education.operations.LabsOperations.generate_invite_code": "Microsoft.Education.Labs.generateInviteCode",
53+
"azure.mgmt.education.aio.operations.LabsOperations.generate_invite_code": "Microsoft.Education.Labs.generateInviteCode",
54+
"azure.mgmt.education.operations.JoinRequestsOperations.get": "Microsoft.Education.JoinRequests.get",
55+
"azure.mgmt.education.aio.operations.JoinRequestsOperations.get": "Microsoft.Education.JoinRequests.get",
56+
"azure.mgmt.education.operations.JoinRequestsOperations.list": "Microsoft.Education.JoinRequests.list",
57+
"azure.mgmt.education.aio.operations.JoinRequestsOperations.list": "Microsoft.Education.JoinRequests.list",
58+
"azure.mgmt.education.operations.JoinRequestsOperations.approve": "Microsoft.Education.JoinRequests.approve",
59+
"azure.mgmt.education.aio.operations.JoinRequestsOperations.approve": "Microsoft.Education.JoinRequests.approve",
60+
"azure.mgmt.education.operations.JoinRequestsOperations.deny": "Microsoft.Education.JoinRequests.deny",
61+
"azure.mgmt.education.aio.operations.JoinRequestsOperations.deny": "Microsoft.Education.JoinRequests.deny",
62+
"azure.mgmt.education.operations.StudentsOperations.get": "Microsoft.Education.Students.get",
63+
"azure.mgmt.education.aio.operations.StudentsOperations.get": "Microsoft.Education.Students.get",
64+
"azure.mgmt.education.operations.StudentsOperations.create_or_update": "Microsoft.Education.Students.createOrUpdate",
65+
"azure.mgmt.education.aio.operations.StudentsOperations.create_or_update": "Microsoft.Education.Students.createOrUpdate",
66+
"azure.mgmt.education.operations.StudentsOperations.delete": "Microsoft.Education.Students.delete",
67+
"azure.mgmt.education.aio.operations.StudentsOperations.delete": "Microsoft.Education.Students.delete",
68+
"azure.mgmt.education.operations.StudentsOperations.list": "Microsoft.Education.Students.list",
69+
"azure.mgmt.education.aio.operations.StudentsOperations.list": "Microsoft.Education.Students.list",
70+
"azure.mgmt.education.operations.StudentLabsOperations.get": "Microsoft.Education.StudentLabs.get",
71+
"azure.mgmt.education.aio.operations.StudentLabsOperations.get": "Microsoft.Education.StudentLabs.get",
72+
"azure.mgmt.education.operations.StudentLabsOperations.list_all": "Microsoft.Education.StudentLabs.listAll",
73+
"azure.mgmt.education.aio.operations.StudentLabsOperations.list_all": "Microsoft.Education.StudentLabs.listAll",
74+
"azure.mgmt.education.EducationManagementClient.redeem_invitation_code": "Microsoft.Education.redeemInvitationCode",
75+
"azure.mgmt.education.aio.EducationManagementClient.redeem_invitation_code": "Microsoft.Education.redeemInvitationCode"
76+
},
77+
"CrossLanguageVersion": "d04552184b93"
78+
}
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/education/azure-mgmt-education/azure/mgmt/education/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._education_management_client import EducationManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import EducationManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"EducationManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

0 commit comments

Comments
 (0)