Skip to content

Commit

Permalink
CodeGen from PR 32845 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 755c957da51f3e807589bcf36eb72de3a248a9c6 into c39f72c162b0ca345a4745cdfc9a1e276a725d5d
  • Loading branch information
SDKAuto committed Feb 27, 2025
1 parent 8694c6d commit b3439b5
Show file tree
Hide file tree
Showing 158 changed files with 1,045 additions and 839 deletions.
6 changes: 3 additions & 3 deletions sdk/elastic/azure-mgmt-elastic/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "6c709e5a3325eaa862649acee2252ce1c8166042",
"commit": "1d5c026560a8fe7fc6835b1748ec919aa1b09604",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/elastic/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/elastic/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/elastic/resource-manager/readme.md"
}
12 changes: 9 additions & 3 deletions sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._microsoft_elastic import MicrosoftElastic
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._microsoft_elastic import MicrosoftElastic # type: ignore
from ._version import VERSION

__version__ = VERSION

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

__all__ = [
"MicrosoftElastic",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for MicrosoftElastic.
Note that all parameters used to create this instance are saved as instance
Expand All @@ -28,13 +27,13 @@ class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attrib
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-06-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2025-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-06-15-preview")
api_version: str = kwargs.pop("api_version", "2025-01-15-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class MicrosoftElastic: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class MicrosoftElastic: # pylint: disable=too-many-instance-attributes
"""MicrosoftElastic.
:ivar operations: Operations operations
Expand Down Expand Up @@ -117,7 +116,7 @@ class MicrosoftElastic: # pylint: disable=client-accepts-api-version-keyword,to
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-06-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2025-01-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Loading

0 comments on commit b3439b5

Please sign in to comment.