Skip to content

[AutoPR azure-mgmt-loganalytics] fix swagger #11811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,160 @@
# Release History

## 13.0.0 (2025-05-09)

### Features Added

- Client `LogAnalyticsManagementClient` added operation group `queries`
- Client `LogAnalyticsManagementClient` added operation group `query_packs`
- Enum `Capacity` added member `FIFTY_THOUSAND`
- Enum `Capacity` added member `FOUR_HUNDRED`
- Enum `Capacity` added member `ONE_HUNDRED`
- Enum `Capacity` added member `TEN_THOUSAND`
- Enum `Capacity` added member `THREE_HUNDRED`
- Enum `Capacity` added member `TWENTY_FIVE_THOUSAND`
- Enum `Capacity` added member `TWO_HUNDRED`
- Enum `CapacityReservationLevel` added member `FIFTY_THOUSAND`
- Enum `CapacityReservationLevel` added member `TEN_THOUSAND`
- Enum `CapacityReservationLevel` added member `TWENTY_FIVE_THOUSAND`
- Model `Cluster` added property `replication`
- Enum `DataSourceType` added member `INGESTION`
- Model `Table` added property `system_data`
- Model `Table` added property `total_retention_in_days`
- Model `Table` added property `archive_retention_in_days`
- Model `Table` added property `search_results`
- Model `Table` added property `restored_logs`
- Model `Table` added property `result_statistics`
- Model `Table` added property `plan`
- Model `Table` added property `last_plan_modified_date`
- Model `Table` added property `schema`
- Model `Table` added property `provisioning_state`
- Model `Table` added property `retention_in_days_as_default`
- Model `Table` added property `total_retention_in_days_as_default`
- Model `Workspace` added property `identity`
- Model `Workspace` added property `system_data`
- Model `Workspace` added property `etag`
- Model `Workspace` added property `default_data_collection_rule_resource_id`
- Model `Workspace` added property `replication`
- Model `Workspace` added property `failover`
- Model `WorkspaceFeatures` added property `unified_sentinel_billing_only`
- Model `WorkspacePatch` added property `identity`
- Model `WorkspacePatch` added property `default_data_collection_rule_resource_id`
- Model `WorkspacePatch` added property `replication`
- Model `WorkspacePatch` added property `failover`
- Added model `ClusterReplicationProperties`
- Added enum `ClusterReplicationState`
- Added model `Column`
- Added enum `ColumnDataTypeHintEnum`
- Added enum `ColumnTypeEnum`
- Added enum `CreatedByType`
- Added model `ErrorDetailAutoGenerated`
- Added model `ErrorResponseAutoGenerated`
- Added model `LogAnalyticsQueryPack`
- Added model `LogAnalyticsQueryPackListResult`
- Added model `LogAnalyticsQueryPackQuery`
- Added model `LogAnalyticsQueryPackQueryListResult`
- Added model `LogAnalyticsQueryPackQueryPropertiesRelated`
- Added model `LogAnalyticsQueryPackQuerySearchProperties`
- Added model `LogAnalyticsQueryPackQuerySearchPropertiesRelated`
- Added model `ManagedServiceIdentity`
- Added enum `ManagedServiceIdentityType`
- Added enum `ProvisioningStateEnum`
- Added model `ProxyResourceAutoGenerated`
- Added model `ResourceAutoGenerated`
- Added model `RestoredLogs`
- Added model `ResultStatistics`
- Added model `Schema`
- Added model `SearchResults`
- Added enum `SourceEnum`
- Added model `SystemData`
- Added enum `TablePlanEnum`
- Added enum `TableSubTypeEnum`
- Added enum `TableTypeEnum`
- Added model `TagsResource`
- Added model `TrackedResourceAutoGenerated`
- Added model `UserAssignedIdentity`
- Added model `WorkspaceFailoverProperties`
- Added enum `WorkspaceFailoverState`
- Added model `WorkspaceReplicationPatProperties`
- Added model `WorkspaceReplicationProperties`
- Added enum `WorkspaceReplicationState`
- Model `AvailableServiceTiersOperations` added parameter `kwargs` in method `__init__`
- Model `ClustersOperations` added parameter `kwargs` in method `__init__`
- Model `DataExportsOperations` added parameter `kwargs` in method `__init__`
- Model `DataSourcesOperations` added parameter `kwargs` in method `__init__`
- Model `DeletedWorkspacesOperations` added parameter `kwargs` in method `__init__`
- Model `GatewaysOperations` added parameter `kwargs` in method `__init__`
- Model `IntelligencePacksOperations` added parameter `kwargs` in method `__init__`
- Model `LinkedServicesOperations` added parameter `kwargs` in method `__init__`
- Model `LinkedStorageAccountsOperations` added parameter `kwargs` in method `__init__`
- Model `ManagementGroupsOperations` added parameter `kwargs` in method `__init__`
- Model `OperationStatusesOperations` added parameter `kwargs` in method `__init__`
- Model `Operations` added parameter `kwargs` in method `__init__`
- Model `SavedSearchesOperations` added parameter `kwargs` in method `__init__`
- Model `SchemaOperations` added parameter `kwargs` in method `__init__`
- Model `SharedKeysOperations` added parameter `kwargs` in method `__init__`
- Model `StorageInsightConfigsOperations` added parameter `kwargs` in method `__init__`
- Model `TablesOperations` added parameter `kwargs` in method `__init__`
- Model `TablesOperations` added method `begin_create_or_update`
- Model `TablesOperations` added method `begin_delete`
- Model `TablesOperations` added method `begin_update`
- Model `TablesOperations` added method `cancel_search`
- Model `TablesOperations` added method `migrate`
- Model `UsagesOperations` added parameter `kwargs` in method `__init__`
- Model `WorkspacePurgeOperations` added parameter `kwargs` in method `__init__`
- Model `WorkspacesOperations` added parameter `kwargs` in method `__init__`
- Model `WorkspacesOperations` added method `begin_failback`
- Model `WorkspacesOperations` added method `begin_failover`
- Added model `QueriesOperations`
- Added model `QueryPacksOperations`
- Method `ClustersOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, cluster_name: str, parameters: Cluster, content_type: str)`
- Method `ClustersOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, cluster_name: str, parameters: IO[bytes], content_type: str)`
- Method `ClustersOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, cluster_name: str, parameters: ClusterPatch, content_type: str)`
- Method `ClustersOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, cluster_name: str, parameters: IO[bytes], content_type: str)`
- Method `DataExportsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_export_name: str, parameters: DataExport, content_type: str)`
- Method `DataExportsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_export_name: str, parameters: IO[bytes], content_type: str)`
- Method `DataSourcesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_source_name: str, parameters: DataSource, content_type: str)`
- Method `DataSourcesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_source_name: str, parameters: IO[bytes], content_type: str)`
- Method `LinkedServicesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, linked_service_name: str, parameters: LinkedService, content_type: str)`
- Method `LinkedServicesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, linked_service_name: str, parameters: IO[bytes], content_type: str)`
- Method `LinkedStorageAccountsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_source_type: Union[str, DataSourceType], parameters: LinkedStorageAccountsResource, content_type: str)`
- Method `LinkedStorageAccountsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, data_source_type: Union[str, DataSourceType], parameters: IO[bytes], content_type: str)`
- Method `SavedSearchesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, saved_search_id: str, parameters: SavedSearch, content_type: str)`
- Method `SavedSearchesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, saved_search_id: str, parameters: IO[bytes], content_type: str)`
- Method `StorageInsightConfigsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, storage_insight_name: str, parameters: StorageInsight, content_type: str)`
- Method `StorageInsightConfigsOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, workspace_name: str, storage_insight_name: str, parameters: IO[bytes], content_type: str)`
- Method `TablesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, table_name: str, parameters: Table, content_type: str)`
- Method `TablesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, table_name: str, parameters: IO[bytes], content_type: str)`
- Method `TablesOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, workspace_name: str, table_name: str, parameters: Table, content_type: str)`
- Method `TablesOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, workspace_name: str, table_name: str, parameters: IO[bytes], content_type: str)`
- Method `WorkspacePurgeOperations.purge` has a new overload `def purge(self: None, resource_group_name: str, workspace_name: str, body: WorkspacePurgeBody, content_type: str)`
- Method `WorkspacePurgeOperations.purge` has a new overload `def purge(self: None, resource_group_name: str, workspace_name: str, body: IO[bytes], content_type: str)`
- Method `WorkspacesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, parameters: Workspace, content_type: str)`
- Method `WorkspacesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, workspace_name: str, parameters: IO[bytes], content_type: str)`
- Method `WorkspacesOperations.update` has a new overload `def update(self: None, resource_group_name: str, workspace_name: str, parameters: WorkspacePatch, content_type: str)`
- Method `WorkspacesOperations.update` has a new overload `def update(self: None, resource_group_name: str, workspace_name: str, parameters: IO[bytes], content_type: str)`
- Method `QueriesOperations.put` has a new overload `def put(self: None, resource_group_name: str, query_pack_name: str, id: str, query_payload: LogAnalyticsQueryPackQuery, content_type: str)`
- Method `QueriesOperations.put` has a new overload `def put(self: None, resource_group_name: str, query_pack_name: str, id: str, query_payload: IO[bytes], content_type: str)`
- Method `QueriesOperations.search` has a new overload `def search(self: None, resource_group_name: str, query_pack_name: str, query_search_properties: LogAnalyticsQueryPackQuerySearchProperties, top: Optional[int], include_body: Optional[bool], skip_token: Optional[str], content_type: str)`
- Method `QueriesOperations.search` has a new overload `def search(self: None, resource_group_name: str, query_pack_name: str, query_search_properties: IO[bytes], top: Optional[int], include_body: Optional[bool], skip_token: Optional[str], content_type: str)`
- Method `QueriesOperations.update` has a new overload `def update(self: None, resource_group_name: str, query_pack_name: str, id: str, query_payload: LogAnalyticsQueryPackQuery, content_type: str)`
- Method `QueriesOperations.update` has a new overload `def update(self: None, resource_group_name: str, query_pack_name: str, id: str, query_payload: IO[bytes], content_type: str)`
- Method `QueryPacksOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, query_pack_name: str, log_analytics_query_pack_payload: LogAnalyticsQueryPack, content_type: str)`
- Method `QueryPacksOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, query_pack_name: str, log_analytics_query_pack_payload: IO[bytes], content_type: str)`
- Method `QueryPacksOperations.create_or_update_without_name` has a new overload `def create_or_update_without_name(self: None, resource_group_name: str, log_analytics_query_pack_payload: LogAnalyticsQueryPack, content_type: str)`
- Method `QueryPacksOperations.create_or_update_without_name` has a new overload `def create_or_update_without_name(self: None, resource_group_name: str, log_analytics_query_pack_payload: IO[bytes], content_type: str)`
- Method `QueryPacksOperations.update_tags` has a new overload `def update_tags(self: None, resource_group_name: str, query_pack_name: str, query_pack_tags: TagsResource, content_type: str)`
- Method `QueryPacksOperations.update_tags` has a new overload `def update_tags(self: None, resource_group_name: str, query_pack_name: str, query_pack_tags: IO[bytes], content_type: str)`

