Skip to content

Commit 0cfd4d6

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge c5c31b0506df39bc9e78f53a9678914719c1964d into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 6c30600 commit 0cfd4d6

Some content is hidden

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

48 files changed

+5593
-3893
lines changed
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.0 (2025-05-13)
4+
5+
### Features Added
6+
7+
- Client `AstroMgmtClient` added method `send_request`
8+
- Enum `ManagedServiceIdentityType` added member `SYSTEM_AND_USER_ASSIGNED`
9+
- Model `OrganizationResourceUpdateProperties` added property `marketplace`
10+
- Added model `ManagedServiceIdentityV4`
11+
- Added model `MarketplaceDetails`
12+
- Added model `OfferDetails`
13+
- Added model `OrganizationProperties`
14+
- Added model `PartnerOrganizationProperties`
15+
- Added enum `RenewalMode`
16+
- Added model `SingleSignOnProperties`
17+
- Added model `UserDetails`
18+
- Method `ErrorResponse.__init__` has a new overload `def __init__(self: None, error: Optional[_models.ErrorDetail])`
19+
- Method `ErrorResponse.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
20+
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
21+
- Method `Operation.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
22+
- Method `OrganizationResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]], properties: Optional[_models.OrganizationProperties], identity: Optional[_models.ManagedServiceIdentityV4])`
23+
- Method `OrganizationResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
24+
- Method `OrganizationResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
25+
- Method `OrganizationResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
26+
- Method `OrganizationResourceUpdate.__init__` has a new overload `def __init__(self: None, identity: Optional[_models.ManagedServiceIdentityV4], tags: Optional[Dict[str, str]], properties: Optional[_models.OrganizationResourceUpdateProperties])`
27+
- Method `OrganizationResourceUpdate.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
28+
- Method `OrganizationResourceUpdateProperties.__init__` has a new overload `def __init__(self: None, marketplace: Optional[_models.MarketplaceDetails], user: Optional[_models.UserDetails], partner_organization_properties: Optional[_models.PartnerOrganizationProperties])`
29+
- Method `OrganizationResourceUpdateProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
30+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, created_by: Optional[str], created_by_type: Optional[Union[str, _models.CreatedByType]], created_at: Optional[datetime], last_modified_by: Optional[str], last_modified_by_type: Optional[Union[str, _models.CreatedByType]], last_modified_at: Optional[datetime])`
31+
- Method `SystemData.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
32+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, location: str, tags: Optional[Dict[str, str]])`
33+
- Method `TrackedResource.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
34+
- Method `ManagedServiceIdentityV4.__init__` has a new overload `def __init__(self: None, type: Union[str, _models.ManagedServiceIdentityType], user_assigned_identities: Optional[Dict[str, _models.UserAssignedIdentity]])`
35+
- Method `ManagedServiceIdentityV4.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
36+
- Method `MarketplaceDetails.__init__` has a new overload `def __init__(self: None, offer_details: _models.OfferDetails, subscription_id: Optional[str], subscription_status: Optional[Union[str, _models.MarketplaceSubscriptionStatus]])`
37+
- Method `MarketplaceDetails.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
38+
- Method `OfferDetails.__init__` has a new overload `def __init__(self: None, publisher_id: str, offer_id: str, plan_id: str, plan_name: Optional[str], term_unit: Optional[str], term_id: Optional[str], renewal_mode: Optional[Union[str, _models.RenewalMode]])`
39+
- Method `OfferDetails.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
40+
- Method `OrganizationProperties.__init__` has a new overload `def __init__(self: None, marketplace: _models.MarketplaceDetails, user: _models.UserDetails, partner_organization_properties: Optional[_models.PartnerOrganizationProperties])`
41+
- Method `OrganizationProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
42+
- Method `PartnerOrganizationProperties.__init__` has a new overload `def __init__(self: None, organization_name: str, organization_id: Optional[str], workspace_id: Optional[str], workspace_name: Optional[str], single_sign_on_properties: Optional[_models.SingleSignOnProperties])`
43+
- Method `PartnerOrganizationProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
44+
- Method `SingleSignOnProperties.__init__` has a new overload `def __init__(self: None, single_sign_on_state: Optional[Union[str, _models.SingleSignOnStates]], enterprise_app_id: Optional[str], single_sign_on_url: Optional[str], aad_domains: Optional[List[str]])`
45+
- Method `SingleSignOnProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
46+
- Method `UserDetails.__init__` has a new overload `def __init__(self: None, first_name: str, last_name: str, email_address: str, upn: Optional[str], phone_number: Optional[str])`
47+
- Method `UserDetails.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
48+
- Method `OrganizationsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, organization_name: str, resource: IO[bytes], content_type: str)`
49+
- Method `OrganizationsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, organization_name: str, resource: JSON, content_type: str)`
50+
- Method `OrganizationsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, organization_name: str, properties: IO[bytes], content_type: str)`
51+
- Method `OrganizationsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, organization_name: str, properties: JSON, content_type: str)`
52+
53+
### Breaking Changes
54+
55+
- Model `ErrorAdditionalInfo` deleted or renamed its instance variable `additional_properties`
56+
- Model `ErrorDetail` deleted or renamed its instance variable `additional_properties`
57+
- Model `ErrorResponse` deleted or renamed its instance variable `additional_properties`
58+
- Deleted or renamed enum value `ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED`
59+
- Model `Operation` deleted or renamed its instance variable `additional_properties`
60+
- Model `OperationDisplay` deleted or renamed its instance variable `additional_properties`
61+
- Model `OrganizationResource` deleted or renamed its instance variable `additional_properties`
62+
- Model `OrganizationResourceUpdate` deleted or renamed its instance variable `additional_properties`
63+
- Model `OrganizationResourceUpdateProperties` deleted or renamed its instance variable `additional_properties`
64+
- Model `Resource` deleted or renamed its instance variable `additional_properties`
65+
- Model `SystemData` deleted or renamed its instance variable `additional_properties`
66+
- Model `TrackedResource` deleted or renamed its instance variable `additional_properties`
67+
- Model `UserAssignedIdentity` deleted or renamed its instance variable `additional_properties`
68+
- Deleted or renamed model `LiftrBaseDataOrganizationProperties`
69+
- Deleted or renamed model `LiftrBaseDataPartnerOrganizationProperties`
70+
- Deleted or renamed model `LiftrBaseDataPartnerOrganizationPropertiesUpdate`
71+
- Deleted or renamed model `LiftrBaseMarketplaceDetails`
72+
- Deleted or renamed model `LiftrBaseOfferDetails`
73+
- Deleted or renamed model `LiftrBaseSingleSignOnProperties`
74+
- Deleted or renamed model `LiftrBaseUserDetails`
75+
- Deleted or renamed model `LiftrBaseUserDetailsUpdate`
76+
- Deleted or renamed model `ManagedServiceIdentity`
77+
- Deleted or renamed model `Versions`
78+
379
## 1.0.0b1 (2024-02-22)
480

