Skip to content

Commit 0ec6e94

Browse files
authored
Regenerate azure-mgmt-marketplaceordering with latest code generator tool (#46944)
1 parent 9fda9b8 commit 0ec6e94

45 files changed

Lines changed: 789 additions & 570 deletions

Some content is hidden

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

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

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

3+
## 1.1.1 (2026-05-18)
4+
5+
### Other Changes
6+
7+
- Regenerated with latest code generator tool
8+
39
## 1.2.0b2 (2024-11-05)
410

511
### 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/marketplaceordering/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/marketplaceordering/azure-mgmt-marketplaceordering/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 Market Place Ordering Client Library.
4-
This package has been tested with Python 3.8+.
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_
@@ -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.10+ 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.

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

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commit": "736baa6d7d8bec3c6aaf1f16e77e78846eda4871",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.10.2",
5+
"use": [
6+
"@autorest/python@6.50.0",
7+
"@autorest/modelerfour@4.27.0"
8+
],
9+
"autorest_command": "autorest specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/MarketplaceOrdering/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=C:\\dev\\azure-sdk-for-python\\sdk --tag=package-2021-01-01 --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10+
"readme": "specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/MarketplaceOrdering/readme.md"
11+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.marketplaceordering.models.Resource": null,
5+
"azure.mgmt.marketplaceordering.models.AgreementTerms": null,
6+
"azure.mgmt.marketplaceordering.models.ErrorResponse": null,
7+
"azure.mgmt.marketplaceordering.models.ErrorResponseError": null,
8+
"azure.mgmt.marketplaceordering.models.OldAgreementTerms": null,
9+
"azure.mgmt.marketplaceordering.models.OldAgreementTermsList": null,
10+
"azure.mgmt.marketplaceordering.models.Operation": null,
11+
"azure.mgmt.marketplaceordering.models.OperationDisplay": null,
12+
"azure.mgmt.marketplaceordering.models.OperationListResult": null,
13+
"azure.mgmt.marketplaceordering.models.SystemData": null,
14+
"azure.mgmt.marketplaceordering.models.State": null,
15+
"azure.mgmt.marketplaceordering.models.OfferType": null,
16+
"azure.mgmt.marketplaceordering.models.CreatedByType": null,
17+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.get": null,
18+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.get": null,
19+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.create": null,
20+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.create": null,
21+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.sign": null,
22+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.sign": null,
23+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.cancel": null,
24+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.cancel": null,
25+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.get_agreement": null,
26+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.get_agreement": null,
27+
"azure.mgmt.marketplaceordering.operations.MarketplaceAgreementsOperations.list": null,
28+
"azure.mgmt.marketplaceordering.aio.operations.MarketplaceAgreementsOperations.list": null,
29+
"azure.mgmt.marketplaceordering.operations.Operations.list": null,
30+
"azure.mgmt.marketplaceordering.aio.operations.Operations.list": null
31+
}
32+
}
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/marketplaceordering/azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest 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 ._marketplace_ordering_agreements import MarketplaceOrderingAgreements
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._marketplace_ordering_agreements import MarketplaceOrderingAgreements # 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
"MarketplaceOrderingAgreements",
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()

sdk/marketplaceordering/azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/_configuration.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core import AzureClouds
1818
from azure.core.credentials import TokenCredential
1919

2020

@@ -28,12 +28,21 @@ class MarketplaceOrderingAgreementsConfiguration: # pylint: disable=too-many-in
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
3030
:type subscription_id: str
31+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
32+
None.
33+
:type cloud_setting: ~azure.core.AzureClouds
3134
:keyword api_version: Api Version. Default value is "2021-01-01". Note that overriding this
3235
default value may result in unsupported behavior.
3336
:paramtype api_version: str
3437
"""
3538

36-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
39+
def __init__(
40+
self,
41+
credential: "TokenCredential",
42+
subscription_id: str,
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
3746
api_version: str = kwargs.pop("api_version", "2021-01-01")
3847

3948
if credential is None:
@@ -43,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4352

4453
self.credential = credential
4554
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
4656
self.api_version = api_version
4757
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4858
kwargs.setdefault("sdk_moniker", "mgmt-marketplaceordering/{}".format(VERSION))

0 commit comments

Comments
 (0)