Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
code and test
  • Loading branch information
azure-sdk authored and azure-sdk committed Nov 4, 2024
commit de27a4040f01672eb904dcd06f5773c33cf8ec02
140 changes: 140 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,145 @@
# Release History

## 13.0.0 (2024-11-04)

### Features Added

- Client `LogAnalyticsManagementClient` added operation group `query_packs`
- Client `LogAnalyticsManagementClient` added operation group `queries`
- 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 `DataSourceType` added member `INGESTION`
- Enum `IdentityType` added member `APPLICATION`
- Enum `IdentityType` added member `KEY`
- Enum `IdentityType` added member `MANAGED_IDENTITY`
- Enum `IdentityType` added member `USER`
- 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 `WorkspacePatch` added property `identity`
- Model `WorkspacePatch` added property `default_data_collection_rule_resource_id`
- Added model `AzureResourceProperties`
- Added model `Column`
- Added enum `ColumnDataTypeHintEnum`
- Added enum `ColumnTypeEnum`
- Added enum `CreatedByType`
- 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 `QueryPacksResource`
- Added model `RestoredLogs`
- Added model `ResultStatistics`
- Added model `Schema`
- Added model `SearchResults`
- Added enum `SourceEnum`
- Added model `SystemData`
- Added model `SystemDataAutoGenerated`
- Added enum `TablePlanEnum`
- Added enum `TableSubTypeEnum`
- Added enum `TableTypeEnum`
- Added model `TagsResource`
- Added model `UserAssignedIdentity`
- 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__`
- 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

- Method `LogAnalyticsManagementClient.__init__` parameter `base_url` changed default value from `None` to `str`
- 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.0b6 (2022-12-12)

### Features Added
Expand Down
55 changes: 44 additions & 11 deletions sdk/loganalytics/azure-mgmt-loganalytics/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,61 @@
# Microsoft Azure SDK for Python

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

## _Disclaimer_

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

# Usage
## Getting started

### Prerequisites

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Log Analytics Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/loganalytics)
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

# Provide Feedback
```bash
pip install azure-mgmt-loganalytics
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.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.loganalytics import LogAnalyticsManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = LogAnalyticsManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [Search Log Analytics Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-loganalytics%2FREADME.png)
10 changes: 5 additions & 5 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "23b62d4e4dab07dccda851cfe50f6c6afb705a3b",
"commit": "690a7656d65a03b134fa44fc7bb8013dc18a15b5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/operationalinsights/resource-manager/readme.md --generate-sample=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.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.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/azure-sdk-for-python/sdk --tag=package-2022-10 --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/operationalinsights/resource-manager/readme.md"
}
Loading