### Breaking Changes

- Model `Table` deleted or renamed its instance variable `is_troubleshooting_allowed`
- Model `Table` deleted or renamed its instance variable `is_troubleshoot_enabled`
- Model `Table` deleted or renamed its instance variable `last_troubleshoot_date`
- Model `Workspace` deleted or renamed its instance variable `e_tag`
- Deleted or renamed method `TablesOperations.create`
- Deleted or renamed method `TablesOperations.update`

## 13.0.0b7 (2024-11-05)

### Other Changes
Expand Down
6 changes: 3 additions & 3 deletions sdk/loganalytics/azure-mgmt-loganalytics/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

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

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

### Prerequisites

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

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
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 @@
{
"commit": "690a7656d65a03b134fa44fc7bb8013dc18a15b5",
"commit": "7ffb6394f5688b5778a4502c7a0a62cdcc9a239b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.34.1",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/operationalinsights/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/azure-sdk-for-python/sdk --tag=package-2022-10 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/operationalinsights/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.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/operationalinsights/resource-manager/readme.md"
}
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 ._log_analytics_management_client import LogAnalyticsManagementClient
from typing import TYPE_CHECKING

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

from ._log_analytics_management_client import LogAnalyticsManagementClient # 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__ = [
"LogAnalyticsManagementClient",
]
__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,7 +14,6 @@
from ._version import VERSION

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


Expand All @@ -28,16 +27,22 @@ class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-ins
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2025-02-01". 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", "2025-02-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-loganalytics/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
Expand Down
Loading