Skip to content

Commit

Permalink
CodeGen from PR 18615 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0b169614a9564fd7e7b6483120c83bfb42b0ca68 into 14007e94fb70fa6b401deba1c4b16f9fba71340b
  • Loading branch information
SDKAuto committed Apr 8, 2022
1 parent ecc852e commit e72c6ee
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "e7d2d8c48cf6f8f63de7e252c467930449b5fd88",
"commit": "555d76f465a1f4afd7e4e11cb21b67dff7ace6dd",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/operationalinsights/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/operationalinsights/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/operationalinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._operational_insights_management_client import OperationalInsightsManagementClient
from ._log_analytics_management_client import LogAnalyticsManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['OperationalInsightsManagementClient']
__all__ = ['LogAnalyticsManagementClient']

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from azure.core.credentials import TokenCredential


class OperationalInsightsManagementClientConfiguration(Configuration):
"""Configuration for OperationalInsightsManagementClient.
class LogAnalyticsManagementClientConfiguration(Configuration):
"""Configuration for LogAnalyticsManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -37,7 +37,7 @@ def __init__(
subscription_id: str,
**kwargs: Any
) -> None:
super(OperationalInsightsManagementClientConfiguration, self).__init__(**kwargs)
super(LogAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
from msrest import Deserializer, Serializer

from . import models
from ._configuration import OperationalInsightsManagementClientConfiguration
from ._configuration import LogAnalyticsManagementClientConfiguration
from .operations import AvailableServiceTiersOperations, ClustersOperations, DataExportsOperations, DataSourcesOperations, DeletedWorkspacesOperations, GatewaysOperations, IntelligencePacksOperations, LinkedServicesOperations, LinkedStorageAccountsOperations, ManagementGroupsOperations, OperationStatusesOperations, Operations, QueriesOperations, QueryPacksOperations, SavedSearchesOperations, SchemaOperations, SharedKeysOperations, StorageInsightConfigsOperations, TablesOperations, UsagesOperations, WorkspacePurgeOperations, WorkspacesOperations

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

class OperationalInsightsManagementClient:
class LogAnalyticsManagementClient:
"""Operational Insights Client.
:ivar query_packs: QueryPacksOperations operations
Expand Down Expand Up @@ -88,7 +88,7 @@ def __init__(
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = OperationalInsightsManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._config = LogAnalyticsManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand Down Expand Up @@ -150,7 +150,7 @@ def close(self):
self._client.close()

def __enter__(self):
# type: () -> OperationalInsightsManagementClient
# type: () -> LogAnalyticsManagementClient
self._client.__enter__()
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"chosen_version": "",
"total_api_version_list": ["2019-09-01", "2020-08-01", "2021-06-01", "2021-12-01-preview"],
"client": {
"name": "OperationalInsightsManagementClient",
"filename": "_operational_insights_management_client",
"name": "LogAnalyticsManagementClient",
"filename": "_log_analytics_management_client",
"description": "Operational Insights Client.",
"host_value": "\"https://management.azure.com\"",
"parameterized_host_template": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"OperationalInsightsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"OperationalInsightsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "13.0.0b3"
VERSION = "7.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._operational_insights_management_client import OperationalInsightsManagementClient
__all__ = ['OperationalInsightsManagementClient']
from ._log_analytics_management_client import LogAnalyticsManagementClient
__all__ = ['LogAnalyticsManagementClient']

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from azure.core.credentials_async import AsyncTokenCredential


class OperationalInsightsManagementClientConfiguration(Configuration):
"""Configuration for OperationalInsightsManagementClient.
class LogAnalyticsManagementClientConfiguration(Configuration):
"""Configuration for LogAnalyticsManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -37,7 +37,7 @@ def __init__(
subscription_id: str,
**kwargs: Any
) -> None:
super(OperationalInsightsManagementClientConfiguration, self).__init__(**kwargs)
super(LogAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
from msrest import Deserializer, Serializer

from .. import models
from ._configuration import OperationalInsightsManagementClientConfiguration
from ._configuration import LogAnalyticsManagementClientConfiguration
from .operations import AvailableServiceTiersOperations, ClustersOperations, DataExportsOperations, DataSourcesOperations, DeletedWorkspacesOperations, GatewaysOperations, IntelligencePacksOperations, LinkedServicesOperations, LinkedStorageAccountsOperations, ManagementGroupsOperations, OperationStatusesOperations, Operations, QueriesOperations, QueryPacksOperations, SavedSearchesOperations, SchemaOperations, SharedKeysOperations, StorageInsightConfigsOperations, TablesOperations, UsagesOperations, WorkspacePurgeOperations, WorkspacesOperations

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

class OperationalInsightsManagementClient:
class LogAnalyticsManagementClient:
"""Operational Insights Client.
:ivar query_packs: QueryPacksOperations operations
Expand Down Expand Up @@ -88,7 +88,7 @@ def __init__(
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = OperationalInsightsManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._config = LogAnalyticsManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand Down Expand Up @@ -148,7 +148,7 @@ def _send_request(
async def close(self) -> None:
await self._client.close()

async def __aenter__(self) -> "OperationalInsightsManagementClient":
async def __aenter__(self) -> "LogAnalyticsManagementClient":
await self._client.__aenter__()
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
from ._models_py3 import WorkspaceSku


from ._operational_insights_management_client_enums import (
from ._log_analytics_management_client_enums import (
BillingType,
Capacity,
CapacityReservationLevel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from azure.core.exceptions import HttpResponseError
import msrest.serialization

from ._operational_insights_management_client_enums import *
from ._log_analytics_management_client_enums import *


class AssociatedWorkspace(msrest.serialization.Model):
Expand Down

0 comments on commit e72c6ee

Please sign in to comment.