581
* Initial Release

sdk/astro/azure-mgmt-astro/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

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

1313
### Prerequisites
1414

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

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
"commit": "8bf9ff0986adb3b37755d8b0a0dfab93906d2eab",
2+
"commit": "079f70d6f2b754db6b736e117196104efd2dd496",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
5-
"use": [
6-
"@autorest/[email protected]",
7-
"@autorest/[email protected]"
8-
],
9-
"autorest_command": "autorest specification/liftrastronomer/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
10-
"readme": "specification/liftrastronomer/resource-manager/readme.md"
4+
"typespec_src": "specification/liftrastronomer/Astronomer.Astro.Management",
5+
"@azure-tools/typespec-python": "0.44.2"
116
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"CrossLanguagePackageId": "Astronomer.Astro",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.astro.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
5+
"azure.mgmt.astro.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
6+
"azure.mgmt.astro.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
7+
"azure.mgmt.astro.models.ManagedServiceIdentityV4": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4",
8+
"azure.mgmt.astro.models.MarketplaceDetails": "LiftrBase.MarketplaceDetails",
9+
"azure.mgmt.astro.models.OfferDetails": "LiftrBase.OfferDetails",
10+
"azure.mgmt.astro.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
11+
"azure.mgmt.astro.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
12+
"azure.mgmt.astro.models.OrganizationProperties": "LiftrBase.Data.OrganizationProperties",
13+
"azure.mgmt.astro.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
14+
"azure.mgmt.astro.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
15+
"azure.mgmt.astro.models.OrganizationResource": "Astronomer.Astro.OrganizationResource",
16+
"azure.mgmt.astro.models.OrganizationResourceUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
17+
"azure.mgmt.astro.models.OrganizationResourceUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
18+
"azure.mgmt.astro.models.PartnerOrganizationProperties": "LiftrBase.Data.PartnerOrganizationProperties",
19+
"azure.mgmt.astro.models.SingleSignOnProperties": "LiftrBase.SingleSignOnProperties",
20+
"azure.mgmt.astro.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
21+
"azure.mgmt.astro.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
22+
"azure.mgmt.astro.models.UserDetails": "LiftrBase.UserDetails",
23+
"azure.mgmt.astro.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
24+
"azure.mgmt.astro.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
25+
"azure.mgmt.astro.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
26+
"azure.mgmt.astro.models.MarketplaceSubscriptionStatus": "LiftrBase.MarketplaceSubscriptionStatus",
27+
"azure.mgmt.astro.models.RenewalMode": "LiftrBase.RenewalMode",
28+
"azure.mgmt.astro.models.ResourceProvisioningState": "Azure.ResourceManager.ResourceProvisioningState",
29+
"azure.mgmt.astro.models.SingleSignOnStates": "LiftrBase.SingleSignOnStates",
30+
"azure.mgmt.astro.models.ManagedServiceIdentityType": "Azure.ResourceManager.Legacy.ManagedServiceIdentityType",
31+
"azure.mgmt.astro.operations.Operations.list": "Azure.ResourceManager.Operations.list",
32+
"azure.mgmt.astro.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
33+
"azure.mgmt.astro.operations.OrganizationsOperations.get": "Astronomer.Astro.Organizations.get",
34+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.get": "Astronomer.Astro.Organizations.get",
35+
"azure.mgmt.astro.operations.OrganizationsOperations.begin_create_or_update": "Astronomer.Astro.Organizations.createOrUpdate",
36+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.begin_create_or_update": "Astronomer.Astro.Organizations.createOrUpdate",
37+
"azure.mgmt.astro.operations.OrganizationsOperations.begin_update": "Astronomer.Astro.Organizations.update",
38+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.begin_update": "Astronomer.Astro.Organizations.update",
39+
"azure.mgmt.astro.operations.OrganizationsOperations.begin_delete": "Astronomer.Astro.Organizations.delete",
40+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.begin_delete": "Astronomer.Astro.Organizations.delete",
41+
"azure.mgmt.astro.operations.OrganizationsOperations.list_by_resource_group": "Astronomer.Astro.Organizations.listByResourceGroup",
42+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.list_by_resource_group": "Astronomer.Astro.Organizations.listByResourceGroup",
43+
"azure.mgmt.astro.operations.OrganizationsOperations.list_by_subscription": "Astronomer.Astro.Organizations.listBySubscription",
44+
"azure.mgmt.astro.aio.operations.OrganizationsOperations.list_by_subscription": "Astronomer.Astro.Organizations.listBySubscription"
45+
}
46+
}

sdk/astro/azure-mgmt-astro/azure/mgmt/astro/__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 ._astro_mgmt_client import AstroMgmtClient
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 AstroMgmtClient # 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
"AstroMgmtClient",
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)