Skip to content

Commit

Permalink
CodeGen from PR 19416 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[OperationalInsights] workspace and component purge  (Azure#19416)

* Add blockchain to latest profile

* Add additional types

* Purge update

* bad syntax fix for workspacePurge examples

* pretty

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
  • Loading branch information
SDKAuto and markcowl committed Jul 1, 2022
1 parent 3a56459 commit 20cf00d
Show file tree
Hide file tree
Showing 61 changed files with 5,701 additions and 3,212 deletions.
6 changes: 3 additions & 3 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.12.0",
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "b52f90085693d0ec65f751e30c65c3a878c340ea",
"commit": "1ddabd9234338d209f9755beac5c13cc0ae3b5f7",
"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 --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.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 @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['LogAnalyticsManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._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
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from azure.core.credentials import TokenCredential


class LogAnalyticsManagementClientConfiguration(Configuration):
class LogAnalyticsManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for LogAnalyticsManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, Optional, TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

from . import models
from ._configuration import LogAnalyticsManagementClientConfiguration
Expand All @@ -21,7 +22,7 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential

class LogAnalyticsManagementClient:
class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attributes
"""Operational Insights Client.
:ivar query_packs: QueryPacksOperations operations
Expand Down Expand Up @@ -75,7 +76,7 @@ class LogAnalyticsManagementClient:
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param base_url: Service URL. Default value is 'https://management.azure.com'.
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand All @@ -95,33 +96,77 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.query_packs = QueryPacksOperations(self._client, self._config, self._serialize, self._deserialize)
self.queries = QueriesOperations(self._client, self._config, self._serialize, self._deserialize)
self.data_exports = DataExportsOperations(self._client, self._config, self._serialize, self._deserialize)
self.data_sources = DataSourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.intelligence_packs = IntelligencePacksOperations(self._client, self._config, self._serialize, self._deserialize)
self.linked_services = LinkedServicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.linked_storage_accounts = LinkedStorageAccountsOperations(self._client, self._config, self._serialize, self._deserialize)
self.management_groups = ManagementGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operation_statuses = OperationStatusesOperations(self._client, self._config, self._serialize, self._deserialize)
self.shared_keys = SharedKeysOperations(self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.storage_insight_configs = StorageInsightConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
self.saved_searches = SavedSearchesOperations(self._client, self._config, self._serialize, self._deserialize)
self.available_service_tiers = AvailableServiceTiersOperations(self._client, self._config, self._serialize, self._deserialize)
self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize)
self.schema = SchemaOperations(self._client, self._config, self._serialize, self._deserialize)
self.workspace_purge = WorkspacePurgeOperations(self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.deleted_workspaces = DeletedWorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.tables = TablesOperations(self._client, self._config, self._serialize, self._deserialize)
self.query_packs = QueryPacksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.queries = QueriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.data_exports = DataExportsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.data_sources = DataSourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.intelligence_packs = IntelligencePacksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.linked_services = LinkedServicesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.linked_storage_accounts = LinkedStorageAccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.management_groups = ManagementGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operation_statuses = OperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.shared_keys = SharedKeysOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.usages = UsagesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.storage_insight_configs = StorageInsightConfigsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.saved_searches = SavedSearchesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.available_service_tiers = AvailableServiceTiersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.gateways = GatewaysOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.schema = SchemaOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.workspace_purge = WorkspacePurgeOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.workspaces = WorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.deleted_workspaces = DeletedWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.tables = TablesOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
self,
request, # type: HttpRequest
request: HttpRequest,
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down

This file was deleted.

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.0b4"
VERSION = "7.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._log_analytics_management_client import LogAnalyticsManagementClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['LogAnalyticsManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._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
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from azure.core.credentials_async import AsyncTokenCredential


class LogAnalyticsManagementClientConfiguration(Configuration):
class LogAnalyticsManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for LogAnalyticsManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand Down
Loading

0 comments on commit 20cf00d

Please sign in to comment.