diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md index 55bcccafaf37..93459e3c9158 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 14.1.0 (2026-08-09) + +### Features Added + + - Enum `ColumnDataTypeHintEnum` added member `VECTOR16` + - Model `SummaryLogs` added property `identity` + - Model `TableProperties` added property `protection_level` + - Model `WorkspaceFeatures` added property `data_authorization_mode` + - Added model `SummaryLogsIdentity` + - Added enum `SummaryLogsIdentityType` + - Added model `SummaryLogsUserIdentityProperties` + - Added enum `TableProtectionLevelEnum` + - Added model `WorkspacePurgeLakeDataBody` + - Added model `WorkspacePurgeLakeDataTimeRange` + - Operation group `WorkspacePurgeOperations` added method `begin_purge_lake_data` + ## 14.0.0 (2026-06-24) ### Features Added diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/_metadata.json b/sdk/loganalytics/azure-mgmt-loganalytics/_metadata.json index a2fd0d800072..1da5b58c615a 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/_metadata.json +++ b/sdk/loganalytics/azure-mgmt-loganalytics/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2025-07-01", + "apiVersion": "2026-03-01", "apiVersions": { - "Microsoft.OperationalInsights": "2025-07-01" + "Microsoft.OperationalInsights": "2026-03-01" }, - "commit": "1523f9e8e89437d84d69a6651f09d74a7ae65ed3", + "commit": "9f0ad696cc186c2d16cb522abc0fbd4aa3854ca5", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.33.0" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.35.1" } \ No newline at end of file diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/api.md b/sdk/loganalytics/azure-mgmt-loganalytics/api.md index 3d34908e9cfb..62633ce07396 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/api.md +++ b/sdk/loganalytics/azure-mgmt-loganalytics/api.md @@ -142,7 +142,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: Cluster, *, content_type: str = "application/json", **kwargs: Any @@ -183,7 +183,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: ClusterPatch, *, content_type: str = "application/json", **kwargs: Any @@ -245,7 +245,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: JSON, + parameters: DataExport, *, content_type: str = "application/json", **kwargs: Any @@ -316,7 +316,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: JSON, + parameters: DataSource, *, content_type: str = "application/json", **kwargs: Any @@ -462,7 +462,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: JSON, + parameters: LinkedService, *, content_type: str = "application/json", **kwargs: Any @@ -533,7 +533,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, data_source_type: Union[str, DataSourceType], - parameters: JSON, + parameters: LinkedStorageAccountsResource, *, content_type: str = "application/json", **kwargs: Any @@ -680,7 +680,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -717,7 +717,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, query_pack_name: str, - query_search_properties: JSON, + query_search_properties: LogAnalyticsQueryPackQuerySearchProperties, *, content_type: str = "application/json", include_body: Optional[bool] = ..., @@ -758,7 +758,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -801,7 +801,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -832,7 +832,7 @@ namespace azure.mgmt.loganalytics.aio.operations async def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -890,7 +890,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, query_pack_name: str, - query_pack_tags: JSON, + query_pack_tags: TagsResource, *, content_type: str = "application/json", **kwargs: Any @@ -934,7 +934,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: JSON, + parameters: SavedSearch, *, content_type: str = "application/json", **kwargs: Any @@ -1047,7 +1047,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: JSON, + parameters: StorageInsight, *, content_type: str = "application/json", **kwargs: Any @@ -1118,7 +1118,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: SummaryLogs, *, content_type: str = "application/json", **kwargs: Any @@ -1163,7 +1163,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: SummaryLogsRetryBin, *, content_type: str = "application/json", **kwargs: Any @@ -1243,7 +1243,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: Table, *, content_type: str = "application/json", **kwargs: Any @@ -1288,7 +1288,7 @@ namespace azure.mgmt.loganalytics.aio.operations resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: Table, *, content_type: str = "application/json", **kwargs: Any @@ -1367,6 +1367,39 @@ namespace azure.mgmt.loganalytics.aio.operations **kwargs ) -> None: ... + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @distributed_trace_async async def get_purge_status( self, @@ -1392,7 +1425,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, workspace_name: str, - body: JSON, + body: WorkspacePurgeBody, *, content_type: str = "application/json", **kwargs: Any @@ -1434,7 +1467,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: Workspace, *, content_type: str = "application/json", **kwargs: Any @@ -1538,7 +1571,7 @@ namespace azure.mgmt.loganalytics.aio.operations self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: WorkspacePatch, *, content_type: str = "application/json", **kwargs: Any @@ -1854,6 +1887,7 @@ namespace azure.mgmt.loganalytics.models GUID = "guid" IP = "ip" URI = "uri" + VECTOR16 = "vector16" class azure.mgmt.loganalytics.models.ColumnTypeEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -3137,6 +3171,7 @@ namespace azure.mgmt.loganalytics.models class azure.mgmt.loganalytics.models.SummaryLogs(ProxyResource): id: str + identity: Optional[SummaryLogsIdentity] name: str properties: Optional[SummaryLogsProperties] system_data: SystemData @@ -3148,6 +3183,7 @@ namespace azure.mgmt.loganalytics.models def __init__( self, *, + identity: Optional[SummaryLogsIdentity] = ..., properties: Optional[SummaryLogsProperties] = ... ) -> None: ... @@ -3161,6 +3197,29 @@ namespace azure.mgmt.loganalytics.models ) -> None: ... + class azure.mgmt.loganalytics.models.SummaryLogsIdentity(_Model): + principal_id: Optional[str] + tenant_id: Optional[str] + type: Union[str, SummaryLogsIdentityType] + user_assigned_identities: Optional[dict[str, SummaryLogsUserIdentityProperties]] + + @overload + def __init__( + self, + *, + type: Union[str, SummaryLogsIdentityType], + user_assigned_identities: Optional[dict[str, SummaryLogsUserIdentityProperties]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.loganalytics.models.SummaryLogsIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + NONE = "None" + USER_ASSIGNED = "UserAssigned" + + class azure.mgmt.loganalytics.models.SummaryLogsProperties(_Model): description: Optional[str] display_name: Optional[str] @@ -3220,6 +3279,11 @@ namespace azure.mgmt.loganalytics.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.loganalytics.models.SummaryLogsUserIdentityProperties(_Model): + client_id: Optional[str] + principal_id: Optional[str] + + class azure.mgmt.loganalytics.models.SystemData(_Model): created_at: Optional[datetime] created_by: Optional[str] @@ -3280,6 +3344,7 @@ namespace azure.mgmt.loganalytics.models archive_retention_in_days: Optional[int] last_plan_modified_date: Optional[str] plan: Optional[Union[str, TablePlanEnum]] + protection_level: Optional[Union[str, TableProtectionLevelEnum]] provisioning_state: Optional[Union[str, ProvisioningStateEnum]] restored_logs: Optional[RestoredLogs] result_statistics: Optional[ResultStatistics] @@ -3295,6 +3360,7 @@ namespace azure.mgmt.loganalytics.models self, *, plan: Optional[Union[str, TablePlanEnum]] = ..., + protection_level: Optional[Union[str, TableProtectionLevelEnum]] = ..., restored_logs: Optional[RestoredLogs] = ..., retention_in_days: Optional[int] = ..., schema: Optional[Schema] = ..., @@ -3306,6 +3372,11 @@ namespace azure.mgmt.loganalytics.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.loganalytics.models.TableProtectionLevelEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): + GENERAL = "General" + PROTECTED = "Protected" + + class azure.mgmt.loganalytics.models.TableSubTypeEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): ANY = "Any" CLASSIC = "Classic" @@ -3488,6 +3559,7 @@ namespace azure.mgmt.loganalytics.models class azure.mgmt.loganalytics.models.WorkspaceFeatures(_Model): associations: Optional[list[str]] cluster_resource_id: Optional[str] + data_authorization_mode: Optional[bool] disable_local_auth: Optional[bool] enable_data_export: Optional[bool] enable_log_access_using_only_resource_permissions: Optional[bool] @@ -3499,6 +3571,7 @@ namespace azure.mgmt.loganalytics.models self, *, cluster_resource_id: Optional[str] = ..., + data_authorization_mode: Optional[bool] = ..., disable_local_auth: Optional[bool] = ..., enable_data_export: Optional[bool] = ..., enable_log_access_using_only_resource_permissions: Optional[bool] = ..., @@ -3613,6 +3686,38 @@ namespace azure.mgmt.loganalytics.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody(_Model): + table: str + time_range: WorkspacePurgeLakeDataTimeRange + + @overload + def __init__( + self, + *, + table: str, + time_range: WorkspacePurgeLakeDataTimeRange + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataTimeRange(_Model): + end_time: datetime + start_time: datetime + + @overload + def __init__( + self, + *, + end_time: datetime, + start_time: datetime + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.loganalytics.models.WorkspacePurgeResponse(_Model): operation_id: str @@ -3743,7 +3848,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: Cluster, *, content_type: str = "application/json", **kwargs: Any @@ -3784,7 +3889,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: ClusterPatch, *, content_type: str = "application/json", **kwargs: Any @@ -3846,7 +3951,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: JSON, + parameters: DataExport, *, content_type: str = "application/json", **kwargs: Any @@ -3917,7 +4022,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: JSON, + parameters: DataSource, *, content_type: str = "application/json", **kwargs: Any @@ -4063,7 +4168,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: JSON, + parameters: LinkedService, *, content_type: str = "application/json", **kwargs: Any @@ -4134,7 +4239,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, data_source_type: Union[str, DataSourceType], - parameters: JSON, + parameters: LinkedStorageAccountsResource, *, content_type: str = "application/json", **kwargs: Any @@ -4281,7 +4386,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -4318,7 +4423,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, query_pack_name: str, - query_search_properties: JSON, + query_search_properties: LogAnalyticsQueryPackQuerySearchProperties, *, content_type: str = "application/json", include_body: Optional[bool] = ..., @@ -4359,7 +4464,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -4402,7 +4507,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -4433,7 +4538,7 @@ namespace azure.mgmt.loganalytics.operations def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -4491,7 +4596,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, query_pack_name: str, - query_pack_tags: JSON, + query_pack_tags: TagsResource, *, content_type: str = "application/json", **kwargs: Any @@ -4535,7 +4640,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: JSON, + parameters: SavedSearch, *, content_type: str = "application/json", **kwargs: Any @@ -4648,7 +4753,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: JSON, + parameters: StorageInsight, *, content_type: str = "application/json", **kwargs: Any @@ -4719,7 +4824,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: SummaryLogs, *, content_type: str = "application/json", **kwargs: Any @@ -4764,7 +4869,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: SummaryLogsRetryBin, *, content_type: str = "application/json", **kwargs: Any @@ -4844,7 +4949,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: Table, *, content_type: str = "application/json", **kwargs: Any @@ -4889,7 +4994,7 @@ namespace azure.mgmt.loganalytics.operations resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: Table, *, content_type: str = "application/json", **kwargs: Any @@ -4968,6 +5073,39 @@ namespace azure.mgmt.loganalytics.operations **kwargs ) -> None: ... + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @distributed_trace def get_purge_status( self, @@ -4993,7 +5131,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, workspace_name: str, - body: JSON, + body: WorkspacePurgeBody, *, content_type: str = "application/json", **kwargs: Any @@ -5035,7 +5173,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: Workspace, *, content_type: str = "application/json", **kwargs: Any @@ -5139,7 +5277,7 @@ namespace azure.mgmt.loganalytics.operations self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: WorkspacePatch, *, content_type: str = "application/json", **kwargs: Any @@ -5157,4 +5295,834 @@ namespace azure.mgmt.loganalytics.operations ) -> Workspace: ... +namespace azure.mgmt.loganalytics.types + + class azure.mgmt.loganalytics.types.AssociatedWorkspace(TypedDict, total=False): + key "associateDate": str + key "resourceId": str + key "workspaceId": str + key "workspaceName": str + associateDate: str + resourceId: str + workspaceId: str + workspaceName: str + + + class azure.mgmt.loganalytics.types.AzureEntityResource(Resource): + key "etag": str + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.CapacityReservationProperties(TypedDict, total=False): + key "lastSkuUpdate": str + key "minCapacity": int + lastSkuUpdate: str + minCapacity: int + + + class azure.mgmt.loganalytics.types.Cluster(TrackedResource): + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": Required[str] + key "name": str + key "properties": ForwardRef('ClusterProperties', module='types') + key "sku": ForwardRef('ClusterSku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: ClusterProperties + sku: ClusterSku + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.ClusterPatch(TypedDict, total=False): + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "properties": ForwardRef('ClusterPatchProperties', module='types') + key "sku": ForwardRef('ClusterSku', module='types') + identity: ManagedServiceIdentity + properties: ClusterPatchProperties + sku: ClusterSku + tags: dict[str, str] + + + class azure.mgmt.loganalytics.types.ClusterPatchProperties(TypedDict, total=False): + key "billingType": Union[str, BillingType] + key "keyVaultProperties": ForwardRef('KeyVaultProperties', module='types') + billingType: Union[str, BillingType] + keyVaultProperties: KeyVaultProperties + + + class azure.mgmt.loganalytics.types.ClusterProperties(TypedDict, total=False): + key "billingType": Union[str, BillingType] + key "capacityReservationProperties": ForwardRef('CapacityReservationProperties', module='types') + key "clusterId": str + key "createdDate": str + key "isAvailabilityZonesEnabled": bool + key "isDoubleEncryptionEnabled": bool + key "keyVaultProperties": ForwardRef('KeyVaultProperties', module='types') + key "lastModifiedDate": str + key "provisioningState": Union[str, ClusterEntityStatus] + key "replication": ForwardRef('ClusterReplicationProperties', module='types') + associatedWorkspaces: list[AssociatedWorkspace] + billingType: Union[str, BillingType] + capacityReservationProperties: CapacityReservationProperties + clusterId: str + createdDate: str + isAvailabilityZonesEnabled: bool + isDoubleEncryptionEnabled: bool + keyVaultProperties: KeyVaultProperties + lastModifiedDate: str + provisioningState: Union[str, ClusterEntityStatus] + replication: ClusterReplicationProperties + + + class azure.mgmt.loganalytics.types.ClusterReplicationProperties(TypedDict, total=False): + key "createdDate": str + key "enabled": bool + key "isAvailabilityZonesEnabled": bool + key "lastModifiedDate": str + key "location": str + key "provisioningState": Union[str, ClusterReplicationState] + createdDate: str + enabled: bool + isAvailabilityZonesEnabled: bool + lastModifiedDate: str + location: str + provisioningState: Union[str, ClusterReplicationState] + + + class azure.mgmt.loganalytics.types.ClusterSku(TypedDict, total=False): + key "capacity": Optional[int] + key "name": Union[str, ClusterSkuNameEnum] + capacity: int + name: Union[str, ClusterSkuNameEnum] + + + class azure.mgmt.loganalytics.types.Column(TypedDict, total=False): + key "dataTypeHint": Union[str, ColumnDataTypeHintEnum] + key "description": str + key "displayName": str + key "isDefaultDisplay": bool + key "isHidden": bool + key "name": str + key "type": Union[str, ColumnTypeEnum] + dataTypeHint: Union[str, ColumnDataTypeHintEnum] + description: str + displayName: str + isDefaultDisplay: bool + isHidden: bool + name: str + type: Union[str, ColumnTypeEnum] + + + class azure.mgmt.loganalytics.types.DataExport(ProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('DataExportProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: DataExportProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.DataExportProperties(TypedDict, total=False): + key "createdDate": str + key "dataExportId": str + key "destination": ForwardRef('Destination', module='types') + key "enable": bool + key "lastModifiedDate": str + key "tableNames": Required[list[str]] + createdDate: str + dataExportId: str + destination: Destination + enable: bool + lastModifiedDate: str + tableNames: list[str] + + + class azure.mgmt.loganalytics.types.DataSource(ProxyResource): + key "etag": str + key "id": str + key "kind": Required[Union[str, DataSourceKind]] + key "name": str + key "properties": Required[Any] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + kind: Union[str, DataSourceKind] + name: str + properties: Any + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.Destination(TypedDict, total=False): + key "metaData": ForwardRef('DestinationMetaData', module='types') + key "resourceId": Required[str] + key "type": Union[str, Type] + metaData: DestinationMetaData + resourceId: str + type: Union[str, Type] + + + class azure.mgmt.loganalytics.types.DestinationMetaData(TypedDict, total=False): + key "eventHubName": str + eventHubName: str + + + class azure.mgmt.loganalytics.types.Identity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Required[Union[str, IdentityType]] + principalId: str + tenantId: str + type: Union[str, IdentityType] + userAssignedIdentities: dict[str, UserIdentityProperties] + + + class azure.mgmt.loganalytics.types.KeyVaultProperties(TypedDict, total=False): + key "keyName": str + key "keyRsaSize": int + key "keyVaultUri": str + key "keyVersion": str + keyName: str + keyRsaSize: int + keyVaultUri: str + keyVersion: str + + + class azure.mgmt.loganalytics.types.LinkedService(ProxyResource): + key "id": str + key "name": str + key "properties": Required[LinkedServiceProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: LinkedServiceProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.LinkedServiceProperties(TypedDict, total=False): + key "provisioningState": Union[str, LinkedServiceEntityStatus] + key "resourceId": str + key "writeAccessResourceId": str + provisioningState: Union[str, LinkedServiceEntityStatus] + resourceId: str + writeAccessResourceId: str + + + class azure.mgmt.loganalytics.types.LinkedStorageAccountsProperties(TypedDict, total=False): + key "dataSourceType": Union[str, DataSourceType] + dataSourceType: Union[str, DataSourceType] + storageAccountIds: list[str] + + + class azure.mgmt.loganalytics.types.LinkedStorageAccountsResource(ProxyResource): + key "id": str + key "name": str + key "properties": Required[LinkedStorageAccountsProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: LinkedStorageAccountsProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPack(TrackedResource): + key "id": str + key "location": Required[str] + key "name": str + key "properties": Required[LogAnalyticsQueryPackProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + properties: LogAnalyticsQueryPackProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackProperties(TypedDict, total=False): + key "provisioningState": str + key "queryPackId": str + key "timeCreated": str + key "timeModified": str + provisioningState: str + queryPackId: str + timeCreated: str + timeModified: str + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery(ProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('LogAnalyticsQueryPackQueryProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: LogAnalyticsQueryPackQueryProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQueryProperties(TypedDict, total=False): + key "author": str + key "body": Required[str] + key "description": str + key "displayName": Required[str] + key "id": str + key "properties": Any + key "related": ForwardRef('LogAnalyticsQueryPackQueryPropertiesRelated', module='types') + key "timeCreated": str + key "timeModified": str + author: str + body: str + description: str + displayName: str + id: str + properties: Any + related: LogAnalyticsQueryPackQueryPropertiesRelated + tags: dict[str, list[str]] + timeCreated: str + timeModified: str + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQueryPropertiesRelated(TypedDict, total=False): + categories: list[str] + resourceTypes: list[str] + solutions: list[str] + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchProperties(TypedDict, total=False): + key "related": ForwardRef('LogAnalyticsQueryPackQuerySearchPropertiesRelated', module='types') + related: LogAnalyticsQueryPackQuerySearchPropertiesRelated + tags: dict[str, list[str]] + + + class azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchPropertiesRelated(TypedDict, total=False): + categories: list[str] + resourceTypes: list[str] + solutions: list[str] + + + class azure.mgmt.loganalytics.types.ManagedServiceIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Required[Union[str, ManagedServiceIdentityType]] + principalId: str + tenantId: str + type: Union[str, ManagedServiceIdentityType] + userAssignedIdentities: dict[str, UserAssignedIdentity] + + + class azure.mgmt.loganalytics.types.PrivateLinkScopedResource(TypedDict, total=False): + key "resourceId": str + key "scopeId": str + resourceId: str + scopeId: str + + + class azure.mgmt.loganalytics.types.ProxyResource(Resource): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.Resource(TypedDict, total=False): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.RestoredLogs(TypedDict, total=False): + key "azureAsyncOperationId": str + key "endRestoreTime": str + key "sourceTable": str + key "startRestoreTime": str + azureAsyncOperationId: str + endRestoreTime: str + sourceTable: str + startRestoreTime: str + + + class azure.mgmt.loganalytics.types.ResultStatistics(TypedDict, total=False): + key "ingestedRecords": int + key "progress": float + key "scannedGb": float + ingestedRecords: int + progress: float + scannedGb: float + + + class azure.mgmt.loganalytics.types.RuleDefinition(TypedDict, total=False): + key "binDelay": int + key "binSize": int + key "binStartTime": str + key "destinationTable": str + key "query": str + key "timeSelector": Union[str, TimeSelectorEnum] + binDelay: int + binSize: int + binStartTime: str + destinationTable: str + query: str + timeSelector: Union[str, TimeSelectorEnum] + + + class azure.mgmt.loganalytics.types.SavedSearch(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": Required[SavedSearchProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: SavedSearchProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.SavedSearchProperties(TypedDict, total=False): + key "category": Required[str] + key "displayName": Required[str] + key "functionAlias": str + key "functionParameters": str + key "query": Required[str] + key "version": int + category: str + displayName: str + functionAlias: str + functionParameters: str + query: str + tags: list[Tag] + version: int + + + class azure.mgmt.loganalytics.types.Schema(TypedDict, total=False): + key "description": str + key "displayName": str + key "name": str + key "source": Union[str, SourceEnum] + key "tableSubType": Union[str, TableSubTypeEnum] + key "tableType": Union[str, TableTypeEnum] + categories: list[str] + columns: list[Column] + description: str + displayName: str + labels: list[str] + name: str + solutions: list[str] + source: Union[str, SourceEnum] + standardColumns: list[Column] + tableSubType: Union[str, TableSubTypeEnum] + tableType: Union[str, TableTypeEnum] + + + class azure.mgmt.loganalytics.types.SearchResults(TypedDict, total=False): + key "azureAsyncOperationId": str + key "description": str + key "endSearchTime": str + key "limit": int + key "query": str + key "sourceTable": str + key "startSearchTime": str + azureAsyncOperationId: str + description: str + endSearchTime: str + limit: int + query: str + sourceTable: str + startSearchTime: str + + + class azure.mgmt.loganalytics.types.StorageAccount(TypedDict, total=False): + key "id": Required[str] + key "key": Required[str] + id: str + key: str + + + class azure.mgmt.loganalytics.types.StorageInsight(ProxyResource): + key "eTag": str + key "id": str + key "name": str + key "properties": ForwardRef('StorageInsightProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + eTag: str + id: str + name: str + properties: StorageInsightProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.StorageInsightProperties(TypedDict, total=False): + key "status": ForwardRef('StorageInsightStatus', module='types') + key "storageAccount": Required[StorageAccount] + containers: list[str] + status: StorageInsightStatus + storageAccount: StorageAccount + tables: list[str] + + + class azure.mgmt.loganalytics.types.StorageInsightStatus(TypedDict, total=False): + key "description": str + key "state": Required[Union[str, StorageInsightState]] + description: str + state: Union[str, StorageInsightState] + + + class azure.mgmt.loganalytics.types.SummaryLogs(ProxyResource): + key "id": str + key "identity": ForwardRef('SummaryLogsIdentity', module='types') + key "name": str + key "properties": ForwardRef('SummaryLogsProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + identity: SummaryLogsIdentity + name: str + properties: SummaryLogsProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.SummaryLogsIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Required[Union[str, SummaryLogsIdentityType]] + principalId: str + tenantId: str + type: Union[str, SummaryLogsIdentityType] + userAssignedIdentities: dict[str, SummaryLogsUserIdentityProperties] + + + class azure.mgmt.loganalytics.types.SummaryLogsProperties(TypedDict, total=False): + key "description": str + key "displayName": str + key "isActive": bool + key "provisioningState": Union[str, SummaryLogsProvisioningState] + key "ruleDefinition": ForwardRef('RuleDefinition', module='types') + key "ruleType": Union[str, RuleTypeEnum] + key "statusCode": Union[str, StatusCodeEnum] + description: str + displayName: str + isActive: bool + provisioningState: Union[str, SummaryLogsProvisioningState] + ruleDefinition: RuleDefinition + ruleType: Union[str, RuleTypeEnum] + statusCode: Union[str, StatusCodeEnum] + + + class azure.mgmt.loganalytics.types.SummaryLogsRetryBin(TypedDict, total=False): + key "properties": ForwardRef('SummaryLogsRetryBinProperties', module='types') + properties: SummaryLogsRetryBinProperties + + + class azure.mgmt.loganalytics.types.SummaryLogsRetryBinProperties(TypedDict, total=False): + key "retryBinStartTime": Required[str] + retryBinStartTime: str + + + class azure.mgmt.loganalytics.types.SummaryLogsUserIdentityProperties(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.loganalytics.types.SystemData(TypedDict, total=False): + key "createdAt": str + key "createdBy": str + key "createdByType": Union[str, CreatedByType] + key "lastModifiedAt": str + key "lastModifiedBy": str + key "lastModifiedByType": Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] + + + class azure.mgmt.loganalytics.types.Table(ProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('TableProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: TableProperties + systemData: SystemData + type: str + + + class azure.mgmt.loganalytics.types.TableProperties(TypedDict, total=False): + key "archiveRetentionInDays": int + key "lastPlanModifiedDate": str + key "plan": Union[str, TablePlanEnum] + key "protectionLevel": Union[str, TableProtectionLevelEnum] + key "provisioningState": Union[str, ProvisioningStateEnum] + key "restoredLogs": ForwardRef('RestoredLogs', module='types') + key "resultStatistics": ForwardRef('ResultStatistics', module='types') + key "retentionInDays": int + key "retentionInDaysAsDefault": bool + key "schema": ForwardRef('Schema', module='types') + key "searchResults": ForwardRef('SearchResults', module='types') + key "totalRetentionInDays": int + key "totalRetentionInDaysAsDefault": bool + archiveRetentionInDays: int + lastPlanModifiedDate: str + plan: Union[str, TablePlanEnum] + protectionLevel: Union[str, TableProtectionLevelEnum] + provisioningState: Union[str, ProvisioningStateEnum] + restoredLogs: RestoredLogs + resultStatistics: ResultStatistics + retentionInDays: int + retentionInDaysAsDefault: bool + schema: Schema + searchResults: SearchResults + totalRetentionInDays: int + totalRetentionInDaysAsDefault: bool + + + class azure.mgmt.loganalytics.types.Tag(TypedDict, total=False): + key "name": Required[str] + key "value": Required[str] + name: str + value: str + + + class azure.mgmt.loganalytics.types.TagsResource(TypedDict, total=False): + tags: dict[str, str] + + + class azure.mgmt.loganalytics.types.TrackedResource(Resource): + key "id": str + key "location": Required[str] + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.UserAssignedIdentity(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.loganalytics.types.UserIdentityProperties(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.loganalytics.types.Workspace(TrackedResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "location": Required[str] + key "name": str + key "properties": ForwardRef('WorkspaceProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + location: str + name: str + properties: WorkspaceProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.WorkspaceCapping(TypedDict, total=False): + key "dailyQuotaGb": float + key "dataIngestionStatus": Union[str, DataIngestionStatus] + key "quotaNextResetTime": str + dailyQuotaGb: float + dataIngestionStatus: Union[str, DataIngestionStatus] + quotaNextResetTime: str + + + class azure.mgmt.loganalytics.types.WorkspaceFailoverProperties(TypedDict, total=False): + key "lastModifiedDate": str + key "state": Union[str, WorkspaceFailoverState] + lastModifiedDate: str + state: Union[str, WorkspaceFailoverState] + + + class azure.mgmt.loganalytics.types.WorkspaceFeatures(TypedDict, total=False): + key "clusterResourceId": Optional[str] + key "dataAuthorizationMode": Optional[bool] + key "disableLocalAuth": Optional[bool] + key "enableDataExport": Optional[bool] + key "enableLogAccessUsingOnlyResourcePermissions": Optional[bool] + key "immediatePurgeDataOn30Days": Optional[bool] + key "unifiedSentinelBillingOnly": Optional[bool] + associations: list[str] + clusterResourceId: str + dataAuthorizationMode: bool + disableLocalAuth: bool + enableDataExport: bool + enableLogAccessUsingOnlyResourcePermissions: bool + immediatePurgeDataOn30Days: bool + unifiedSentinelBillingOnly: bool + + + class azure.mgmt.loganalytics.types.WorkspacePatch(AzureEntityResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "name": str + key "properties": ForwardRef('WorkspaceProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + name: str + properties: WorkspaceProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.loganalytics.types.WorkspaceProperties(TypedDict, total=False): + key "createdDate": str + key "customerId": str + key "defaultDataCollectionRuleResourceId": str + key "failover": ForwardRef('WorkspaceFailoverProperties', module='types') + key "features": ForwardRef('WorkspaceFeatures', module='types') + key "forceCmkForQuery": bool + key "modifiedDate": str + key "provisioningState": Union[str, WorkspaceEntityStatus] + key "publicNetworkAccessForIngestion": Union[str, PublicNetworkAccessType] + key "publicNetworkAccessForQuery": Union[str, PublicNetworkAccessType] + key "replication": ForwardRef('WorkspaceReplicationProperties', module='types') + key "retentionInDays": Optional[int] + key "sku": ForwardRef('WorkspaceSku', module='types') + key "workspaceCapping": ForwardRef('WorkspaceCapping', module='types') + createdDate: str + customerId: str + defaultDataCollectionRuleResourceId: str + failover: WorkspaceFailoverProperties + features: WorkspaceFeatures + forceCmkForQuery: bool + modifiedDate: str + privateLinkScopedResources: list[PrivateLinkScopedResource] + provisioningState: Union[str, WorkspaceEntityStatus] + publicNetworkAccessForIngestion: Union[str, PublicNetworkAccessType] + publicNetworkAccessForQuery: Union[str, PublicNetworkAccessType] + replication: WorkspaceReplicationProperties + retentionInDays: int + sku: WorkspaceSku + workspaceCapping: WorkspaceCapping + + + class azure.mgmt.loganalytics.types.WorkspacePurgeBody(TypedDict, total=False): + key "filters": Required[list[WorkspacePurgeBodyFilters]] + key "table": Required[str] + filters: list[WorkspacePurgeBodyFilters] + table: str + + + class azure.mgmt.loganalytics.types.WorkspacePurgeBodyFilters(TypedDict, total=False): + key "column": str + key "key": str + key "operator": str + key "value": Any + column: str + key: str + operator: str + value: Any + + + class azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataBody(TypedDict, total=False): + key "table": Required[str] + key "timeRange": Required[WorkspacePurgeLakeDataTimeRange] + table: str + timeRange: WorkspacePurgeLakeDataTimeRange + + + class azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataTimeRange(TypedDict, total=False): + key "endTime": Required[str] + key "startTime": Required[str] + endTime: str + startTime: str + + + class azure.mgmt.loganalytics.types.WorkspaceReplicationProperties(TypedDict, total=False): + key "createdDate": str + key "enabled": bool + key "lastModifiedDate": str + key "location": str + key "provisioningState": Union[str, WorkspaceReplicationState] + createdDate: str + enabled: bool + lastModifiedDate: str + location: str + provisioningState: Union[str, WorkspaceReplicationState] + + + class azure.mgmt.loganalytics.types.WorkspaceSku(TypedDict, total=False): + key "capacityReservationLevel": Optional[int] + key "lastSkuUpdate": str + key "name": Required[Union[str, WorkspaceSkuNameEnum]] + capacityReservationLevel: int + lastSkuUpdate: str + name: Union[str, WorkspaceSkuNameEnum] + + ``` \ No newline at end of file diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/api.metadata.yml b/sdk/loganalytics/azure-mgmt-loganalytics/api.metadata.yml index 7efcfcbe121e..e96f71347da1 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/api.metadata.yml +++ b/sdk/loganalytics/azure-mgmt-loganalytics/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 3f8ee4b27715220769e8053320de2be45453d3d93be85ee7e81f2b815a225c49 -parserVersion: 0.3.28 -pythonVersion: 3.13.13 +apiMdSha256: 88dba8aca1401855b7ae8e0ef127668ab97e44d6a92363ef8e9203e19c80c4f2 +parserVersion: 0.3.31 +pythonVersion: 3.13.14 diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/apiview-properties.json b/sdk/loganalytics/azure-mgmt-loganalytics/apiview-properties.json index 8a50f74e8928..c65be33b8e85 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/apiview-properties.json +++ b/sdk/loganalytics/azure-mgmt-loganalytics/apiview-properties.json @@ -75,9 +75,11 @@ "azure.mgmt.loganalytics.models.StorageInsightProperties": "Microsoft.OperationalInsights.StorageInsightProperties", "azure.mgmt.loganalytics.models.StorageInsightStatus": "Microsoft.OperationalInsights.StorageInsightStatus", "azure.mgmt.loganalytics.models.SummaryLogs": "Microsoft.OperationalInsights.SummaryLogs", + "azure.mgmt.loganalytics.models.SummaryLogsIdentity": "Microsoft.OperationalInsights.SummaryLogsIdentity", "azure.mgmt.loganalytics.models.SummaryLogsProperties": "Microsoft.OperationalInsights.SummaryLogsProperties", "azure.mgmt.loganalytics.models.SummaryLogsRetryBin": "Microsoft.OperationalInsights.SummaryLogsRetryBin", "azure.mgmt.loganalytics.models.SummaryLogsRetryBinProperties": "Microsoft.OperationalInsights.SummaryLogsRetryBinProperties", + "azure.mgmt.loganalytics.models.SummaryLogsUserIdentityProperties": "Microsoft.OperationalInsights.SummaryLogsUserIdentityProperties", "azure.mgmt.loganalytics.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", "azure.mgmt.loganalytics.models.Table": "Microsoft.OperationalInsights.Table", "azure.mgmt.loganalytics.models.TableProperties": "Microsoft.OperationalInsights.TableProperties", @@ -94,6 +96,8 @@ "azure.mgmt.loganalytics.models.WorkspaceProperties": "Microsoft.OperationalInsights.WorkspaceProperties", "azure.mgmt.loganalytics.models.WorkspacePurgeBody": "Microsoft.OperationalInsights.WorkspacePurgeBody", "azure.mgmt.loganalytics.models.WorkspacePurgeBodyFilters": "Microsoft.OperationalInsights.WorkspacePurgeBodyFilters", + "azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody": "Microsoft.OperationalInsights.WorkspacePurgeLakeDataBody", + "azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataTimeRange": "Microsoft.OperationalInsights.WorkspacePurgeLakeDataTimeRange", "azure.mgmt.loganalytics.models.WorkspacePurgeResponse": "Microsoft.OperationalInsights.WorkspacePurgeResponse", "azure.mgmt.loganalytics.models.WorkspacePurgeStatusResponse": "Microsoft.OperationalInsights.WorkspacePurgeStatusResponse", "azure.mgmt.loganalytics.models.WorkspaceReplicationProperties": "Microsoft.OperationalInsights.WorkspaceReplicationProperties", @@ -120,6 +124,7 @@ "azure.mgmt.loganalytics.models.DataSourceKind": "Microsoft.OperationalInsights.DataSourceKind", "azure.mgmt.loganalytics.models.LinkedServiceEntityStatus": "Microsoft.OperationalInsights.LinkedServiceEntityStatus", "azure.mgmt.loganalytics.models.TablePlanEnum": "Microsoft.OperationalInsights.TablePlanEnum", + "azure.mgmt.loganalytics.models.TableProtectionLevelEnum": "Microsoft.OperationalInsights.TableProtectionLevelEnum", "azure.mgmt.loganalytics.models.ColumnTypeEnum": "Microsoft.OperationalInsights.ColumnTypeEnum", "azure.mgmt.loganalytics.models.ColumnDataTypeHintEnum": "Microsoft.OperationalInsights.ColumnDataTypeHintEnum", "azure.mgmt.loganalytics.models.SourceEnum": "Microsoft.OperationalInsights.SourceEnum", @@ -135,6 +140,7 @@ "azure.mgmt.loganalytics.models.StatusCodeEnum": "Microsoft.OperationalInsights.StatusCodeEnum", "azure.mgmt.loganalytics.models.SummaryLogsProvisioningState": "Microsoft.OperationalInsights.ProvisioningStateEnum", "azure.mgmt.loganalytics.models.TimeSelectorEnum": "Microsoft.OperationalInsights.TimeSelectorEnum", + "azure.mgmt.loganalytics.models.SummaryLogsIdentityType": "Microsoft.OperationalInsights.SummaryLogsIdentityType", "azure.mgmt.loganalytics.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", "azure.mgmt.loganalytics.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", "azure.mgmt.loganalytics.operations.ClustersOperations.get": "Microsoft.OperationalInsights.Clusters.get", @@ -241,6 +247,8 @@ "azure.mgmt.loganalytics.aio.operations.WorkspacePurgeOperations.purge": "Microsoft.OperationalInsights.Workspaces.purge", "azure.mgmt.loganalytics.operations.WorkspacePurgeOperations.get_purge_status": "Microsoft.OperationalInsights.Workspaces.getPurgeStatus", "azure.mgmt.loganalytics.aio.operations.WorkspacePurgeOperations.get_purge_status": "Microsoft.OperationalInsights.Workspaces.getPurgeStatus", + "azure.mgmt.loganalytics.operations.WorkspacePurgeOperations.begin_purge_lake_data": "Microsoft.OperationalInsights.Workspaces.purgeLakeData", + "azure.mgmt.loganalytics.aio.operations.WorkspacePurgeOperations.begin_purge_lake_data": "Microsoft.OperationalInsights.Workspaces.purgeLakeData", "azure.mgmt.loganalytics.operations.LinkedStorageAccountsOperations.get": "Microsoft.OperationalInsights.LinkedStorageAccountsResources.get", "azure.mgmt.loganalytics.aio.operations.LinkedStorageAccountsOperations.get": "Microsoft.OperationalInsights.LinkedStorageAccountsResources.get", "azure.mgmt.loganalytics.operations.LinkedStorageAccountsOperations.create_or_update": "Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate", @@ -304,5 +312,5 @@ "azure.mgmt.loganalytics.operations.DeletedWorkspacesOperations.list_by_resource_group": "Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup", "azure.mgmt.loganalytics.aio.operations.DeletedWorkspacesOperations.list_by_resource_group": "Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup" }, - "CrossLanguageVersion": "c0595d1724d6" + "CrossLanguageVersion": "0d5353ebc2ec" } \ No newline at end of file diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_client.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_client.py index ac051342936d..63f32bbf5df1 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_client.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -55,7 +56,7 @@ from azure.core.credentials import TokenCredential -class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attributes +class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """LogAnalyticsManagementClient. :ivar operations: Operations operations @@ -116,7 +117,7 @@ class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attribu :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-07-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py index 132ed9b094a9..77a95fb5aa5b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for LogAnalyticsManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-ins :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-07-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-07-01") + api_version: str = kwargs.pop("api_version", "2026-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/model_base.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/model_base.py index b93f5120d517..35d5fc024978 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/model_base.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/serialization.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/serialization.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_validation.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_validation.py new file mode 100644 index 000000000000..f5af3a4eb8a2 --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_validation.py @@ -0,0 +1,66 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import functools + + +def api_version_validation(**kwargs): + params_added_on = kwargs.pop("params_added_on", {}) + method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kwargs): + try: + # this assumes the client has an _api_version attribute + client = args[0] + client_api_version = client._config.api_version # pylint: disable=protected-access + except AttributeError: + return func(*args, **kwargs) + + if _index_with_default(method_added_on) > _index_with_default(client_api_version): + raise ValueError( + f"'{func.__name__}' is not available in API version " + f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." + ) + + unsupported = { + parameter: api_version + for api_version, parameters in params_added_on.items() + for parameter in parameters + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) + } + if unsupported: + raise ValueError( + "".join( + [ + f"'{param}' is not available in API version {client_api_version}. " + f"Use service API version {version} or newer.\n" + for param, version in unsupported.items() + ] + ) + ) + return func(*args, **kwargs) + + return wrapper + + return decorator diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py index 2b8e66c6bc52..91020927c9cc 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "14.0.0" +VERSION = "14.1.0" diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_client.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_client.py index 6a7f59c9714c..97482989da7e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_client.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -55,7 +56,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attributes +class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """LogAnalyticsManagementClient. :ivar operations: Operations operations @@ -116,7 +117,7 @@ class LogAnalyticsManagementClient: # pylint: disable=too-many-instance-attribu :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-07-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_configuration.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_configuration.py index 47933abb9ce1..46bf6731d323 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_configuration.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for LogAnalyticsManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class LogAnalyticsManagementClientConfiguration: # pylint: disable=too-many-ins :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-07-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-07-01") + api_version: str = kwargs.pop("api_version", "2026-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_operations.py index 72821eace44e..4076e451f41e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_operations.py @@ -33,9 +33,10 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models as _models +from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer +from ..._validation import api_version_validation from ...operations._operations import ( build_available_service_tiers_list_by_workspace_request, build_clusters_create_or_update_request, @@ -109,6 +110,7 @@ build_tables_update_request, build_usages_list_request, build_workspace_purge_get_purge_status_request, + build_workspace_purge_purge_lake_data_request, build_workspace_purge_purge_request, build_workspaces_create_or_update_request, build_workspaces_delete_request, @@ -126,11 +128,10 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -242,7 +243,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ClustersOperations: +class ClustersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -335,7 +336,7 @@ async def _create_or_update_initial( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.Cluster, JSON, IO[bytes]], + parameters: Union[_models.Cluster, _types.Cluster, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -443,7 +444,7 @@ async def begin_create_or_update( self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: _types.Cluster, *, content_type: str = "application/json", **kwargs: Any @@ -457,7 +458,7 @@ async def begin_create_or_update( :type cluster_name: str :param parameters: The parameters required to create or update a Log Analytics cluster. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Cluster :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -501,7 +502,7 @@ async def begin_create_or_update( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.Cluster, JSON, IO[bytes]], + parameters: Union[_models.Cluster, _types.Cluster, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Cluster]: """Create or update a Log Analytics cluster. @@ -511,9 +512,10 @@ async def begin_create_or_update( :type resource_group_name: str :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str - :param parameters: The parameters required to create or update a Log Analytics cluster. Is one - of the following types: Cluster, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Cluster or JSON or IO[bytes] + :param parameters: The parameters required to create or update a Log Analytics cluster. Is + either a Cluster type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Cluster or + ~azure.mgmt.loganalytics.types.Cluster or IO[bytes] :return: An instance of AsyncLROPoller that returns Cluster. The Cluster is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.Cluster] @@ -575,7 +577,7 @@ async def _update_initial( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.ClusterPatch, JSON, IO[bytes]], + parameters: Union[_models.ClusterPatch, _types.ClusterPatch, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -682,7 +684,7 @@ async def begin_update( self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: _types.ClusterPatch, *, content_type: str = "application/json", **kwargs: Any @@ -695,7 +697,7 @@ async def begin_update( :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str :param parameters: The parameters required to patch a Log Analytics cluster. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.ClusterPatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -738,7 +740,7 @@ async def begin_update( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.ClusterPatch, JSON, IO[bytes]], + parameters: Union[_models.ClusterPatch, _types.ClusterPatch, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Cluster]: """Updates a Log Analytics cluster. @@ -748,9 +750,10 @@ async def begin_update( :type resource_group_name: str :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str - :param parameters: The parameters required to patch a Log Analytics cluster. Is one of the - following types: ClusterPatch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.ClusterPatch or JSON or IO[bytes] + :param parameters: The parameters required to patch a Log Analytics cluster. Is either a + ClusterPatch type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.ClusterPatch or + ~azure.mgmt.loganalytics.types.ClusterPatch or IO[bytes] :return: An instance of AsyncLROPoller that returns Cluster. The Cluster is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.Cluster] @@ -1115,7 +1118,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DataExportsOperations: +class DataExportsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1245,7 +1248,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: JSON, + parameters: _types.DataExport, *, content_type: str = "application/json", **kwargs: Any @@ -1260,7 +1263,7 @@ async def create_or_update( :param data_export_name: The data export rule name. Required. :type data_export_name: str :param parameters: The parameters required to create or update a data export. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.DataExport :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1305,7 +1308,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: Union[_models.DataExport, JSON, IO[bytes]], + parameters: Union[_models.DataExport, _types.DataExport, IO[bytes]], **kwargs: Any ) -> _models.DataExport: """Create or update a data export. @@ -1317,9 +1320,10 @@ async def create_or_update( :type workspace_name: str :param data_export_name: The data export rule name. Required. :type data_export_name: str - :param parameters: The parameters required to create or update a data export. Is one of the - following types: DataExport, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.DataExport or JSON or IO[bytes] + :param parameters: The parameters required to create or update a data export. Is either a + DataExport type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.DataExport or + ~azure.mgmt.loganalytics.types.DataExport or IO[bytes] :return: DataExport. The DataExport is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.DataExport :raises ~azure.core.exceptions.HttpResponseError: @@ -1555,7 +1559,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class WorkspacesOperations: +class WorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1648,7 +1652,7 @@ async def _create_or_update_initial( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.Workspace, JSON, IO[bytes]], + parameters: Union[_models.Workspace, _types.Workspace, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1756,7 +1760,7 @@ async def begin_create_or_update( self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: _types.Workspace, *, content_type: str = "application/json", **kwargs: Any @@ -1769,7 +1773,7 @@ async def begin_create_or_update( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param parameters: The parameters required to create or update a workspace. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Workspace :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1812,7 +1816,7 @@ async def begin_create_or_update( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.Workspace, JSON, IO[bytes]], + parameters: Union[_models.Workspace, _types.Workspace, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Workspace]: """Create or update a workspace. @@ -1822,9 +1826,10 @@ async def begin_create_or_update( :type resource_group_name: str :param workspace_name: The name of the workspace. Required. :type workspace_name: str - :param parameters: The parameters required to create or update a workspace. Is one of the - following types: Workspace, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Workspace or JSON or IO[bytes] + :param parameters: The parameters required to create or update a workspace. Is either a + Workspace type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Workspace or + ~azure.mgmt.loganalytics.types.Workspace or IO[bytes] :return: An instance of AsyncLROPoller that returns Workspace. The Workspace is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.Workspace] @@ -1914,7 +1919,7 @@ async def update( self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: _types.WorkspacePatch, *, content_type: str = "application/json", **kwargs: Any @@ -1927,7 +1932,7 @@ async def update( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param parameters: The parameters required to patch a workspace. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.WorkspacePatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1968,7 +1973,7 @@ async def update( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.WorkspacePatch, JSON, IO[bytes]], + parameters: Union[_models.WorkspacePatch, _types.WorkspacePatch, IO[bytes]], **kwargs: Any ) -> _models.Workspace: """Updates a workspace. @@ -1978,9 +1983,10 @@ async def update( :type resource_group_name: str :param workspace_name: The name of the workspace. Required. :type workspace_name: str - :param parameters: The parameters required to patch a workspace. Is one of the following types: - WorkspacePatch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.WorkspacePatch or JSON or IO[bytes] + :param parameters: The parameters required to patch a workspace. Is either a WorkspacePatch + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.WorkspacePatch or + ~azure.mgmt.loganalytics.types.WorkspacePatch or IO[bytes] :return: Workspace. The Workspace is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.Workspace :raises ~azure.core.exceptions.HttpResponseError: @@ -2944,7 +2950,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DataSourcesOperations: +class DataSourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3074,7 +3080,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: JSON, + parameters: _types.DataSource, *, content_type: str = "application/json", **kwargs: Any @@ -3089,7 +3095,7 @@ async def create_or_update( :param data_source_name: Name of the datasource. Required. :type data_source_name: str :param parameters: The parameters required to create or update a datasource. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.DataSource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3134,7 +3140,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: Union[_models.DataSource, JSON, IO[bytes]], + parameters: Union[_models.DataSource, _types.DataSource, IO[bytes]], **kwargs: Any ) -> _models.DataSource: """Create or update a data source. @@ -3146,9 +3152,10 @@ async def create_or_update( :type workspace_name: str :param data_source_name: Name of the datasource. Required. :type data_source_name: str - :param parameters: The parameters required to create or update a datasource. Is one of the - following types: DataSource, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.DataSource or JSON or IO[bytes] + :param parameters: The parameters required to create or update a datasource. Is either a + DataSource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.DataSource or + ~azure.mgmt.loganalytics.types.DataSource or IO[bytes] :return: DataSource. The DataSource is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.DataSource :raises ~azure.core.exceptions.HttpResponseError: @@ -3397,7 +3404,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LinkedServicesOperations: +class LinkedServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3496,7 +3503,7 @@ async def _create_or_update_initial( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: Union[_models.LinkedService, JSON, IO[bytes]], + parameters: Union[_models.LinkedService, _types.LinkedService, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -3609,7 +3616,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: JSON, + parameters: _types.LinkedService, *, content_type: str = "application/json", **kwargs: Any @@ -3624,7 +3631,7 @@ async def begin_create_or_update( :param linked_service_name: Name of the linked service. Required. :type linked_service_name: str :param parameters: The parameters required to create or update a linked service. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.LinkedService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3671,7 +3678,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: Union[_models.LinkedService, JSON, IO[bytes]], + parameters: Union[_models.LinkedService, _types.LinkedService, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.LinkedService]: """Create or update a linked service. @@ -3683,9 +3690,10 @@ async def begin_create_or_update( :type workspace_name: str :param linked_service_name: Name of the linked service. Required. :type linked_service_name: str - :param parameters: The parameters required to create or update a linked service. Is one of the - following types: LinkedService, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.LinkedService or JSON or IO[bytes] + :param parameters: The parameters required to create or update a linked service. Is either a + LinkedService type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.LinkedService or + ~azure.mgmt.loganalytics.types.LinkedService or IO[bytes] :return: An instance of AsyncLROPoller that returns LinkedService. The LinkedService is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.LinkedService] @@ -3977,7 +3985,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SavedSearchesOperations: +class SavedSearchesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4107,7 +4115,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: JSON, + parameters: _types.SavedSearch, *, content_type: str = "application/json", **kwargs: Any @@ -4122,7 +4130,7 @@ async def create_or_update( :param saved_search_id: The id of the saved search. Required. :type saved_search_id: str :param parameters: The parameters required to save a search. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SavedSearch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4167,7 +4175,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: Union[_models.SavedSearch, JSON, IO[bytes]], + parameters: Union[_models.SavedSearch, _types.SavedSearch, IO[bytes]], **kwargs: Any ) -> _models.SavedSearch: """Creates or updates a saved search for a given workspace. @@ -4179,9 +4187,10 @@ async def create_or_update( :type workspace_name: str :param saved_search_id: The id of the saved search. Required. :type saved_search_id: str - :param parameters: The parameters required to save a search. Is one of the following types: - SavedSearch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SavedSearch or JSON or IO[bytes] + :param parameters: The parameters required to save a search. Is either a SavedSearch type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SavedSearch or + ~azure.mgmt.loganalytics.types.SavedSearch or IO[bytes] :return: SavedSearch. The SavedSearch is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.SavedSearch :raises ~azure.core.exceptions.HttpResponseError: @@ -4387,7 +4396,7 @@ async def list_by_workspace( return deserialized # type: ignore -class TablesOperations: +class TablesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4484,7 +4493,7 @@ async def _create_or_update_initial( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -4595,7 +4604,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: _types.Table, *, content_type: str = "application/json", **kwargs: Any @@ -4610,7 +4619,7 @@ async def begin_create_or_update( :param table_name: The name of the table. Required. :type table_name: str :param parameters: The parameters required to update table properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4657,7 +4666,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Table]: """Update or Create a Log Analytics workspace table. @@ -4669,9 +4678,10 @@ async def begin_create_or_update( :type workspace_name: str :param table_name: The name of the table. Required. :type table_name: str - :param parameters: The parameters required to update table properties. Is one of the following - types: Table, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Table or JSON or IO[bytes] + :param parameters: The parameters required to update table properties. Is either a Table type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Table or ~azure.mgmt.loganalytics.types.Table + or IO[bytes] :return: An instance of AsyncLROPoller that returns Table. The Table is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.Table] @@ -4735,7 +4745,7 @@ async def _update_initial( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -4846,7 +4856,7 @@ async def begin_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: _types.Table, *, content_type: str = "application/json", **kwargs: Any @@ -4861,7 +4871,7 @@ async def begin_update( :param table_name: The name of the table. Required. :type table_name: str :param parameters: The parameters required to update table properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4908,7 +4918,7 @@ async def begin_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Table]: """Update a Log Analytics workspace table. @@ -4920,9 +4930,10 @@ async def begin_update( :type workspace_name: str :param table_name: The name of the table. Required. :type table_name: str - :param parameters: The parameters required to update table properties. Is one of the following - types: Table, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Table or JSON or IO[bytes] + :param parameters: The parameters required to update table properties. Is either a Table type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Table or ~azure.mgmt.loganalytics.types.Table + or IO[bytes] :return: An instance of AsyncLROPoller that returns Table. The Table is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.Table] @@ -5334,7 +5345,7 @@ async def cancel_search( return cls(pipeline_response, None, {}) # type: ignore -class AvailableServiceTiersOperations: +class AvailableServiceTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5426,7 +5437,7 @@ async def list_by_workspace( return deserialized # type: ignore -class GatewaysOperations: +class GatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5506,7 +5517,7 @@ async def delete(self, resource_group_name: str, workspace_name: str, gateway_id return cls(pipeline_response, None, {}) # type: ignore -class IntelligencePacksOperations: +class IntelligencePacksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5723,7 +5734,7 @@ async def list( return deserialized # type: ignore -class ManagementGroupsOperations: +class ManagementGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5846,7 +5857,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SchemaOperations: +class SchemaOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5938,7 +5949,7 @@ async def get( return deserialized # type: ignore -class SharedKeysOperations: +class SharedKeysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6099,7 +6110,7 @@ async def regenerate(self, resource_group_name: str, workspace_name: str, **kwar return deserialized # type: ignore -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6221,7 +6232,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class WorkspacePurgeOperations: +class WorkspacePurgeOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6282,7 +6293,7 @@ async def purge( self, resource_group_name: str, workspace_name: str, - body: JSON, + body: _types.WorkspacePurgeBody, *, content_type: str = "application/json", **kwargs: Any @@ -6305,7 +6316,7 @@ async def purge( :type workspace_name: str :param body: Describes the body of a request to purge data in a single table of an Log Analytics Workspace. Required. - :type body: JSON + :type body: ~azure.mgmt.loganalytics.types.WorkspacePurgeBody :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6356,7 +6367,7 @@ async def purge( self, resource_group_name: str, workspace_name: str, - body: Union[_models.WorkspacePurgeBody, JSON, IO[bytes]], + body: Union[_models.WorkspacePurgeBody, _types.WorkspacePurgeBody, IO[bytes]], **kwargs: Any ) -> _models.WorkspacePurgeResponse: """Purges data in an Log Analytics workspace by a set of user-defined filters. @@ -6376,9 +6387,9 @@ async def purge( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param body: Describes the body of a request to purge data in a single table of an Log - Analytics Workspace. Is one of the following types: WorkspacePurgeBody, JSON, IO[bytes] - Required. - :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeBody or JSON or IO[bytes] + Analytics Workspace. Is either a WorkspacePurgeBody type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeBody or + ~azure.mgmt.loganalytics.types.WorkspacePurgeBody or IO[bytes] :return: WorkspacePurgeResponse. The WorkspacePurgeResponse is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.WorkspacePurgeResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -6532,8 +6543,271 @@ async def get_purge_status( return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-03-01", + params_added_on={ + "2026-03-01": ["api_version", "subscription_id", "resource_group_name", "workspace_name", "content_type"] + }, + api_versions_list=["2026-03-01"], + ) + async def _purge_lake_data_initial( + self, + resource_group_name: str, + workspace_name: str, + body: Union[_models.WorkspacePurgeLakeDataBody, _types.WorkspacePurgeLakeDataBody, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_workspace_purge_purge_lake_data_request( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: _models.WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: _types.WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: ~azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataBody + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2026-03-01", + params_added_on={ + "2026-03-01": ["api_version", "subscription_id", "resource_group_name", "workspace_name", "content_type"] + }, + api_versions_list=["2026-03-01"], + ) + async def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: Union[_models.WorkspacePurgeLakeDataBody, _types.WorkspacePurgeLakeDataBody, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. -class LinkedStorageAccountsOperations: + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Is either a WorkspacePurgeLakeDataBody type or a IO[bytes] type. + Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody or + ~azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataBody or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._purge_lake_data_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + body=body, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class LinkedStorageAccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6674,7 +6948,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_source_type: Union[str, _models.DataSourceType], - parameters: JSON, + parameters: _types.LinkedStorageAccountsResource, *, content_type: str = "application/json", **kwargs: Any @@ -6692,7 +6966,7 @@ async def create_or_update( :type data_source_type: str or ~azure.mgmt.loganalytics.models.DataSourceType :param parameters: The parameters required to create or update linked storage accounts. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.LinkedStorageAccountsResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6742,7 +7016,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, data_source_type: Union[str, _models.DataSourceType], - parameters: Union[_models.LinkedStorageAccountsResource, JSON, IO[bytes]], + parameters: Union[_models.LinkedStorageAccountsResource, _types.LinkedStorageAccountsResource, IO[bytes]], **kwargs: Any ) -> _models.LinkedStorageAccountsResource: """Create or Update a link relation between current workspace and a group of storage accounts of a @@ -6756,10 +7030,10 @@ async def create_or_update( :param data_source_type: Linked storage accounts type. Known values are: "CustomLogs", "AzureWatson", "Query", "Ingestion", and "Alerts". Required. :type data_source_type: str or ~azure.mgmt.loganalytics.models.DataSourceType - :param parameters: The parameters required to create or update linked storage accounts. Is one - of the following types: LinkedStorageAccountsResource, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource or JSON or - IO[bytes] + :param parameters: The parameters required to create or update linked storage accounts. Is + either a LinkedStorageAccountsResource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource or + ~azure.mgmt.loganalytics.types.LinkedStorageAccountsResource or IO[bytes] :return: LinkedStorageAccountsResource. The LinkedStorageAccountsResource is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource @@ -7006,7 +7280,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class QueriesOperations: +class QueriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7139,7 +7413,7 @@ async def put( resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: _types.LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -7155,7 +7429,7 @@ async def put( :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack. Required. - :type query_payload: JSON + :type query_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7203,7 +7477,7 @@ async def put( resource_group_name: str, query_pack_name: str, id: str, - query_payload: Union[_models.LogAnalyticsQueryPackQuery, JSON, IO[bytes]], + query_payload: Union[_models.LogAnalyticsQueryPackQuery, _types.LogAnalyticsQueryPackQuery, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPackQuery: """Adds or Updates a specific Query within a Log Analytics QueryPack. @@ -7216,10 +7490,10 @@ async def put( :param id: The id of a specific query defined in the Log Analytics QueryPack. Required. :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to - a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuery, JSON, - IO[bytes] Required. - :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or JSON or - IO[bytes] + a Log Analytics QueryPack. Is either a LogAnalyticsQueryPackQuery type or a IO[bytes] type. + Required. + :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery or IO[bytes] :return: LogAnalyticsQueryPackQuery. The LogAnalyticsQueryPackQuery is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery @@ -7331,7 +7605,7 @@ async def update( resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: _types.LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -7347,7 +7621,7 @@ async def update( :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack. Required. - :type query_payload: JSON + :type query_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7395,7 +7669,7 @@ async def update( resource_group_name: str, query_pack_name: str, id: str, - query_payload: Union[_models.LogAnalyticsQueryPackQuery, JSON, IO[bytes]], + query_payload: Union[_models.LogAnalyticsQueryPackQuery, _types.LogAnalyticsQueryPackQuery, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPackQuery: """Adds or Updates a specific Query within a Log Analytics QueryPack. @@ -7408,10 +7682,10 @@ async def update( :param id: The id of a specific query defined in the Log Analytics QueryPack. Required. :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to - a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuery, JSON, - IO[bytes] Required. - :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or JSON or - IO[bytes] + a Log Analytics QueryPack. Is either a LogAnalyticsQueryPackQuery type or a IO[bytes] type. + Required. + :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery or IO[bytes] :return: LogAnalyticsQueryPackQuery. The LogAnalyticsQueryPackQuery is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery @@ -7713,7 +7987,7 @@ def search( self, resource_group_name: str, query_pack_name: str, - query_search_properties: JSON, + query_search_properties: _types.LogAnalyticsQueryPackQuerySearchProperties, *, top: Optional[int] = None, include_body: Optional[bool] = None, @@ -7731,7 +8005,8 @@ def search( :type query_pack_name: str :param query_search_properties: Properties by which to search queries in the given Log Analytics QueryPack. Required. - :type query_search_properties: JSON + :type query_search_properties: + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchProperties :keyword top: Maximum items returned in page. Default value is None. :paramtype top: int :keyword include_body: Flag indicating whether or not to return the body of each applicable @@ -7795,7 +8070,11 @@ def search( self, resource_group_name: str, query_pack_name: str, - query_search_properties: Union[_models.LogAnalyticsQueryPackQuerySearchProperties, JSON, IO[bytes]], + query_search_properties: Union[ + _models.LogAnalyticsQueryPackQuerySearchProperties, + _types.LogAnalyticsQueryPackQuerySearchProperties, + IO[bytes], + ], *, top: Optional[int] = None, include_body: Optional[bool] = None, @@ -7811,10 +8090,11 @@ def search( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param query_search_properties: Properties by which to search queries in the given Log - Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuerySearchProperties, - JSON, IO[bytes] Required. + Analytics QueryPack. Is either a LogAnalyticsQueryPackQuerySearchProperties type or a IO[bytes] + type. Required. :type query_search_properties: - ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties or JSON or IO[bytes] + ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchProperties or IO[bytes] :keyword top: Maximum items returned in page. Default value is None. :paramtype top: int :keyword include_body: Flag indicating whether or not to return the body of each applicable @@ -7928,7 +8208,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class QueryPacksOperations: +class QueryPacksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8051,7 +8331,7 @@ async def create_or_update( self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: _types.LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -8066,7 +8346,7 @@ async def create_or_update( :type query_pack_name: str :param log_analytics_query_pack_payload: Properties that need to be specified to create or update a Log Analytics QueryPack. Required. - :type log_analytics_query_pack_payload: JSON + :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8109,7 +8389,7 @@ async def create_or_update( self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, JSON, IO[bytes]], + log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, _types.LogAnalyticsQueryPack, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for @@ -8121,10 +8401,10 @@ async def create_or_update( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param log_analytics_query_pack_payload: Properties that need to be specified to create or - update a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPack, JSON, - IO[bytes] Required. + update a Log Analytics QueryPack. Is either a LogAnalyticsQueryPack type or a IO[bytes] type. + Required. :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack - or JSON or IO[bytes] + or ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -8228,7 +8508,7 @@ async def update_tags( self, resource_group_name: str, query_pack_name: str, - query_pack_tags: JSON, + query_pack_tags: _types.TagsResource, *, content_type: str = "application/json", **kwargs: Any @@ -8241,7 +8521,7 @@ async def update_tags( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param query_pack_tags: Updated tag information to set into the QueryPack instance. Required. - :type query_pack_tags: JSON + :type query_pack_tags: ~azure.mgmt.loganalytics.types.TagsResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8282,7 +8562,7 @@ async def update_tags( self, resource_group_name: str, query_pack_name: str, - query_pack_tags: Union[_models.TagsResource, JSON, IO[bytes]], + query_pack_tags: Union[_models.TagsResource, _types.TagsResource, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. @@ -8292,9 +8572,10 @@ async def update_tags( :type resource_group_name: str :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str - :param query_pack_tags: Updated tag information to set into the QueryPack instance. Is one of - the following types: TagsResource, JSON, IO[bytes] Required. - :type query_pack_tags: ~azure.mgmt.loganalytics.models.TagsResource or JSON or IO[bytes] + :param query_pack_tags: Updated tag information to set into the QueryPack instance. Is either a + TagsResource type or a IO[bytes] type. Required. + :type query_pack_tags: ~azure.mgmt.loganalytics.models.TagsResource or + ~azure.mgmt.loganalytics.types.TagsResource or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -8646,7 +8927,7 @@ async def create_or_update_without_name( async def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: _types.LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -8658,7 +8939,7 @@ async def create_or_update_without_name( Required. :type resource_group_name: str :param log_analytics_query_pack_payload: The request body. Required. - :type log_analytics_query_pack_payload: JSON + :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8696,7 +8977,7 @@ async def create_or_update_without_name( async def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, JSON, IO[bytes]], + log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, _types.LogAnalyticsQueryPack, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Creates a Log Analytics QueryPack. Note: You cannot specify a different value for @@ -8705,10 +8986,10 @@ async def create_or_update_without_name( :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param log_analytics_query_pack_payload: The request body. Is one of the following types: - LogAnalyticsQueryPack, JSON, IO[bytes] Required. + :param log_analytics_query_pack_payload: The request body. Is either a LogAnalyticsQueryPack + type or a IO[bytes] type. Required. :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack - or JSON or IO[bytes] + or ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -8780,7 +9061,7 @@ async def create_or_update_without_name( return deserialized # type: ignore -class StorageInsightConfigsOperations: +class StorageInsightConfigsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8910,7 +9191,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: JSON, + parameters: _types.StorageInsight, *, content_type: str = "application/json", **kwargs: Any @@ -8925,7 +9206,7 @@ async def create_or_update( :param storage_insight_name: Name of the storageInsightsConfigs resource. Required. :type storage_insight_name: str :param parameters: The parameters required to create or update a storage insight. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.StorageInsight :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8970,7 +9251,7 @@ async def create_or_update( resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: Union[_models.StorageInsight, JSON, IO[bytes]], + parameters: Union[_models.StorageInsight, _types.StorageInsight, IO[bytes]], **kwargs: Any ) -> _models.StorageInsight: """Create or update a storage insight. @@ -8982,9 +9263,10 @@ async def create_or_update( :type workspace_name: str :param storage_insight_name: Name of the storageInsightsConfigs resource. Required. :type storage_insight_name: str - :param parameters: The parameters required to create or update a storage insight. Is one of the - following types: StorageInsight, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight or JSON or IO[bytes] + :param parameters: The parameters required to create or update a storage insight. Is either a + StorageInsight type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight or + ~azure.mgmt.loganalytics.types.StorageInsight or IO[bytes] :return: StorageInsight. The StorageInsight is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.StorageInsight :raises ~azure.core.exceptions.HttpResponseError: @@ -9222,7 +9504,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SummaryLogsOperations: +class SummaryLogsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9321,7 +9603,7 @@ async def _create_or_update_initial( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogs, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogs, _types.SummaryLogs, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -9436,7 +9718,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: _types.SummaryLogs, *, content_type: str = "application/json", **kwargs: Any @@ -9451,7 +9733,7 @@ async def begin_create_or_update( :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str :param parameters: The parameters required to update summary rules properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SummaryLogs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9498,7 +9780,7 @@ async def begin_create_or_update( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogs, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogs, _types.SummaryLogs, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.SummaryLogs]: """Creates or updates Log Analytics workspace Summary rules. @@ -9510,9 +9792,10 @@ async def begin_create_or_update( :type workspace_name: str :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str - :param parameters: The parameters required to update summary rules properties. Is one of the - following types: SummaryLogs, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogs or JSON or IO[bytes] + :param parameters: The parameters required to update summary rules properties. Is either a + SummaryLogs type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogs or + ~azure.mgmt.loganalytics.types.SummaryLogs or IO[bytes] :return: An instance of AsyncLROPoller that returns SummaryLogs. The SummaryLogs is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.loganalytics.models.SummaryLogs] @@ -9998,7 +10281,7 @@ async def _retry_bin_initial( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogsRetryBin, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogsRetryBin, _types.SummaryLogsRetryBin, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -10108,7 +10391,7 @@ async def begin_retry_bin( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: _types.SummaryLogsRetryBin, *, content_type: str = "application/json", **kwargs: Any @@ -10123,7 +10406,7 @@ async def begin_retry_bin( :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str :param parameters: The parameters required to retry a Summary rule bin. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SummaryLogsRetryBin :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10168,7 +10451,7 @@ async def begin_retry_bin( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogsRetryBin, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogsRetryBin, _types.SummaryLogsRetryBin, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[None]: """Retries a failed Summary rule bin. @@ -10180,9 +10463,10 @@ async def begin_retry_bin( :type workspace_name: str :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str - :param parameters: The parameters required to retry a Summary rule bin. Is one of the following - types: SummaryLogsRetryBin, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogsRetryBin or JSON or IO[bytes] + :param parameters: The parameters required to retry a Summary rule bin. Is either a + SummaryLogsRetryBin type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogsRetryBin or + ~azure.mgmt.loganalytics.types.SummaryLogsRetryBin or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -10236,7 +10520,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class OperationStatusesOperations: +class OperationStatusesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10325,7 +10609,7 @@ async def get(self, location: str, async_operation_id: str, **kwargs: Any) -> _m return deserialized # type: ignore -class DeletedWorkspacesOperations: +class DeletedWorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/__init__.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/__init__.py index 24b9c9bf0711..8bbf5ecc4001 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/__init__.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/__init__.py @@ -87,9 +87,11 @@ StorageInsightProperties, StorageInsightStatus, SummaryLogs, + SummaryLogsIdentity, SummaryLogsProperties, SummaryLogsRetryBin, SummaryLogsRetryBinProperties, + SummaryLogsUserIdentityProperties, SystemData, Table, TableProperties, @@ -107,6 +109,8 @@ WorkspaceProperties, WorkspacePurgeBody, WorkspacePurgeBodyFilters, + WorkspacePurgeLakeDataBody, + WorkspacePurgeLakeDataTimeRange, WorkspacePurgeResponse, WorkspacePurgeStatusResponse, WorkspaceReplicationProperties, @@ -141,8 +145,10 @@ SourceEnum, StatusCodeEnum, StorageInsightState, + SummaryLogsIdentityType, SummaryLogsProvisioningState, TablePlanEnum, + TableProtectionLevelEnum, TableSubTypeEnum, TableTypeEnum, TimeSelectorEnum, @@ -230,9 +236,11 @@ "StorageInsightProperties", "StorageInsightStatus", "SummaryLogs", + "SummaryLogsIdentity", "SummaryLogsProperties", "SummaryLogsRetryBin", "SummaryLogsRetryBinProperties", + "SummaryLogsUserIdentityProperties", "SystemData", "Table", "TableProperties", @@ -250,6 +258,8 @@ "WorkspaceProperties", "WorkspacePurgeBody", "WorkspacePurgeBodyFilters", + "WorkspacePurgeLakeDataBody", + "WorkspacePurgeLakeDataTimeRange", "WorkspacePurgeResponse", "WorkspacePurgeStatusResponse", "WorkspaceReplicationProperties", @@ -281,8 +291,10 @@ "SourceEnum", "StatusCodeEnum", "StorageInsightState", + "SummaryLogsIdentityType", "SummaryLogsProvisioningState", "TablePlanEnum", + "TableProtectionLevelEnum", "TableSubTypeEnum", "TableTypeEnum", "TimeSelectorEnum", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_enums.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_enums.py index f0cf9dd257d4..848d2b90cfe0 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_enums.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_enums.py @@ -93,6 +93,8 @@ class ColumnDataTypeHintEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}...""" IP = "ip" """A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y.""" + VECTOR16 = "vector16" + """A vector of single-precision floating-point values used for semantic / similarity search.""" class ColumnTypeEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -430,6 +432,16 @@ class StorageInsightState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ERROR.""" +class SummaryLogsIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of managed service identity.""" + + NONE = "None" + """The default identity type. summary logs do not have a managed identity.""" + USER_ASSIGNED = "UserAssigned" + """summary logs is associated with a user assigned managed identity. User assigned identities are + created as separate Azure resources and can be shared across multiple summary logs.""" + + class SummaryLogsProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded. @@ -459,6 +471,16 @@ class TablePlanEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Low-touch logs, such as verbose logs, and data required for auditing and compliance.""" +class TableProtectionLevelEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The protection level of the table. Determines the default data access isolation behavior.""" + + GENERAL = "General" + """The default protection level. Table data is accessible through standard permissions.""" + PROTECTED = "Protected" + """Table data is isolated by default. Accessing or exporting data requires explicit, scoped + authorization.""" + + class TableSubTypeEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The subtype describes what APIs can be used to interact with the table, and what features are available against it. diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_models.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_models.py index cf5edeb2bdf1..b9b91f659404 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_models.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class AccessRule(_Model): +class AccessRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Access rule in a network security perimeter configuration profile. :ivar name: Name of the access rule. @@ -51,7 +51,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessRuleProperties(_Model): +class AccessRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Access Rule. :ivar direction: Known values are: "Inbound" and "Outbound". @@ -125,7 +125,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessRulePropertiesSubscriptionsItem(_Model): +class AccessRulePropertiesSubscriptionsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """we add this model in order to replace subscriptions model in CommonTypes with this model via alternateType decorator. @@ -291,7 +291,7 @@ class CapacityReservationProperties(_Model): """Minimum CapacityReservation value in Gigabytes.""" -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -335,7 +335,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Cluster(TrackedResource): +class Cluster(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level Log Analytics cluster resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -426,7 +426,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ClusterPatch(_Model): +class ClusterPatch(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level Log Analytics cluster resource container. :ivar properties: Log Analytics cluster properties. @@ -493,7 +493,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ClusterPatchProperties(_Model): +class ClusterPatchProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Log Analytics cluster patch properties. :ivar key_vault_properties: The associated key properties. @@ -530,7 +530,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClusterProperties(_Model): +class ClusterProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cluster properties. :ivar cluster_id: The ID associated with the cluster. @@ -632,7 +632,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClusterReplicationProperties(_Model): +class ClusterReplicationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cluster replication properties. :ivar location: The secondary location of the replication. If replication is being enabled, @@ -697,7 +697,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClusterSku(_Model): +class ClusterSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The cluster sku definition. :ivar capacity: The capacity reservation level in Gigabytes for this cluster. @@ -732,7 +732,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Column(_Model): +class Column(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Table column. :ivar name: Column name. @@ -741,9 +741,10 @@ class Column(_Model): "dateTime", "guid", and "dynamic". :vartype type: str or ~azure.mgmt.loganalytics.models.ColumnTypeEnum :ivar data_type_hint: Column data type logical hint. Known values are: "uri", "guid", - "armPath", and "ip". + "armPath", "ip", and "vector16". :vartype data_type_hint: str or ~azure.mgmt.loganalytics.models.ColumnDataTypeHintEnum - :ivar display_name: Column display name. + :ivar display_name: Column display name. Can be set at creation time; after creation, updates + must either match column name or set to null/empty. If not provided, defaults to column name. :vartype display_name: str :ivar description: Column description. :vartype description: str @@ -763,11 +764,13 @@ class Column(_Model): data_type_hint: Optional[Union[str, "_models.ColumnDataTypeHintEnum"]] = rest_field( name="dataTypeHint", visibility=["read", "create", "update", "delete", "query"] ) - """Column data type logical hint. Known values are: \"uri\", \"guid\", \"armPath\", and \"ip\".""" + """Column data type logical hint. Known values are: \"uri\", \"guid\", \"armPath\", \"ip\", and + \"vector16\".""" display_name: Optional[str] = rest_field( name="displayName", visibility=["read", "create", "update", "delete", "query"] ) - """Column display name.""" + """Column display name. Can be set at creation time; after creation, updates must either match + column name or set to null/empty. If not provided, defaults to column name.""" description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Column description.""" is_default_display: Optional[bool] = rest_field(name="isDefaultDisplay", visibility=["read"]) @@ -797,7 +800,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CoreSummary(_Model): +class CoreSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The core summary of a search. :ivar status: The status of a core summary. @@ -849,7 +852,7 @@ class ProxyResource(Resource): """ -class DataExport(ProxyResource): +class DataExport(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level data export resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -910,7 +913,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DataExportProperties(_Model): +class DataExportProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Data Export properties. :ivar data_export_id: The data export rule ID. @@ -972,7 +975,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataSource(ProxyResource): +class DataSource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Datasources under OMS Workspace. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1051,7 +1054,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Destination(_Model): +class Destination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Destination properties. :ivar resource_id: The destination resource ID. This can be copied from the Properties entry of @@ -1113,7 +1116,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DestinationMetaData(_Model): +class DestinationMetaData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Destination meta data. :ivar event_hub_name: Optional. Allows to define an Event Hub name. Not applicable when @@ -1189,7 +1192,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -1217,7 +1220,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Identity(_Model): +class Identity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the resource. :ivar principal_id: The principal ID of resource identity. @@ -1267,7 +1270,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IntelligencePack(_Model): +class IntelligencePack(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Intelligence Pack containing a string name and boolean indicating if it's enabled. :ivar name: The name of the intelligence pack. @@ -1307,7 +1310,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultProperties(_Model): +class KeyVaultProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The key vault properties. :ivar key_vault_uri: The Key Vault uri which holds they key associated with the Log Analytics @@ -1357,7 +1360,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinkedService(ProxyResource): +class LinkedService(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level Linked service resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1423,7 +1426,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LinkedServiceProperties(_Model): +class LinkedServiceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Linked service properties. :ivar resource_id: The resource id of the resource that will be linked to the workspace. This @@ -1473,7 +1476,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinkedStorageAccountsProperties(_Model): +class LinkedStorageAccountsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Linked storage accounts properties. :ivar data_source_type: Linked storage accounts type. Known values are: "CustomLogs", @@ -1511,7 +1514,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinkedStorageAccountsResource(ProxyResource): +class LinkedStorageAccountsResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Linked storage accounts top level resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1572,7 +1575,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LogAnalyticsQueryPack(TrackedResource): +class LogAnalyticsQueryPack(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """An Log Analytics QueryPack definition. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1666,7 +1669,7 @@ class LogAnalyticsQueryPackProperties(_Model): include Succeeded, Deploying, Canceled, and Failed.""" -class LogAnalyticsQueryPackQuery(ProxyResource): +class LogAnalyticsQueryPackQuery(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A Log Analytics QueryPack-Query definition. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1738,7 +1741,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LogAnalyticsQueryPackQueryProperties(_Model): +class LogAnalyticsQueryPackQueryProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties that define an Log Analytics QueryPack-Query resource. :ivar id: The unique ID of your application. This field cannot be changed. @@ -1809,7 +1812,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogAnalyticsQueryPackQueryPropertiesRelated(_Model): # pylint: disable=name-too-long +class LogAnalyticsQueryPackQueryPropertiesRelated( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The related metadata items for the function. :ivar categories: The related categories for the function. @@ -1849,7 +1854,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogAnalyticsQueryPackQuerySearchProperties(_Model): # pylint: disable=name-too-long +class LogAnalyticsQueryPackQuerySearchProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties that define an Log Analytics QueryPack-Query search properties. :ivar related: The related metadata items for the function. @@ -1885,7 +1892,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogAnalyticsQueryPackQuerySearchPropertiesRelated(_Model): # pylint: disable=name-too-long +class LogAnalyticsQueryPackQuerySearchPropertiesRelated( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The related metadata items for the function. :ivar categories: The related categories for the function. @@ -1925,7 +1934,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedServiceIdentity(_Model): +class ManagedServiceIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property @@ -1977,7 +1986,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagementGroup(_Model): +class ManagementGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A management group that is connected to a workspace. :ivar properties: The properties of the management group. @@ -2027,7 +2036,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ManagementGroupProperties(_Model): +class ManagementGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Management group properties. :ivar server_count: The number of servers connected to the management group. @@ -2098,7 +2107,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricName(_Model): +class MetricName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The name of a metric. :ivar value: The system name of the metric. @@ -2133,7 +2142,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeter(_Model): +class NetworkSecurityPerimeter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about a network security perimeter (NSP). :ivar id: Fully qualified Azure resource ID of the NSP resource. @@ -2173,7 +2182,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterConfiguration(ProxyResource): +class NetworkSecurityPerimeterConfiguration( + ProxyResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network security perimeter (NSP) configuration resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2214,7 +2225,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterConfigurationProperties(_Model): # pylint: disable=name-too-long +class NetworkSecurityPerimeterConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Network security configuration properties. :ivar provisioning_state: Known values are: "Succeeded", "Creating", "Updating", "Deleting", @@ -2270,7 +2283,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityProfile(_Model): +class NetworkSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network security perimeter configuration profile. :ivar name: Name of the profile. @@ -2326,7 +2339,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Supported operation of OperationalInsights resource provider. :ivar name: Operation name: {provider}/{resource}/{operation}. @@ -2361,7 +2374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationDisplay(_Model): +class OperationDisplay(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Display metadata associated with the operation. :ivar provider: Service provider: Microsoft OperationsManagement. @@ -2404,7 +2417,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationStatus(_Model): +class OperationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of operation. :ivar id: The operation Id. @@ -2457,7 +2470,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkScopedResource(_Model): +class PrivateLinkScopedResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The private link scope resource reference. :ivar resource_id: The full resource Id of the private link scope resource. @@ -2544,7 +2557,7 @@ class ProvisioningIssueProperties(_Model): """Access rules that can be added to the network security profile (NSP) to remediate the issue.""" -class ResourceAssociation(_Model): +class ResourceAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about resource association. :ivar name: Name of the resource association. @@ -2579,7 +2592,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestoredLogs(_Model): +class RestoredLogs(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Restore parameters. :ivar start_restore_time: The timestamp to start the restore from (UTC). @@ -2646,7 +2659,7 @@ class ResultStatistics(_Model): """Search job: Amount of scanned data.""" -class RuleDefinition(_Model): +class RuleDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule definition parameters. :ivar query: Summary rule query. @@ -2707,7 +2720,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SavedSearch(ProxyResource): +class SavedSearch(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Value object for saved search results. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2781,7 +2794,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SavedSearchesListResult(_Model): +class SavedSearchesListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The saved search list operation response. :ivar value: The array of result values. @@ -2811,7 +2824,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SavedSearchProperties(_Model): +class SavedSearchProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Value object for saved search results. :ivar category: The category of the saved search. This helps the user to find a saved search @@ -2883,7 +2896,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Schema(_Model): +class Schema(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Table's schema. :ivar name: Table name. @@ -2963,7 +2976,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchGetSchemaResponse(_Model): +class SearchGetSchemaResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The get schema operation response. :ivar metadata: The metadata from search results. @@ -3000,7 +3013,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchMetadata(_Model): +class SearchMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata for search results. :ivar search_id: The request id of the search. @@ -3124,7 +3137,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchMetadataSchema(_Model): +class SearchMetadataSchema(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Schema metadata for search. :ivar name: The name of the metadata schema. @@ -3157,7 +3170,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchResults(_Model): +class SearchResults(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters of the search job that initiated this table. :ivar query: Search job query. @@ -3217,7 +3230,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchSchemaValue(_Model): +class SearchSchemaValue(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Value object for schema results. :ivar name: The name of the schema. @@ -3279,7 +3292,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SearchSort(_Model): +class SearchSort(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The sort parameters for search. :ivar name: The name of the field the search query is sorted on. @@ -3314,7 +3327,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedKeys(_Model): +class SharedKeys(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The shared keys for a workspace. :ivar primary_shared_key: The primary shared key of a workspace. @@ -3351,7 +3364,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageAccount(_Model): +class StorageAccount(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a storage account connection. :ivar id: The Azure Resource Manager ID of the storage account resource. Required. @@ -3384,7 +3397,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageInsight(ProxyResource): +class StorageInsight(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level storage insight resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3455,7 +3468,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StorageInsightProperties(_Model): +class StorageInsightProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Storage insight properties. :ivar containers: The names of the blob containers that the workspace should read. @@ -3499,7 +3512,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageInsightStatus(_Model): +class StorageInsightStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of the storage insight. :ivar state: The state of the storage insight connection to the workspace. Required. Known @@ -3536,7 +3549,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SummaryLogs(ProxyResource): +class SummaryLogs(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Workspace data summary rules definition. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3552,12 +3565,19 @@ class SummaryLogs(ProxyResource): :vartype system_data: ~azure.mgmt.loganalytics.models.SystemData :ivar properties: Summary rule properties. :vartype properties: ~azure.mgmt.loganalytics.models.SummaryLogsProperties + :ivar identity: The managed identity of the summary logs resource. Only user-assigned identity + is supported. + :vartype identity: ~azure.mgmt.loganalytics.models.SummaryLogsIdentity """ properties: Optional["_models.SummaryLogsProperties"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """Summary rule properties.""" + identity: Optional["_models.SummaryLogsIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed identity of the summary logs resource. Only user-assigned identity is supported.""" __flattened_items = [ "rule_type", @@ -3574,6 +3594,7 @@ def __init__( self, *, properties: Optional["_models.SummaryLogsProperties"] = None, + identity: Optional["_models.SummaryLogsIdentity"] = None, ) -> None: ... @overload @@ -3605,7 +3626,58 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SummaryLogsProperties(_Model): +class SummaryLogsIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Identity for the summary logs resource. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :ivar type: Type of managed service identity. Required. Known values are: "None" and + "UserAssigned". + :vartype type: str or ~azure.mgmt.loganalytics.models.SummaryLogsIdentityType + :ivar user_assigned_identities: The list of user identities associated with the resource. The + user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.loganalytics.models.SummaryLogsUserIdentityProperties] + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal ID of resource identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID of resource.""" + type: Union[str, "_models.SummaryLogsIdentityType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Type of managed service identity. Required. Known values are: \"None\" and \"UserAssigned\".""" + user_assigned_identities: Optional[dict[str, "_models.SummaryLogsUserIdentityProperties"]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of user identities associated with the resource. The user identity dictionary key + references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.SummaryLogsIdentityType"], + user_assigned_identities: Optional[dict[str, "_models.SummaryLogsUserIdentityProperties"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SummaryLogsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Summary rule properties. :ivar rule_type: SummaryRules rule type: User. "User" @@ -3677,7 +3749,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SummaryLogsRetryBin(_Model): +class SummaryLogsRetryBin(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request to retry a summary logs bin. :ivar properties: Retry bin properties. @@ -3707,7 +3779,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SummaryLogsRetryBinProperties(_Model): +class SummaryLogsRetryBinProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties for retrying a Summary rule bin. :ivar retry_bin_start_time: The time (UTC) of the bin to retry. Required. @@ -3737,7 +3809,22 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SummaryLogsUserIdentityProperties(_Model): + """User assigned identity properties. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal id of user assigned identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) + """The client id of user assigned identity.""" + + +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -3804,7 +3891,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Table(ProxyResource): +class Table(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Workspace data table definition. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3835,6 +3922,7 @@ class Table(ProxyResource): "restored_logs", "result_statistics", "plan", + "protection_level", "last_plan_modified_date", "schema", "provisioning_state", @@ -3878,7 +3966,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class TableProperties(_Model): +class TableProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Table properties. :ivar retention_in_days: In Analytics table: the tables analytics retention in days, between 4 @@ -3900,6 +3988,9 @@ class TableProperties(_Model): :ivar plan: Instruct the system how to handle and charge the logs ingested to this table. Known values are: "Basic", "Analytics", and "Auxiliary". :vartype plan: str or ~azure.mgmt.loganalytics.models.TablePlanEnum + :ivar protection_level: The protection level of the table. Determines the default data access + isolation behavior. Known values are: "General" and "Protected". + :vartype protection_level: str or ~azure.mgmt.loganalytics.models.TableProtectionLevelEnum :ivar last_plan_modified_date: The timestamp that table plan was last modified (UTC). :vartype last_plan_modified_date: str :ivar schema: Table schema. @@ -3945,6 +4036,11 @@ class TableProperties(_Model): ) """Instruct the system how to handle and charge the logs ingested to this table. Known values are: \"Basic\", \"Analytics\", and \"Auxiliary\".""" + protection_level: Optional[Union[str, "_models.TableProtectionLevelEnum"]] = rest_field( + name="protectionLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """The protection level of the table. Determines the default data access isolation behavior. Known + values are: \"General\" and \"Protected\".""" last_plan_modified_date: Optional[str] = rest_field(name="lastPlanModifiedDate", visibility=["read"]) """The timestamp that table plan was last modified (UTC).""" schema: Optional["_models.Schema"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) @@ -3971,6 +4067,7 @@ def __init__( search_results: Optional["_models.SearchResults"] = None, restored_logs: Optional["_models.RestoredLogs"] = None, plan: Optional[Union[str, "_models.TablePlanEnum"]] = None, + protection_level: Optional[Union[str, "_models.TableProtectionLevelEnum"]] = None, schema: Optional["_models.Schema"] = None, ) -> None: ... @@ -3985,7 +4082,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Tag(_Model): +class Tag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A tag of a saved search. :ivar name: The tag name. Required. @@ -4018,7 +4115,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TagsResource(_Model): +class TagsResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A container holding only the Tags for a resource, allowing the user to update the tags on a QueryPack instance. @@ -4047,7 +4144,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UsageMetric(_Model): +class UsageMetric(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A metric describing the usage of a resource. :ivar name: The name of the metric. @@ -4136,7 +4233,7 @@ class UserIdentityProperties(_Model): """The client id of user assigned identity.""" -class Workspace(TrackedResource): +class Workspace(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level Workspace resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4229,7 +4326,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class WorkspaceCapping(_Model): +class WorkspaceCapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The daily volume cap for ingestion. :ivar daily_quota_gb: The workspace daily quota for ingestion. @@ -4291,7 +4388,7 @@ class WorkspaceFailoverProperties(_Model): """The last time when the failover state was updated.""" -class WorkspaceFeatures(_Model): +class WorkspaceFeatures(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Workspace features. :ivar enable_data_export: Flag that indicate if data should be exported. @@ -4312,6 +4409,8 @@ class WorkspaceFeatures(_Model): :ivar associations: List of associations for the workspace. Indicates if the workspace is associated with any of the following experiences: MDC, Sentinel, SentinelGraph, etc. :vartype associations: list[str] + :ivar data_authorization_mode: Enable Data authorization mode for the workspace. + :vartype data_authorization_mode: bool """ enable_data_export: Optional[bool] = rest_field( @@ -4339,6 +4438,10 @@ class WorkspaceFeatures(_Model): associations: Optional[list[str]] = rest_field(visibility=["read"]) """List of associations for the workspace. Indicates if the workspace is associated with any of the following experiences: MDC, Sentinel, SentinelGraph, etc.""" + data_authorization_mode: Optional[bool] = rest_field( + name="dataAuthorizationMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Enable Data authorization mode for the workspace.""" @overload def __init__( @@ -4349,6 +4452,7 @@ def __init__( enable_log_access_using_only_resource_permissions: Optional[bool] = None, cluster_resource_id: Optional[str] = None, disable_local_auth: Optional[bool] = None, + data_authorization_mode: Optional[bool] = None, ) -> None: ... @overload @@ -4362,7 +4466,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspacePatch(AzureEntityResource): +class WorkspacePatch(AzureEntityResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The top level Workspace resource container. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4451,7 +4555,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class WorkspaceProperties(_Model): +class WorkspaceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Workspace properties. :ivar provisioning_state: The provisioning state of the workspace. Known values are: @@ -4584,7 +4688,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspacePurgeBody(_Model): +class WorkspacePurgeBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the body of a purge request for an App Insights Workspace. :ivar table: Table from which to purge data. Required. @@ -4621,7 +4725,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspacePurgeBodyFilters(_Model): +class WorkspacePurgeBodyFilters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """User-defined filters to return data which will be purged from the table. :ivar column: The column of the table over which the given query should run. @@ -4671,7 +4775,85 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspacePurgeResponse(_Model): +class WorkspacePurgeLakeDataBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Describes the body of a request to purge data lake data in a Log Analytics workspace. + + :ivar table: The name of the table from which to purge data lake data. Must be an Auxiliary + table, or an Analytics table that is mirrored to the data lake. Required. + :vartype table: str + :ivar time_range: The time range over which data lake data is purged. Required. + :vartype time_range: ~azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataTimeRange + """ + + table: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the table from which to purge data lake data. Must be an Auxiliary table, or an + Analytics table that is mirrored to the data lake. Required.""" + time_range: "_models.WorkspacePurgeLakeDataTimeRange" = rest_field( + name="timeRange", visibility=["read", "create", "update", "delete", "query"] + ) + """The time range over which data lake data is purged. Required.""" + + @overload + def __init__( + self, + *, + table: str, + time_range: "_models.WorkspacePurgeLakeDataTimeRange", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkspacePurgeLakeDataTimeRange(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The time range over which a data lake purge request operates. + + :ivar start_time: The inclusive start of the time range, in UTC. Must fall on an hour boundary + (minutes and seconds must be zero). Required. + :vartype start_time: ~datetime.datetime + :ivar end_time: The exclusive end of the time range, in UTC. Must fall on an hour boundary and + be earlier than the start of the current hour. Required. + :vartype end_time: ~datetime.datetime + """ + + start_time: datetime.datetime = rest_field( + name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The inclusive start of the time range, in UTC. Must fall on an hour boundary (minutes and + seconds must be zero). Required.""" + end_time: datetime.datetime = rest_field( + name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The exclusive end of the time range, in UTC. Must fall on an hour boundary and be earlier than + the start of the current hour. Required.""" + + @overload + def __init__( + self, + *, + start_time: datetime.datetime, + end_time: datetime.datetime, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkspacePurgeResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response containing operationId for a specific purge action. :ivar operation_id: Id to use when querying for status for a particular purge operation. @@ -4700,7 +4882,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspacePurgeStatusResponse(_Model): +class WorkspacePurgeStatusResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response containing status for a specific purge operation. :ivar status: Status of the operation represented by the requested Id. Required. Known values @@ -4730,7 +4912,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspaceReplicationProperties(_Model): +class WorkspaceReplicationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Workspace replication properties. :ivar location: The location of the replication. @@ -4787,7 +4969,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkspaceSku(_Model): +class WorkspaceSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The SKU (tier) of a workspace. :ivar name: The name of the SKU. Required. Known values are: "Free", "Standard", "Premium", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_operations.py index 8d0658d1e76f..a00c57e07002 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/_operations.py @@ -32,14 +32,14 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models as _models +from .. import models as _models, types as _types from .._configuration import LogAnalyticsManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +from .._validation import api_version_validation T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() @@ -50,7 +50,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ def build_clusters_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +100,7 @@ def build_clusters_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -131,7 +131,7 @@ def build_clusters_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -160,7 +160,7 @@ def build_clusters_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}" path_format_arguments = { @@ -183,7 +183,7 @@ def build_clusters_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -208,7 +208,7 @@ def build_clusters_list_request(subscription_id: str, **kwargs: Any) -> HttpRequ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -234,7 +234,7 @@ def build_data_exports_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -264,7 +264,7 @@ def build_data_exports_create_or_update_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -294,7 +294,7 @@ def build_data_exports_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}" path_format_arguments = { @@ -318,7 +318,7 @@ def build_data_exports_list_by_workspace_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -346,7 +346,7 @@ def build_workspaces_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -375,7 +375,7 @@ def build_workspaces_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -406,7 +406,7 @@ def build_workspaces_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -435,7 +435,7 @@ def build_workspaces_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}" path_format_arguments = { @@ -460,7 +460,7 @@ def build_workspaces_list_by_resource_group_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -485,7 +485,7 @@ def build_workspaces_list_request(subscription_id: str, **kwargs: Any) -> HttpRe _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -510,7 +510,7 @@ def build_workspaces_failback_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/failback" path_format_arguments = { @@ -537,7 +537,7 @@ def build_workspaces_get_nsp_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -568,7 +568,7 @@ def build_workspaces_list_nsp_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -599,7 +599,7 @@ def build_workspaces_reconcile_nsp_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile" path_format_arguments = { @@ -624,7 +624,7 @@ def build_workspaces_failover_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/locations/{location}/workspaces/{workspaceName}/failover" path_format_arguments = { @@ -648,7 +648,7 @@ def build_data_sources_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -678,7 +678,7 @@ def build_data_sources_create_or_update_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -708,7 +708,7 @@ def build_data_sources_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}" path_format_arguments = { @@ -738,7 +738,7 @@ def build_data_sources_list_by_workspace_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -769,7 +769,7 @@ def build_linked_services_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -799,7 +799,7 @@ def build_linked_services_create_or_update_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -830,7 +830,7 @@ def build_linked_services_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -859,7 +859,7 @@ def build_linked_services_list_by_workspace_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -887,7 +887,7 @@ def build_saved_searches_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -917,7 +917,7 @@ def build_saved_searches_create_or_update_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -947,7 +947,7 @@ def build_saved_searches_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}" path_format_arguments = { @@ -971,7 +971,7 @@ def build_saved_searches_list_by_workspace_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -999,7 +999,7 @@ def build_tables_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1029,7 +1029,7 @@ def build_tables_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1061,7 +1061,7 @@ def build_tables_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1091,7 +1091,7 @@ def build_tables_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}" path_format_arguments = { @@ -1115,7 +1115,7 @@ def build_tables_list_by_workspace_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1142,7 +1142,7 @@ def build_tables_migrate_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate" path_format_arguments = { @@ -1165,7 +1165,7 @@ def build_tables_cancel_search_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch" path_format_arguments = { @@ -1189,7 +1189,7 @@ def build_available_service_tiers_list_by_workspace_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1216,7 +1216,7 @@ def build_gateways_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}" path_format_arguments = { @@ -1239,7 +1239,7 @@ def build_intelligence_packs_disable_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable" path_format_arguments = { @@ -1262,7 +1262,7 @@ def build_intelligence_packs_enable_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable" path_format_arguments = { @@ -1286,7 +1286,7 @@ def build_intelligence_packs_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1314,7 +1314,7 @@ def build_management_groups_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1342,7 +1342,7 @@ def build_schema_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1370,7 +1370,7 @@ def build_shared_keys_get_shared_keys_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1398,7 +1398,7 @@ def build_shared_keys_regenerate_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1426,7 +1426,7 @@ def build_usages_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1455,7 +1455,7 @@ def build_workspace_purge_purge_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1485,7 +1485,7 @@ def build_workspace_purge_get_purge_status_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1508,6 +1508,34 @@ def build_workspace_purge_get_purge_status_request( # pylint: disable=name-too- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_workspace_purge_purge_lake_data_request( # pylint: disable=name-too-long + resource_group_name: str, workspace_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purgeLakeData" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_linked_storage_accounts_get_request( # pylint: disable=name-too-long resource_group_name: str, workspace_name: str, @@ -1518,7 +1546,7 @@ def build_linked_storage_accounts_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1552,7 +1580,7 @@ def build_linked_storage_accounts_create_or_update_request( # pylint: disable=n _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1586,7 +1614,7 @@ def build_linked_storage_accounts_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}" path_format_arguments = { @@ -1610,7 +1638,7 @@ def build_linked_storage_accounts_list_by_workspace_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1638,7 +1666,7 @@ def build_queries_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1668,7 +1696,7 @@ def build_queries_put_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1700,7 +1728,7 @@ def build_queries_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1730,7 +1758,7 @@ def build_queries_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}" path_format_arguments = { @@ -1761,7 +1789,7 @@ def build_queries_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1803,7 +1831,7 @@ def build_queries_search_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1839,7 +1867,7 @@ def build_query_packs_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1868,7 +1896,7 @@ def build_query_packs_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1899,7 +1927,7 @@ def build_query_packs_update_tags_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1928,7 +1956,7 @@ def build_query_packs_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}" path_format_arguments = { @@ -1951,7 +1979,7 @@ def build_query_packs_list_by_resource_group_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1976,7 +2004,7 @@ def build_query_packs_list_request(subscription_id: str, **kwargs: Any) -> HttpR _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2003,7 +2031,7 @@ def build_query_packs_create_or_update_without_name_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2032,7 +2060,7 @@ def build_storage_insight_configs_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2062,7 +2090,7 @@ def build_storage_insight_configs_create_or_update_request( # pylint: disable=n _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2092,7 +2120,7 @@ def build_storage_insight_configs_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}" path_format_arguments = { @@ -2116,7 +2144,7 @@ def build_storage_insight_configs_list_by_workspace_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2144,7 +2172,7 @@ def build_summary_logs_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2174,7 +2202,7 @@ def build_summary_logs_create_or_update_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2204,7 +2232,7 @@ def build_summary_logs_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}" path_format_arguments = { @@ -2228,7 +2256,7 @@ def build_summary_logs_list_by_workspace_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2255,7 +2283,7 @@ def build_summary_logs_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/start" path_format_arguments = { @@ -2278,7 +2306,7 @@ def build_summary_logs_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/stop" path_format_arguments = { @@ -2303,7 +2331,7 @@ def build_summary_logs_retry_bin_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/retrybin" path_format_arguments = { @@ -2331,7 +2359,7 @@ def build_operation_statuses_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2357,7 +2385,7 @@ def build_deleted_workspaces_list_request(subscription_id: str, **kwargs: Any) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2383,7 +2411,7 @@ def build_deleted_workspaces_list_by_resource_group_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2404,7 +2432,7 @@ def build_deleted_workspaces_list_by_resource_group_request( # pylint: disable= return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2516,7 +2544,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ClustersOperations: +class ClustersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2609,7 +2637,7 @@ def _create_or_update_initial( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.Cluster, JSON, IO[bytes]], + parameters: Union[_models.Cluster, _types.Cluster, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -2717,7 +2745,7 @@ def begin_create_or_update( self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: _types.Cluster, *, content_type: str = "application/json", **kwargs: Any @@ -2731,7 +2759,7 @@ def begin_create_or_update( :type cluster_name: str :param parameters: The parameters required to create or update a Log Analytics cluster. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Cluster :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2775,7 +2803,7 @@ def begin_create_or_update( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.Cluster, JSON, IO[bytes]], + parameters: Union[_models.Cluster, _types.Cluster, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Cluster]: """Create or update a Log Analytics cluster. @@ -2785,9 +2813,10 @@ def begin_create_or_update( :type resource_group_name: str :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str - :param parameters: The parameters required to create or update a Log Analytics cluster. Is one - of the following types: Cluster, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Cluster or JSON or IO[bytes] + :param parameters: The parameters required to create or update a Log Analytics cluster. Is + either a Cluster type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Cluster or + ~azure.mgmt.loganalytics.types.Cluster or IO[bytes] :return: An instance of LROPoller that returns Cluster. The Cluster is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.Cluster] @@ -2849,7 +2878,7 @@ def _update_initial( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.ClusterPatch, JSON, IO[bytes]], + parameters: Union[_models.ClusterPatch, _types.ClusterPatch, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -2956,7 +2985,7 @@ def begin_update( self, resource_group_name: str, cluster_name: str, - parameters: JSON, + parameters: _types.ClusterPatch, *, content_type: str = "application/json", **kwargs: Any @@ -2969,7 +2998,7 @@ def begin_update( :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str :param parameters: The parameters required to patch a Log Analytics cluster. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.ClusterPatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3012,7 +3041,7 @@ def begin_update( self, resource_group_name: str, cluster_name: str, - parameters: Union[_models.ClusterPatch, JSON, IO[bytes]], + parameters: Union[_models.ClusterPatch, _types.ClusterPatch, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Cluster]: """Updates a Log Analytics cluster. @@ -3022,9 +3051,10 @@ def begin_update( :type resource_group_name: str :param cluster_name: Name of the Log Analytics Cluster. Required. :type cluster_name: str - :param parameters: The parameters required to patch a Log Analytics cluster. Is one of the - following types: ClusterPatch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.ClusterPatch or JSON or IO[bytes] + :param parameters: The parameters required to patch a Log Analytics cluster. Is either a + ClusterPatch type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.ClusterPatch or + ~azure.mgmt.loganalytics.types.ClusterPatch or IO[bytes] :return: An instance of LROPoller that returns Cluster. The Cluster is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.Cluster] @@ -3389,7 +3419,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DataExportsOperations: +class DataExportsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3519,7 +3549,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: JSON, + parameters: _types.DataExport, *, content_type: str = "application/json", **kwargs: Any @@ -3534,7 +3564,7 @@ def create_or_update( :param data_export_name: The data export rule name. Required. :type data_export_name: str :param parameters: The parameters required to create or update a data export. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.DataExport :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3579,7 +3609,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_export_name: str, - parameters: Union[_models.DataExport, JSON, IO[bytes]], + parameters: Union[_models.DataExport, _types.DataExport, IO[bytes]], **kwargs: Any ) -> _models.DataExport: """Create or update a data export. @@ -3591,9 +3621,10 @@ def create_or_update( :type workspace_name: str :param data_export_name: The data export rule name. Required. :type data_export_name: str - :param parameters: The parameters required to create or update a data export. Is one of the - following types: DataExport, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.DataExport or JSON or IO[bytes] + :param parameters: The parameters required to create or update a data export. Is either a + DataExport type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.DataExport or + ~azure.mgmt.loganalytics.types.DataExport or IO[bytes] :return: DataExport. The DataExport is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.DataExport :raises ~azure.core.exceptions.HttpResponseError: @@ -3831,7 +3862,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class WorkspacesOperations: +class WorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3924,7 +3955,7 @@ def _create_or_update_initial( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.Workspace, JSON, IO[bytes]], + parameters: Union[_models.Workspace, _types.Workspace, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -4032,7 +4063,7 @@ def begin_create_or_update( self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: _types.Workspace, *, content_type: str = "application/json", **kwargs: Any @@ -4045,7 +4076,7 @@ def begin_create_or_update( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param parameters: The parameters required to create or update a workspace. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Workspace :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4088,7 +4119,7 @@ def begin_create_or_update( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.Workspace, JSON, IO[bytes]], + parameters: Union[_models.Workspace, _types.Workspace, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Workspace]: """Create or update a workspace. @@ -4098,9 +4129,10 @@ def begin_create_or_update( :type resource_group_name: str :param workspace_name: The name of the workspace. Required. :type workspace_name: str - :param parameters: The parameters required to create or update a workspace. Is one of the - following types: Workspace, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Workspace or JSON or IO[bytes] + :param parameters: The parameters required to create or update a workspace. Is either a + Workspace type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Workspace or + ~azure.mgmt.loganalytics.types.Workspace or IO[bytes] :return: An instance of LROPoller that returns Workspace. The Workspace is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.Workspace] @@ -4190,7 +4222,7 @@ def update( self, resource_group_name: str, workspace_name: str, - parameters: JSON, + parameters: _types.WorkspacePatch, *, content_type: str = "application/json", **kwargs: Any @@ -4203,7 +4235,7 @@ def update( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param parameters: The parameters required to patch a workspace. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.WorkspacePatch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4244,7 +4276,7 @@ def update( self, resource_group_name: str, workspace_name: str, - parameters: Union[_models.WorkspacePatch, JSON, IO[bytes]], + parameters: Union[_models.WorkspacePatch, _types.WorkspacePatch, IO[bytes]], **kwargs: Any ) -> _models.Workspace: """Updates a workspace. @@ -4254,9 +4286,10 @@ def update( :type resource_group_name: str :param workspace_name: The name of the workspace. Required. :type workspace_name: str - :param parameters: The parameters required to patch a workspace. Is one of the following types: - WorkspacePatch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.WorkspacePatch or JSON or IO[bytes] + :param parameters: The parameters required to patch a workspace. Is either a WorkspacePatch + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.WorkspacePatch or + ~azure.mgmt.loganalytics.types.WorkspacePatch or IO[bytes] :return: Workspace. The Workspace is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.Workspace :raises ~azure.core.exceptions.HttpResponseError: @@ -5216,7 +5249,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DataSourcesOperations: +class DataSourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5346,7 +5379,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: JSON, + parameters: _types.DataSource, *, content_type: str = "application/json", **kwargs: Any @@ -5361,7 +5394,7 @@ def create_or_update( :param data_source_name: Name of the datasource. Required. :type data_source_name: str :param parameters: The parameters required to create or update a datasource. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.DataSource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5406,7 +5439,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_source_name: str, - parameters: Union[_models.DataSource, JSON, IO[bytes]], + parameters: Union[_models.DataSource, _types.DataSource, IO[bytes]], **kwargs: Any ) -> _models.DataSource: """Create or update a data source. @@ -5418,9 +5451,10 @@ def create_or_update( :type workspace_name: str :param data_source_name: Name of the datasource. Required. :type data_source_name: str - :param parameters: The parameters required to create or update a datasource. Is one of the - following types: DataSource, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.DataSource or JSON or IO[bytes] + :param parameters: The parameters required to create or update a datasource. Is either a + DataSource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.DataSource or + ~azure.mgmt.loganalytics.types.DataSource or IO[bytes] :return: DataSource. The DataSource is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.DataSource :raises ~azure.core.exceptions.HttpResponseError: @@ -5671,7 +5705,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LinkedServicesOperations: +class LinkedServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5770,7 +5804,7 @@ def _create_or_update_initial( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: Union[_models.LinkedService, JSON, IO[bytes]], + parameters: Union[_models.LinkedService, _types.LinkedService, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -5883,7 +5917,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: JSON, + parameters: _types.LinkedService, *, content_type: str = "application/json", **kwargs: Any @@ -5898,7 +5932,7 @@ def begin_create_or_update( :param linked_service_name: Name of the linked service. Required. :type linked_service_name: str :param parameters: The parameters required to create or update a linked service. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.LinkedService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5945,7 +5979,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, linked_service_name: str, - parameters: Union[_models.LinkedService, JSON, IO[bytes]], + parameters: Union[_models.LinkedService, _types.LinkedService, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.LinkedService]: """Create or update a linked service. @@ -5957,9 +5991,10 @@ def begin_create_or_update( :type workspace_name: str :param linked_service_name: Name of the linked service. Required. :type linked_service_name: str - :param parameters: The parameters required to create or update a linked service. Is one of the - following types: LinkedService, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.LinkedService or JSON or IO[bytes] + :param parameters: The parameters required to create or update a linked service. Is either a + LinkedService type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.LinkedService or + ~azure.mgmt.loganalytics.types.LinkedService or IO[bytes] :return: An instance of LROPoller that returns LinkedService. The LinkedService is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.LinkedService] @@ -6251,7 +6286,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SavedSearchesOperations: +class SavedSearchesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6381,7 +6416,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: JSON, + parameters: _types.SavedSearch, *, content_type: str = "application/json", **kwargs: Any @@ -6396,7 +6431,7 @@ def create_or_update( :param saved_search_id: The id of the saved search. Required. :type saved_search_id: str :param parameters: The parameters required to save a search. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SavedSearch :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6441,7 +6476,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, saved_search_id: str, - parameters: Union[_models.SavedSearch, JSON, IO[bytes]], + parameters: Union[_models.SavedSearch, _types.SavedSearch, IO[bytes]], **kwargs: Any ) -> _models.SavedSearch: """Creates or updates a saved search for a given workspace. @@ -6453,9 +6488,10 @@ def create_or_update( :type workspace_name: str :param saved_search_id: The id of the saved search. Required. :type saved_search_id: str - :param parameters: The parameters required to save a search. Is one of the following types: - SavedSearch, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SavedSearch or JSON or IO[bytes] + :param parameters: The parameters required to save a search. Is either a SavedSearch type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SavedSearch or + ~azure.mgmt.loganalytics.types.SavedSearch or IO[bytes] :return: SavedSearch. The SavedSearch is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.SavedSearch :raises ~azure.core.exceptions.HttpResponseError: @@ -6663,7 +6699,7 @@ def list_by_workspace( return deserialized # type: ignore -class TablesOperations: +class TablesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6760,7 +6796,7 @@ def _create_or_update_initial( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -6871,7 +6907,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: _types.Table, *, content_type: str = "application/json", **kwargs: Any @@ -6886,7 +6922,7 @@ def begin_create_or_update( :param table_name: The name of the table. Required. :type table_name: str :param parameters: The parameters required to update table properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6933,7 +6969,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Table]: """Update or Create a Log Analytics workspace table. @@ -6945,9 +6981,10 @@ def begin_create_or_update( :type workspace_name: str :param table_name: The name of the table. Required. :type table_name: str - :param parameters: The parameters required to update table properties. Is one of the following - types: Table, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Table or JSON or IO[bytes] + :param parameters: The parameters required to update table properties. Is either a Table type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Table or ~azure.mgmt.loganalytics.types.Table + or IO[bytes] :return: An instance of LROPoller that returns Table. The Table is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.Table] @@ -7011,7 +7048,7 @@ def _update_initial( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -7122,7 +7159,7 @@ def begin_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: JSON, + parameters: _types.Table, *, content_type: str = "application/json", **kwargs: Any @@ -7137,7 +7174,7 @@ def begin_update( :param table_name: The name of the table. Required. :type table_name: str :param parameters: The parameters required to update table properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7184,7 +7221,7 @@ def begin_update( resource_group_name: str, workspace_name: str, table_name: str, - parameters: Union[_models.Table, JSON, IO[bytes]], + parameters: Union[_models.Table, _types.Table, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Table]: """Update a Log Analytics workspace table. @@ -7196,9 +7233,10 @@ def begin_update( :type workspace_name: str :param table_name: The name of the table. Required. :type table_name: str - :param parameters: The parameters required to update table properties. Is one of the following - types: Table, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.Table or JSON or IO[bytes] + :param parameters: The parameters required to update table properties. Is either a Table type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.Table or ~azure.mgmt.loganalytics.types.Table + or IO[bytes] :return: An instance of LROPoller that returns Table. The Table is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.Table] @@ -7612,7 +7650,7 @@ def cancel_search( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class AvailableServiceTiersOperations: +class AvailableServiceTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7704,7 +7742,7 @@ def list_by_workspace( return deserialized # type: ignore -class GatewaysOperations: +class GatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7786,7 +7824,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class IntelligencePacksOperations: +class IntelligencePacksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8001,7 +8039,7 @@ def list(self, resource_group_name: str, workspace_name: str, **kwargs: Any) -> return deserialized # type: ignore -class ManagementGroupsOperations: +class ManagementGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8123,7 +8161,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SchemaOperations: +class SchemaOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8213,7 +8251,7 @@ def get(self, resource_group_name: str, workspace_name: str, **kwargs: Any) -> _ return deserialized # type: ignore -class SharedKeysOperations: +class SharedKeysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8374,7 +8412,7 @@ def regenerate(self, resource_group_name: str, workspace_name: str, **kwargs: An return deserialized # type: ignore -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8494,7 +8532,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class WorkspacePurgeOperations: +class WorkspacePurgeOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8555,7 +8593,7 @@ def purge( self, resource_group_name: str, workspace_name: str, - body: JSON, + body: _types.WorkspacePurgeBody, *, content_type: str = "application/json", **kwargs: Any @@ -8578,7 +8616,7 @@ def purge( :type workspace_name: str :param body: Describes the body of a request to purge data in a single table of an Log Analytics Workspace. Required. - :type body: JSON + :type body: ~azure.mgmt.loganalytics.types.WorkspacePurgeBody :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8629,7 +8667,7 @@ def purge( self, resource_group_name: str, workspace_name: str, - body: Union[_models.WorkspacePurgeBody, JSON, IO[bytes]], + body: Union[_models.WorkspacePurgeBody, _types.WorkspacePurgeBody, IO[bytes]], **kwargs: Any ) -> _models.WorkspacePurgeResponse: """Purges data in an Log Analytics workspace by a set of user-defined filters. @@ -8649,9 +8687,9 @@ def purge( :param workspace_name: The name of the workspace. Required. :type workspace_name: str :param body: Describes the body of a request to purge data in a single table of an Log - Analytics Workspace. Is one of the following types: WorkspacePurgeBody, JSON, IO[bytes] - Required. - :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeBody or JSON or IO[bytes] + Analytics Workspace. Is either a WorkspacePurgeBody type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeBody or + ~azure.mgmt.loganalytics.types.WorkspacePurgeBody or IO[bytes] :return: WorkspacePurgeResponse. The WorkspacePurgeResponse is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.WorkspacePurgeResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -8805,8 +8843,271 @@ def get_purge_status( return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-03-01", + params_added_on={ + "2026-03-01": ["api_version", "subscription_id", "resource_group_name", "workspace_name", "content_type"] + }, + api_versions_list=["2026-03-01"], + ) + def _purge_lake_data_initial( + self, + resource_group_name: str, + workspace_name: str, + body: Union[_models.WorkspacePurgeLakeDataBody, _types.WorkspacePurgeLakeDataBody, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_workspace_purge_purge_lake_data_request( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: _models.WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. -class LinkedStorageAccountsOperations: + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: _types.WorkspacePurgeLakeDataBody, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: ~azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataBody + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2026-03-01", + params_added_on={ + "2026-03-01": ["api_version", "subscription_id", "resource_group_name", "workspace_name", "content_type"] + }, + api_versions_list=["2026-03-01"], + ) + def begin_purge_lake_data( + self, + resource_group_name: str, + workspace_name: str, + body: Union[_models.WorkspacePurgeLakeDataBody, _types.WorkspacePurgeLakeDataBody, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Purges data lake data in a Log Analytics workspace for a table over a specified time range. + + This operation deletes data lake data (Auxiliary tables, or Analytics tables mirrored to the + data lake) for the specified table within the given time range. The operation is long-running; + poll the URL returned in the Azure-AsyncOperation response header to track its status. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param workspace_name: The name of the workspace. Required. + :type workspace_name: str + :param body: Describes the body of a request to purge data lake data in a single table of an + Log Analytics Workspace. Is either a WorkspacePurgeLakeDataBody type or a IO[bytes] type. + Required. + :type body: ~azure.mgmt.loganalytics.models.WorkspacePurgeLakeDataBody or + ~azure.mgmt.loganalytics.types.WorkspacePurgeLakeDataBody or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._purge_lake_data_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + body=body, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class LinkedStorageAccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8947,7 +9248,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_source_type: Union[str, _models.DataSourceType], - parameters: JSON, + parameters: _types.LinkedStorageAccountsResource, *, content_type: str = "application/json", **kwargs: Any @@ -8965,7 +9266,7 @@ def create_or_update( :type data_source_type: str or ~azure.mgmt.loganalytics.models.DataSourceType :param parameters: The parameters required to create or update linked storage accounts. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.LinkedStorageAccountsResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9015,7 +9316,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, data_source_type: Union[str, _models.DataSourceType], - parameters: Union[_models.LinkedStorageAccountsResource, JSON, IO[bytes]], + parameters: Union[_models.LinkedStorageAccountsResource, _types.LinkedStorageAccountsResource, IO[bytes]], **kwargs: Any ) -> _models.LinkedStorageAccountsResource: """Create or Update a link relation between current workspace and a group of storage accounts of a @@ -9029,10 +9330,10 @@ def create_or_update( :param data_source_type: Linked storage accounts type. Known values are: "CustomLogs", "AzureWatson", "Query", "Ingestion", and "Alerts". Required. :type data_source_type: str or ~azure.mgmt.loganalytics.models.DataSourceType - :param parameters: The parameters required to create or update linked storage accounts. Is one - of the following types: LinkedStorageAccountsResource, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource or JSON or - IO[bytes] + :param parameters: The parameters required to create or update linked storage accounts. Is + either a LinkedStorageAccountsResource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource or + ~azure.mgmt.loganalytics.types.LinkedStorageAccountsResource or IO[bytes] :return: LinkedStorageAccountsResource. The LinkedStorageAccountsResource is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource @@ -9279,7 +9580,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class QueriesOperations: +class QueriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9412,7 +9713,7 @@ def put( resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: _types.LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -9428,7 +9729,7 @@ def put( :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack. Required. - :type query_payload: JSON + :type query_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9476,7 +9777,7 @@ def put( resource_group_name: str, query_pack_name: str, id: str, - query_payload: Union[_models.LogAnalyticsQueryPackQuery, JSON, IO[bytes]], + query_payload: Union[_models.LogAnalyticsQueryPackQuery, _types.LogAnalyticsQueryPackQuery, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPackQuery: """Adds or Updates a specific Query within a Log Analytics QueryPack. @@ -9489,10 +9790,10 @@ def put( :param id: The id of a specific query defined in the Log Analytics QueryPack. Required. :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to - a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuery, JSON, - IO[bytes] Required. - :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or JSON or - IO[bytes] + a Log Analytics QueryPack. Is either a LogAnalyticsQueryPackQuery type or a IO[bytes] type. + Required. + :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery or IO[bytes] :return: LogAnalyticsQueryPackQuery. The LogAnalyticsQueryPackQuery is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery @@ -9604,7 +9905,7 @@ def update( resource_group_name: str, query_pack_name: str, id: str, - query_payload: JSON, + query_payload: _types.LogAnalyticsQueryPackQuery, *, content_type: str = "application/json", **kwargs: Any @@ -9620,7 +9921,7 @@ def update( :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack. Required. - :type query_payload: JSON + :type query_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9668,7 +9969,7 @@ def update( resource_group_name: str, query_pack_name: str, id: str, - query_payload: Union[_models.LogAnalyticsQueryPackQuery, JSON, IO[bytes]], + query_payload: Union[_models.LogAnalyticsQueryPackQuery, _types.LogAnalyticsQueryPackQuery, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPackQuery: """Adds or Updates a specific Query within a Log Analytics QueryPack. @@ -9681,10 +9982,10 @@ def update( :param id: The id of a specific query defined in the Log Analytics QueryPack. Required. :type id: str :param query_payload: Properties that need to be specified to create a new query and add it to - a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuery, JSON, - IO[bytes] Required. - :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or JSON or - IO[bytes] + a Log Analytics QueryPack. Is either a LogAnalyticsQueryPackQuery type or a IO[bytes] type. + Required. + :type query_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuery or IO[bytes] :return: LogAnalyticsQueryPackQuery. The LogAnalyticsQueryPackQuery is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuery @@ -9988,7 +10289,7 @@ def search( self, resource_group_name: str, query_pack_name: str, - query_search_properties: JSON, + query_search_properties: _types.LogAnalyticsQueryPackQuerySearchProperties, *, top: Optional[int] = None, include_body: Optional[bool] = None, @@ -10006,7 +10307,8 @@ def search( :type query_pack_name: str :param query_search_properties: Properties by which to search queries in the given Log Analytics QueryPack. Required. - :type query_search_properties: JSON + :type query_search_properties: + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchProperties :keyword top: Maximum items returned in page. Default value is None. :paramtype top: int :keyword include_body: Flag indicating whether or not to return the body of each applicable @@ -10070,7 +10372,11 @@ def search( self, resource_group_name: str, query_pack_name: str, - query_search_properties: Union[_models.LogAnalyticsQueryPackQuerySearchProperties, JSON, IO[bytes]], + query_search_properties: Union[ + _models.LogAnalyticsQueryPackQuerySearchProperties, + _types.LogAnalyticsQueryPackQuerySearchProperties, + IO[bytes], + ], *, top: Optional[int] = None, include_body: Optional[bool] = None, @@ -10086,10 +10392,11 @@ def search( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param query_search_properties: Properties by which to search queries in the given Log - Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPackQuerySearchProperties, - JSON, IO[bytes] Required. + Analytics QueryPack. Is either a LogAnalyticsQueryPackQuerySearchProperties type or a IO[bytes] + type. Required. :type query_search_properties: - ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties or JSON or IO[bytes] + ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties or + ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPackQuerySearchProperties or IO[bytes] :keyword top: Maximum items returned in page. Default value is None. :paramtype top: int :keyword include_body: Flag indicating whether or not to return the body of each applicable @@ -10203,7 +10510,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class QueryPacksOperations: +class QueryPacksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10326,7 +10633,7 @@ def create_or_update( self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: _types.LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -10341,7 +10648,7 @@ def create_or_update( :type query_pack_name: str :param log_analytics_query_pack_payload: Properties that need to be specified to create or update a Log Analytics QueryPack. Required. - :type log_analytics_query_pack_payload: JSON + :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10384,7 +10691,7 @@ def create_or_update( self, resource_group_name: str, query_pack_name: str, - log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, JSON, IO[bytes]], + log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, _types.LogAnalyticsQueryPack, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for @@ -10396,10 +10703,10 @@ def create_or_update( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param log_analytics_query_pack_payload: Properties that need to be specified to create or - update a Log Analytics QueryPack. Is one of the following types: LogAnalyticsQueryPack, JSON, - IO[bytes] Required. + update a Log Analytics QueryPack. Is either a LogAnalyticsQueryPack type or a IO[bytes] type. + Required. :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack - or JSON or IO[bytes] + or ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -10503,7 +10810,7 @@ def update_tags( self, resource_group_name: str, query_pack_name: str, - query_pack_tags: JSON, + query_pack_tags: _types.TagsResource, *, content_type: str = "application/json", **kwargs: Any @@ -10516,7 +10823,7 @@ def update_tags( :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str :param query_pack_tags: Updated tag information to set into the QueryPack instance. Required. - :type query_pack_tags: JSON + :type query_pack_tags: ~azure.mgmt.loganalytics.types.TagsResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10557,7 +10864,7 @@ def update_tags( self, resource_group_name: str, query_pack_name: str, - query_pack_tags: Union[_models.TagsResource, JSON, IO[bytes]], + query_pack_tags: Union[_models.TagsResource, _types.TagsResource, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. @@ -10567,9 +10874,10 @@ def update_tags( :type resource_group_name: str :param query_pack_name: The name of the Log Analytics QueryPack resource. Required. :type query_pack_name: str - :param query_pack_tags: Updated tag information to set into the QueryPack instance. Is one of - the following types: TagsResource, JSON, IO[bytes] Required. - :type query_pack_tags: ~azure.mgmt.loganalytics.models.TagsResource or JSON or IO[bytes] + :param query_pack_tags: Updated tag information to set into the QueryPack instance. Is either a + TagsResource type or a IO[bytes] type. Required. + :type query_pack_tags: ~azure.mgmt.loganalytics.models.TagsResource or + ~azure.mgmt.loganalytics.types.TagsResource or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -10921,7 +11229,7 @@ def create_or_update_without_name( def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: JSON, + log_analytics_query_pack_payload: _types.LogAnalyticsQueryPack, *, content_type: str = "application/json", **kwargs: Any @@ -10933,7 +11241,7 @@ def create_or_update_without_name( Required. :type resource_group_name: str :param log_analytics_query_pack_payload: The request body. Required. - :type log_analytics_query_pack_payload: JSON + :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10971,7 +11279,7 @@ def create_or_update_without_name( def create_or_update_without_name( self, resource_group_name: str, - log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, JSON, IO[bytes]], + log_analytics_query_pack_payload: Union[_models.LogAnalyticsQueryPack, _types.LogAnalyticsQueryPack, IO[bytes]], **kwargs: Any ) -> _models.LogAnalyticsQueryPack: """Creates a Log Analytics QueryPack. Note: You cannot specify a different value for @@ -10980,10 +11288,10 @@ def create_or_update_without_name( :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param log_analytics_query_pack_payload: The request body. Is one of the following types: - LogAnalyticsQueryPack, JSON, IO[bytes] Required. + :param log_analytics_query_pack_payload: The request body. Is either a LogAnalyticsQueryPack + type or a IO[bytes] type. Required. :type log_analytics_query_pack_payload: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack - or JSON or IO[bytes] + or ~azure.mgmt.loganalytics.types.LogAnalyticsQueryPack or IO[bytes] :return: LogAnalyticsQueryPack. The LogAnalyticsQueryPack is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.LogAnalyticsQueryPack :raises ~azure.core.exceptions.HttpResponseError: @@ -11055,7 +11363,7 @@ def create_or_update_without_name( return deserialized # type: ignore -class StorageInsightConfigsOperations: +class StorageInsightConfigsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11185,7 +11493,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: JSON, + parameters: _types.StorageInsight, *, content_type: str = "application/json", **kwargs: Any @@ -11200,7 +11508,7 @@ def create_or_update( :param storage_insight_name: Name of the storageInsightsConfigs resource. Required. :type storage_insight_name: str :param parameters: The parameters required to create or update a storage insight. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.StorageInsight :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11245,7 +11553,7 @@ def create_or_update( resource_group_name: str, workspace_name: str, storage_insight_name: str, - parameters: Union[_models.StorageInsight, JSON, IO[bytes]], + parameters: Union[_models.StorageInsight, _types.StorageInsight, IO[bytes]], **kwargs: Any ) -> _models.StorageInsight: """Create or update a storage insight. @@ -11257,9 +11565,10 @@ def create_or_update( :type workspace_name: str :param storage_insight_name: Name of the storageInsightsConfigs resource. Required. :type storage_insight_name: str - :param parameters: The parameters required to create or update a storage insight. Is one of the - following types: StorageInsight, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight or JSON or IO[bytes] + :param parameters: The parameters required to create or update a storage insight. Is either a + StorageInsight type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.StorageInsight or + ~azure.mgmt.loganalytics.types.StorageInsight or IO[bytes] :return: StorageInsight. The StorageInsight is compatible with MutableMapping :rtype: ~azure.mgmt.loganalytics.models.StorageInsight :raises ~azure.core.exceptions.HttpResponseError: @@ -11497,7 +11806,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SummaryLogsOperations: +class SummaryLogsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11596,7 +11905,7 @@ def _create_or_update_initial( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogs, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogs, _types.SummaryLogs, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -11711,7 +12020,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: _types.SummaryLogs, *, content_type: str = "application/json", **kwargs: Any @@ -11726,7 +12035,7 @@ def begin_create_or_update( :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str :param parameters: The parameters required to update summary rules properties. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SummaryLogs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11773,7 +12082,7 @@ def begin_create_or_update( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogs, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogs, _types.SummaryLogs, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.SummaryLogs]: """Creates or updates Log Analytics workspace Summary rules. @@ -11785,9 +12094,10 @@ def begin_create_or_update( :type workspace_name: str :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str - :param parameters: The parameters required to update summary rules properties. Is one of the - following types: SummaryLogs, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogs or JSON or IO[bytes] + :param parameters: The parameters required to update summary rules properties. Is either a + SummaryLogs type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogs or + ~azure.mgmt.loganalytics.types.SummaryLogs or IO[bytes] :return: An instance of LROPoller that returns SummaryLogs. The SummaryLogs is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.loganalytics.models.SummaryLogs] @@ -12275,7 +12585,7 @@ def _retry_bin_initial( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogsRetryBin, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogsRetryBin, _types.SummaryLogsRetryBin, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -12385,7 +12695,7 @@ def begin_retry_bin( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: JSON, + parameters: _types.SummaryLogsRetryBin, *, content_type: str = "application/json", **kwargs: Any @@ -12400,7 +12710,7 @@ def begin_retry_bin( :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str :param parameters: The parameters required to retry a Summary rule bin. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.loganalytics.types.SummaryLogsRetryBin :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12445,7 +12755,7 @@ def begin_retry_bin( resource_group_name: str, workspace_name: str, summary_logs_name: str, - parameters: Union[_models.SummaryLogsRetryBin, JSON, IO[bytes]], + parameters: Union[_models.SummaryLogsRetryBin, _types.SummaryLogsRetryBin, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Retries a failed Summary rule bin. @@ -12457,9 +12767,10 @@ def begin_retry_bin( :type workspace_name: str :param summary_logs_name: The name of the summary logs. Must not contain '/'. Required. :type summary_logs_name: str - :param parameters: The parameters required to retry a Summary rule bin. Is one of the following - types: SummaryLogsRetryBin, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogsRetryBin or JSON or IO[bytes] + :param parameters: The parameters required to retry a Summary rule bin. Is either a + SummaryLogsRetryBin type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.loganalytics.models.SummaryLogsRetryBin or + ~azure.mgmt.loganalytics.types.SummaryLogsRetryBin or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -12513,7 +12824,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class OperationStatusesOperations: +class OperationStatusesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12602,7 +12913,7 @@ def get(self, location: str, async_operation_id: str, **kwargs: Any) -> _models. return deserialized # type: ignore -class DeletedWorkspacesOperations: +class DeletedWorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/types.py b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/types.py new file mode 100644 index 000000000000..f122850f8151 --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/types.py @@ -0,0 +1,1938 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, Optional, TYPE_CHECKING, Union +from typing_extensions import Required, TypedDict + +if TYPE_CHECKING: + from .models import ( + BillingType, + ClusterEntityStatus, + ClusterReplicationState, + ClusterSkuNameEnum, + ColumnDataTypeHintEnum, + ColumnTypeEnum, + CreatedByType, + DataIngestionStatus, + DataSourceKind, + DataSourceType, + IdentityType, + LinkedServiceEntityStatus, + ManagedServiceIdentityType, + ProvisioningStateEnum, + PublicNetworkAccessType, + RuleTypeEnum, + SourceEnum, + StatusCodeEnum, + StorageInsightState, + SummaryLogsIdentityType, + SummaryLogsProvisioningState, + TablePlanEnum, + TableProtectionLevelEnum, + TableSubTypeEnum, + TableTypeEnum, + TimeSelectorEnum, + Type, + WorkspaceEntityStatus, + WorkspaceFailoverState, + WorkspaceReplicationState, + WorkspaceSkuNameEnum, + ) + + +class AssociatedWorkspace(TypedDict, total=False): + """The list of Log Analytics workspaces associated with the cluster. + + :ivar workspaceId: Associated workspace immutable id. + :vartype workspaceId: str + :ivar workspaceName: Associated workspace resource name. + :vartype workspaceName: str + :ivar resourceId: Associated workspace arm resource id, in the form of: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}. + :vartype resourceId: str + :ivar associateDate: The time of workspace association. + :vartype associateDate: str + """ + + workspaceId: str + """Associated workspace immutable id.""" + workspaceName: str + """Associated workspace resource name.""" + resourceId: str + """Associated workspace arm resource id, in the form of: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}.""" + associateDate: str + """The time of workspace association.""" + + +class Resource(TypedDict, total=False): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + id: str + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: str + """The name of the resource.""" + type: str + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class AzureEntityResource(Resource): + """Entity Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar etag: Resource Etag. + :vartype etag: str + """ + + etag: str + """Resource Etag.""" + + +class CapacityReservationProperties(TypedDict, total=False): + """The Capacity Reservation properties. + + :ivar lastSkuUpdate: The last time Sku was updated. + :vartype lastSkuUpdate: str + :ivar minCapacity: Minimum CapacityReservation value in Gigabytes. + :vartype minCapacity: int + """ + + lastSkuUpdate: str + """The last time Sku was updated.""" + minCapacity: int + """Minimum CapacityReservation value in Gigabytes.""" + + +class TrackedResource(Resource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: dict[str, str] + """Resource tags.""" + location: Required[str] + """The geo-location where the resource lives. Required.""" + + +class Cluster(TrackedResource): + """The top level Log Analytics cluster resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Log Analytics cluster properties. + :vartype properties: "ClusterProperties" + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: "ManagedServiceIdentity" + :ivar sku: The sku properties. + :vartype sku: "ClusterSku" + """ + + properties: "ClusterProperties" + """Log Analytics cluster properties.""" + identity: "ManagedServiceIdentity" + """The managed service identities assigned to this resource.""" + sku: "ClusterSku" + """The sku properties.""" + + +class ClusterPatch(TypedDict, total=False): + """The top level Log Analytics cluster resource container. + + :ivar properties: Log Analytics cluster properties. + :vartype properties: "ClusterPatchProperties" + :ivar identity: Resource's identity. + :vartype identity: "ManagedServiceIdentity" + :ivar sku: The sku properties. + :vartype sku: "ClusterSku" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "ClusterPatchProperties" + """Log Analytics cluster properties.""" + identity: "ManagedServiceIdentity" + """Resource's identity.""" + sku: "ClusterSku" + """The sku properties.""" + tags: dict[str, str] + """Resource tags.""" + + +class ClusterPatchProperties(TypedDict, total=False): + """Log Analytics cluster patch properties. + + :ivar keyVaultProperties: The associated key properties. + :vartype keyVaultProperties: "KeyVaultProperties" + :ivar billingType: The cluster's billing type. Known values are: "Cluster" and "Workspaces". + :vartype billingType: Union[str, "BillingType"] + """ + + keyVaultProperties: "KeyVaultProperties" + """The associated key properties.""" + billingType: Union[str, "BillingType"] + """The cluster's billing type. Known values are: \"Cluster\" and \"Workspaces\".""" + + +class ClusterProperties(TypedDict, total=False): + """Cluster properties. + + :ivar clusterId: The ID associated with the cluster. + :vartype clusterId: str + :ivar provisioningState: The provisioning state of the cluster. Known values are: "Creating", + "Succeeded", "Failed", "Canceled", "Deleting", "ProvisioningAccount", and "Updating". + :vartype provisioningState: Union[str, "ClusterEntityStatus"] + :ivar isDoubleEncryptionEnabled: Configures whether cluster will use double encryption. This + Property can not be modified after cluster creation. Default value is 'true'. + :vartype isDoubleEncryptionEnabled: bool + :ivar isAvailabilityZonesEnabled: Sets whether the cluster will support availability zones. + This can be set as true only in regions where Azure Data Explorer support Availability Zones. + This Property can not be modified after cluster creation. Default value is 'true' if region + supports Availability Zones. + :vartype isAvailabilityZonesEnabled: bool + :ivar billingType: The cluster's billing type. Known values are: "Cluster" and "Workspaces". + :vartype billingType: Union[str, "BillingType"] + :ivar keyVaultProperties: The associated key properties. + :vartype keyVaultProperties: "KeyVaultProperties" + :ivar lastModifiedDate: The last time the cluster was updated. + :vartype lastModifiedDate: str + :ivar createdDate: The cluster creation time. + :vartype createdDate: str + :ivar associatedWorkspaces: The list of Log Analytics workspaces associated with the cluster. + :vartype associatedWorkspaces: list["AssociatedWorkspace"] + :ivar capacityReservationProperties: Additional properties for capacity reservation. + :vartype capacityReservationProperties: "CapacityReservationProperties" + :ivar replication: Cluster's replication properties. + :vartype replication: "ClusterReplicationProperties" + """ + + clusterId: str + """The ID associated with the cluster.""" + provisioningState: Union[str, "ClusterEntityStatus"] + """The provisioning state of the cluster. Known values are: \"Creating\", \"Succeeded\", + \"Failed\", \"Canceled\", \"Deleting\", \"ProvisioningAccount\", and \"Updating\".""" + isDoubleEncryptionEnabled: bool + """Configures whether cluster will use double encryption. This Property can not be modified after + cluster creation. Default value is 'true'.""" + isAvailabilityZonesEnabled: bool + """Sets whether the cluster will support availability zones. This can be set as true only in + regions where Azure Data Explorer support Availability Zones. This Property can not be modified + after cluster creation. Default value is 'true' if region supports Availability Zones.""" + billingType: Union[str, "BillingType"] + """The cluster's billing type. Known values are: \"Cluster\" and \"Workspaces\".""" + keyVaultProperties: "KeyVaultProperties" + """The associated key properties.""" + lastModifiedDate: str + """The last time the cluster was updated.""" + createdDate: str + """The cluster creation time.""" + associatedWorkspaces: list["AssociatedWorkspace"] + """The list of Log Analytics workspaces associated with the cluster.""" + capacityReservationProperties: "CapacityReservationProperties" + """Additional properties for capacity reservation.""" + replication: "ClusterReplicationProperties" + """Cluster's replication properties.""" + + +class ClusterReplicationProperties(TypedDict, total=False): + """Cluster replication properties. + + :ivar location: The secondary location of the replication. If replication is being enabled, + enabled must be provided. + :vartype location: str + :ivar enabled: Specifies whether the replication is enabled or not. When true the cluster is + replicate to the specified location. + :vartype enabled: bool + :ivar isAvailabilityZonesEnabled: Should enable AvailabilityZones for the given replicated + cluster. + :vartype isAvailabilityZonesEnabled: bool + :ivar provisioningState: The provisioning state of the cluster replication. Known values are: + "Succeeded", "EnableRequested", "Enabling", "DisableRequested", "Disabling", + "RollbackRequested", "RollingBack", "Failed", and "Canceled". + :vartype provisioningState: Union[str, "ClusterReplicationState"] + :ivar createdDate: The cluster's replication creation time. + :vartype createdDate: str + :ivar lastModifiedDate: The last time the cluster's replication was updated. + :vartype lastModifiedDate: str + """ + + location: str + """The secondary location of the replication. If replication is being enabled, enabled must be + provided.""" + enabled: bool + """Specifies whether the replication is enabled or not. When true the cluster is replicate to the + specified location.""" + isAvailabilityZonesEnabled: bool + """Should enable AvailabilityZones for the given replicated cluster.""" + provisioningState: Union[str, "ClusterReplicationState"] + """The provisioning state of the cluster replication. Known values are: \"Succeeded\", + \"EnableRequested\", \"Enabling\", \"DisableRequested\", \"Disabling\", \"RollbackRequested\", + \"RollingBack\", \"Failed\", and \"Canceled\".""" + createdDate: str + """The cluster's replication creation time.""" + lastModifiedDate: str + """The last time the cluster's replication was updated.""" + + +class ClusterSku(TypedDict, total=False): + """The cluster sku definition. + + :ivar capacity: The capacity reservation level in Gigabytes for this cluster. + :vartype capacity: int + :ivar name: The SKU (tier) of a cluster. "CapacityReservation" + :vartype name: Union[str, "ClusterSkuNameEnum"] + """ + + capacity: Optional[int] + """The capacity reservation level in Gigabytes for this cluster.""" + name: Union[str, "ClusterSkuNameEnum"] + """The SKU (tier) of a cluster. \"CapacityReservation\"""" + + +class Column(TypedDict, total=False): + """Table column. + + :ivar name: Column name. + :vartype name: str + :ivar type: Column data type. Known values are: "string", "int", "long", "real", "boolean", + "dateTime", "guid", and "dynamic". + :vartype type: Union[str, "ColumnTypeEnum"] + :ivar dataTypeHint: Column data type logical hint. Known values are: "uri", "guid", "armPath", + "ip", and "vector16". + :vartype dataTypeHint: Union[str, "ColumnDataTypeHintEnum"] + :ivar displayName: Column display name. Can be set at creation time; after creation, updates + must either match column name or set to null/empty. If not provided, defaults to column name. + :vartype displayName: str + :ivar description: Column description. + :vartype description: str + :ivar isDefaultDisplay: Is displayed by default. + :vartype isDefaultDisplay: bool + :ivar isHidden: Is column hidden. + :vartype isHidden: bool + """ + + name: str + """Column name.""" + type: Union[str, "ColumnTypeEnum"] + """Column data type. Known values are: \"string\", \"int\", \"long\", \"real\", \"boolean\", + \"dateTime\", \"guid\", and \"dynamic\".""" + dataTypeHint: Union[str, "ColumnDataTypeHintEnum"] + """Column data type logical hint. Known values are: \"uri\", \"guid\", \"armPath\", \"ip\", and + \"vector16\".""" + displayName: str + """Column display name. Can be set at creation time; after creation, updates must either match + column name or set to null/empty. If not provided, defaults to column name.""" + description: str + """Column description.""" + isDefaultDisplay: bool + """Is displayed by default.""" + isHidden: bool + """Is column hidden.""" + + +class ProxyResource(Resource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + +class DataExport(ProxyResource): + """The top level data export resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: data export properties. + :vartype properties: "DataExportProperties" + """ + + properties: "DataExportProperties" + """data export properties.""" + + +class DataExportProperties(TypedDict, total=False): + """Data Export properties. + + :ivar dataExportId: The data export rule ID. + :vartype dataExportId: str + :ivar tableNames: An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. + Required. + :vartype tableNames: list[str] + :ivar destination: destination properties. + :vartype destination: "Destination" + :ivar enable: Active when enabled. + :vartype enable: bool + :ivar createdDate: The latest data export rule modification time. + :vartype createdDate: str + :ivar lastModifiedDate: Date and time when the export was last modified. + :vartype lastModifiedDate: str + """ + + dataExportId: str + """The data export rule ID.""" + tableNames: Required[list[str]] + """An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. Required.""" + destination: "Destination" + """destination properties.""" + enable: bool + """Active when enabled.""" + createdDate: str + """The latest data export rule modification time.""" + lastModifiedDate: str + """Date and time when the export was last modified.""" + + +class DataSource(ProxyResource): + """Datasources under OMS Workspace. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: The data source properties in raw json format, each kind of data source have + it's own schema. Required. + :vartype properties: Any + :ivar etag: The ETag of the data source. + :vartype etag: str + :ivar kind: The kind of the DataSource. Required. Known values are: "WindowsEvent", + "WindowsPerformanceCounter", "IISLogs", "LinuxSyslog", "LinuxSyslogCollection", + "LinuxPerformanceObject", "LinuxPerformanceCollection", "CustomLog", "CustomLogCollection", + "AzureAuditLog", "AzureActivityLog", "GenericDataSource", "ChangeTrackingCustomPath", + "ChangeTrackingPath", "ChangeTrackingServices", "ChangeTrackingDataTypeConfiguration", + "ChangeTrackingDefaultRegistry", "ChangeTrackingRegistry", "ChangeTrackingLinuxPath", + "LinuxChangeTrackingPath", "ChangeTrackingContentLocation", "WindowsTelemetry", "Office365", + "SecurityWindowsBaselineConfiguration", "SecurityCenterSecurityWindowsBaselineConfiguration", + "SecurityEventCollectionConfiguration", "SecurityInsightsSecurityEventCollectionConfiguration", + "ImportComputerGroup", "NetworkMonitoring", "Itsm", "DnsAnalytics", "ApplicationInsights", and + "SqlDataClassification". + :vartype kind: Union[str, "DataSourceKind"] + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: Required[Any] + """The data source properties in raw json format, each kind of data source have it's own schema. + Required.""" + etag: str + """The ETag of the data source.""" + kind: Required[Union[str, "DataSourceKind"]] + """The kind of the DataSource. Required. Known values are: \"WindowsEvent\", + \"WindowsPerformanceCounter\", \"IISLogs\", \"LinuxSyslog\", \"LinuxSyslogCollection\", + \"LinuxPerformanceObject\", \"LinuxPerformanceCollection\", \"CustomLog\", + \"CustomLogCollection\", \"AzureAuditLog\", \"AzureActivityLog\", \"GenericDataSource\", + \"ChangeTrackingCustomPath\", \"ChangeTrackingPath\", \"ChangeTrackingServices\", + \"ChangeTrackingDataTypeConfiguration\", \"ChangeTrackingDefaultRegistry\", + \"ChangeTrackingRegistry\", \"ChangeTrackingLinuxPath\", \"LinuxChangeTrackingPath\", + \"ChangeTrackingContentLocation\", \"WindowsTelemetry\", \"Office365\", + \"SecurityWindowsBaselineConfiguration\", + \"SecurityCenterSecurityWindowsBaselineConfiguration\", + \"SecurityEventCollectionConfiguration\", + \"SecurityInsightsSecurityEventCollectionConfiguration\", \"ImportComputerGroup\", + \"NetworkMonitoring\", \"Itsm\", \"DnsAnalytics\", \"ApplicationInsights\", and + \"SqlDataClassification\".""" + tags: dict[str, str] + """Resource tags.""" + + +class Destination(TypedDict, total=False): + """Destination properties. + + :ivar resourceId: The destination resource ID. This can be copied from the Properties entry of + the destination resource in Azure. Required. + :vartype resourceId: str + :ivar type: The type of the destination resource. Known values are: "StorageAccount" and + "EventHub". + :vartype type: Union[str, "Type"] + :ivar metaData: destination meta data. + :vartype metaData: "DestinationMetaData" + """ + + resourceId: Required[str] + """The destination resource ID. This can be copied from the Properties entry of the destination + resource in Azure. Required.""" + type: Union[str, "Type"] + """The type of the destination resource. Known values are: \"StorageAccount\" and \"EventHub\".""" + metaData: "DestinationMetaData" + """destination meta data.""" + + +class DestinationMetaData(TypedDict, total=False): + """Destination meta data. + + :ivar eventHubName: Optional. Allows to define an Event Hub name. Not applicable when + destination is Storage Account. + :vartype eventHubName: str + """ + + eventHubName: str + """Optional. Allows to define an Event Hub name. Not applicable when destination is Storage + Account.""" + + +class Identity(TypedDict, total=False): + """Identity for the resource. + + :ivar principalId: The principal ID of resource identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of resource. + :vartype tenantId: str + :ivar type: Type of managed service identity. Required. Known values are: "SystemAssigned", + "UserAssigned", and "None". + :vartype type: Union[str, "IdentityType"] + :ivar userAssignedIdentities: The list of user identities associated with the resource. The + user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :vartype userAssignedIdentities: dict[str, "UserIdentityProperties"] + """ + + principalId: str + """The principal ID of resource identity.""" + tenantId: str + """The tenant ID of resource.""" + type: Required[Union[str, "IdentityType"]] + """Type of managed service identity. Required. Known values are: \"SystemAssigned\", + \"UserAssigned\", and \"None\".""" + userAssignedIdentities: dict[str, "UserIdentityProperties"] + """The list of user identities associated with the resource. The user identity dictionary key + references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.""" + + +class KeyVaultProperties(TypedDict, total=False): + """The key vault properties. + + :ivar keyVaultUri: The Key Vault uri which holds they key associated with the Log Analytics + cluster. + :vartype keyVaultUri: str + :ivar keyName: The name of the key associated with the Log Analytics cluster. + :vartype keyName: str + :ivar keyVersion: The version of the key associated with the Log Analytics cluster. + :vartype keyVersion: str + :ivar keyRsaSize: Selected key minimum required size. + :vartype keyRsaSize: int + """ + + keyVaultUri: str + """The Key Vault uri which holds they key associated with the Log Analytics cluster.""" + keyName: str + """The name of the key associated with the Log Analytics cluster.""" + keyVersion: str + """The version of the key associated with the Log Analytics cluster.""" + keyRsaSize: int + """Selected key minimum required size.""" + + +class LinkedService(ProxyResource): + """The top level Linked service resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: The properties of the linked service. Required. + :vartype properties: "LinkedServiceProperties" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: Required["LinkedServiceProperties"] + """The properties of the linked service. Required.""" + tags: dict[str, str] + """Resource tags.""" + + +class LinkedServiceProperties(TypedDict, total=False): + """Linked service properties. + + :ivar resourceId: The resource id of the resource that will be linked to the workspace. This + should be used for linking resources which require read access. + :vartype resourceId: str + :ivar writeAccessResourceId: The resource id of the resource that will be linked to the + workspace. This should be used for linking resources which require write access. + :vartype writeAccessResourceId: str + :ivar provisioningState: The provisioning state of the linked service. Known values are: + "Succeeded", "Deleting", "ProvisioningAccount", and "Updating". + :vartype provisioningState: Union[str, "LinkedServiceEntityStatus"] + """ + + resourceId: str + """The resource id of the resource that will be linked to the workspace. This should be used for + linking resources which require read access.""" + writeAccessResourceId: str + """The resource id of the resource that will be linked to the workspace. This should be used for + linking resources which require write access.""" + provisioningState: Union[str, "LinkedServiceEntityStatus"] + """The provisioning state of the linked service. Known values are: \"Succeeded\", \"Deleting\", + \"ProvisioningAccount\", and \"Updating\".""" + + +class LinkedStorageAccountsProperties(TypedDict, total=False): + """Linked storage accounts properties. + + :ivar dataSourceType: Linked storage accounts type. Known values are: "CustomLogs", + "AzureWatson", "Query", "Ingestion", and "Alerts". + :vartype dataSourceType: Union[str, "DataSourceType"] + :ivar storageAccountIds: Linked storage accounts resources ids. + :vartype storageAccountIds: list[str] + """ + + dataSourceType: Union[str, "DataSourceType"] + """Linked storage accounts type. Known values are: \"CustomLogs\", \"AzureWatson\", \"Query\", + \"Ingestion\", and \"Alerts\".""" + storageAccountIds: list[str] + """Linked storage accounts resources ids.""" + + +class LinkedStorageAccountsResource(ProxyResource): + """Linked storage accounts top level resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Linked storage accounts properties. Required. + :vartype properties: "LinkedStorageAccountsProperties" + """ + + properties: Required["LinkedStorageAccountsProperties"] + """Linked storage accounts properties. Required.""" + + +class LogAnalyticsQueryPack(TrackedResource): + """An Log Analytics QueryPack definition. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Properties that define a Log Analytics QueryPack resource. Required. + :vartype properties: "LogAnalyticsQueryPackProperties" + """ + + properties: Required["LogAnalyticsQueryPackProperties"] + """Properties that define a Log Analytics QueryPack resource. Required.""" + + +class LogAnalyticsQueryPackProperties(TypedDict, total=False): + """Properties that define a Log Analytics QueryPack resource. + + :ivar queryPackId: The unique ID of your application. This field cannot be changed. + :vartype queryPackId: str + :ivar timeCreated: Creation Date for the Log Analytics QueryPack, in ISO 8601 format. + :vartype timeCreated: str + :ivar timeModified: Last modified date of the Log Analytics QueryPack, in ISO 8601 format. + :vartype timeModified: str + :ivar provisioningState: Current state of this QueryPack: whether or not is has been + provisioned within the resource group it is defined. Users cannot change this value but are + able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. + :vartype provisioningState: str + """ + + queryPackId: str + """The unique ID of your application. This field cannot be changed.""" + timeCreated: str + """Creation Date for the Log Analytics QueryPack, in ISO 8601 format.""" + timeModified: str + """Last modified date of the Log Analytics QueryPack, in ISO 8601 format.""" + provisioningState: str + """Current state of this QueryPack: whether or not is has been provisioned within the resource + group it is defined. Users cannot change this value but are able to read from it. Values will + include Succeeded, Deploying, Canceled, and Failed.""" + + +class LogAnalyticsQueryPackQuery(ProxyResource): + """A Log Analytics QueryPack-Query definition. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties that define an Log Analytics QueryPack-Query resource. + :vartype properties: "LogAnalyticsQueryPackQueryProperties" + """ + + properties: "LogAnalyticsQueryPackQueryProperties" + """Properties that define an Log Analytics QueryPack-Query resource.""" + + +class LogAnalyticsQueryPackQueryProperties(TypedDict, total=False): + """Properties that define an Log Analytics QueryPack-Query resource. + + :ivar id: The unique ID of your application. This field cannot be changed. + :vartype id: str + :ivar displayName: Unique display name for your query within the Query Pack. Required. + :vartype displayName: str + :ivar timeCreated: Creation Date for the Log Analytics Query, in ISO 8601 format. + :vartype timeCreated: str + :ivar timeModified: Last modified date of the Log Analytics Query, in ISO 8601 format. + :vartype timeModified: str + :ivar author: Object Id of user creating the query. + :vartype author: str + :ivar description: Description of the query. + :vartype description: str + :ivar body: Body of the query. Required. + :vartype body: str + :ivar related: The related metadata items for the function. + :vartype related: "LogAnalyticsQueryPackQueryPropertiesRelated" + :ivar tags: Tags associated with the query. + :vartype tags: dict[str, list[str]] + :ivar properties: Additional properties that can be set for the query. + :vartype properties: Any + """ + + id: str + """The unique ID of your application. This field cannot be changed.""" + displayName: Required[str] + """Unique display name for your query within the Query Pack. Required.""" + timeCreated: str + """Creation Date for the Log Analytics Query, in ISO 8601 format.""" + timeModified: str + """Last modified date of the Log Analytics Query, in ISO 8601 format.""" + author: str + """Object Id of user creating the query.""" + description: str + """Description of the query.""" + body: Required[str] + """Body of the query. Required.""" + related: "LogAnalyticsQueryPackQueryPropertiesRelated" + """The related metadata items for the function.""" + tags: dict[str, list[str]] + """Tags associated with the query.""" + properties: Any + """Additional properties that can be set for the query.""" + + +class LogAnalyticsQueryPackQueryPropertiesRelated(TypedDict, total=False): # pylint: disable=name-too-long + """The related metadata items for the function. + + :ivar categories: The related categories for the function. + :vartype categories: list[str] + :ivar resourceTypes: The related resource types for the function. + :vartype resourceTypes: list[str] + :ivar solutions: The related Log Analytics solutions for the function. + :vartype solutions: list[str] + """ + + categories: list[str] + """The related categories for the function.""" + resourceTypes: list[str] + """The related resource types for the function.""" + solutions: list[str] + """The related Log Analytics solutions for the function.""" + + +class LogAnalyticsQueryPackQuerySearchProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties that define an Log Analytics QueryPack-Query search properties. + + :ivar related: The related metadata items for the function. + :vartype related: "LogAnalyticsQueryPackQuerySearchPropertiesRelated" + :ivar tags: Tags associated with the query. + :vartype tags: dict[str, list[str]] + """ + + related: "LogAnalyticsQueryPackQuerySearchPropertiesRelated" + """The related metadata items for the function.""" + tags: dict[str, list[str]] + """Tags associated with the query.""" + + +class LogAnalyticsQueryPackQuerySearchPropertiesRelated(TypedDict, total=False): # pylint: disable=name-too-long + """The related metadata items for the function. + + :ivar categories: The related categories for the function. + :vartype categories: list[str] + :ivar resourceTypes: The related resource types for the function. + :vartype resourceTypes: list[str] + :ivar solutions: The related Log Analytics solutions for the function. + :vartype solutions: list[str] + """ + + categories: list[str] + """The related categories for the function.""" + resourceTypes: list[str] + """The related resource types for the function.""" + solutions: list[str] + """The related Log Analytics solutions for the function.""" + + +class ManagedServiceIdentity(TypedDict, total=False): + """Managed service identity (system assigned and/or user assigned identities). + + :ivar principalId: The service principal ID of the system assigned identity. This property will + only be provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenantId: str + :ivar type: The type of managed identity assigned to this resource. Required. Known values are: + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + :vartype type: Union[str, "ManagedServiceIdentityType"] + :ivar userAssignedIdentities: The identities assigned to this resource by the user. + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """ + + principalId: str + """The service principal ID of the system assigned identity. This property will only be provided + for a system assigned identity.""" + tenantId: str + """The tenant ID of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Required[Union[str, "ManagedServiceIdentityType"]] + """The type of managed identity assigned to this resource. Required. Known values are: \"None\", + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """The identities assigned to this resource by the user.""" + + +class PrivateLinkScopedResource(TypedDict, total=False): + """The private link scope resource reference. + + :ivar resourceId: The full resource Id of the private link scope resource. + :vartype resourceId: str + :ivar scopeId: The private link scope unique Identifier. + :vartype scopeId: str + """ + + resourceId: str + """The full resource Id of the private link scope resource.""" + scopeId: str + """The private link scope unique Identifier.""" + + +class RestoredLogs(TypedDict, total=False): + """Restore parameters. + + :ivar startRestoreTime: The timestamp to start the restore from (UTC). + :vartype startRestoreTime: str + :ivar endRestoreTime: The timestamp to end the restore by (UTC). + :vartype endRestoreTime: str + :ivar sourceTable: The table to restore data from. + :vartype sourceTable: str + :ivar azureAsyncOperationId: Search results table async operation id. + :vartype azureAsyncOperationId: str + """ + + startRestoreTime: str + """The timestamp to start the restore from (UTC).""" + endRestoreTime: str + """The timestamp to end the restore by (UTC).""" + sourceTable: str + """The table to restore data from.""" + azureAsyncOperationId: str + """Search results table async operation id.""" + + +class ResultStatistics(TypedDict, total=False): + """Search job execution statistics. + + :ivar progress: Search job completion percentage. + :vartype progress: float + :ivar ingestedRecords: The number of rows that were returned by the search job. + :vartype ingestedRecords: int + :ivar scannedGb: Search job: Amount of scanned data. + :vartype scannedGb: float + """ + + progress: float + """Search job completion percentage.""" + ingestedRecords: int + """The number of rows that were returned by the search job.""" + scannedGb: float + """Search job: Amount of scanned data.""" + + +class RuleDefinition(TypedDict, total=False): + """Rule definition parameters. + + :ivar query: Summary rule query. + :vartype query: str + :ivar binSize: Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, + 1440. + :vartype binSize: int + :ivar binDelay: The minimum delay in seconds before bin processing. + :vartype binDelay: int + :ivar binStartTime: The start time (UTC) when Summary rule execution starts. + :vartype binStartTime: str + :ivar timeSelector: The time cursor used in Summary rules bins processing, e.g. TimeGenerated. + "TimeGenerated" + :vartype timeSelector: Union[str, "TimeSelectorEnum"] + :ivar destinationTable: The destination table used for the Summary rule results. + :vartype destinationTable: str + """ + + query: str + """Summary rule query.""" + binSize: int + """Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.""" + binDelay: int + """The minimum delay in seconds before bin processing.""" + binStartTime: str + """The start time (UTC) when Summary rule execution starts.""" + timeSelector: Union[str, "TimeSelectorEnum"] + """The time cursor used in Summary rules bins processing, e.g. TimeGenerated. \"TimeGenerated\"""" + destinationTable: str + """The destination table used for the Summary rule results.""" + + +class SavedSearch(ProxyResource): + """Value object for saved search results. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: The properties of the saved search. Required. + :vartype properties: "SavedSearchProperties" + :ivar etag: The ETag of the saved search. To override an existing saved search, use "*" or + specify the current Etag. + :vartype etag: str + """ + + properties: Required["SavedSearchProperties"] + """The properties of the saved search. Required.""" + etag: str + """The ETag of the saved search. To override an existing saved search, use \"*\" or specify the + current Etag.""" + + +class SavedSearchProperties(TypedDict, total=False): + """Value object for saved search results. + + :ivar category: The category of the saved search. This helps the user to find a saved search + faster. Required. + :vartype category: str + :ivar displayName: Saved search display name. Required. + :vartype displayName: str + :ivar query: The query expression for the saved search. Required. + :vartype query: str + :ivar functionAlias: The function alias if query serves as a function. + :vartype functionAlias: str + :ivar functionParameters: The optional function parameters if query serves as a function. Value + should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = + default_value2'. For more examples and proper syntax please refer to + `https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions + `_. + :vartype functionParameters: str + :ivar version: The version number of the query language. The current version is 2 and is the + default. + :vartype version: int + :ivar tags: The tags attached to the saved search. + :vartype tags: list["Tag"] + """ + + category: Required[str] + """The category of the saved search. This helps the user to find a saved search faster. Required.""" + displayName: Required[str] + """Saved search display name. Required.""" + query: Required[str] + """The query expression for the saved search. Required.""" + functionAlias: str + """The function alias if query serves as a function.""" + functionParameters: str + """The optional function parameters if query serves as a function. Value should be in the + following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For + more examples and proper syntax please refer to + `https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions + `_.""" + version: int + """The version number of the query language. The current version is 2 and is the default.""" + tags: list["Tag"] + """The tags attached to the saved search.""" + + +class Schema(TypedDict, total=False): + """Table's schema. + + :ivar name: Table name. + :vartype name: str + :ivar displayName: Table display name. + :vartype displayName: str + :ivar description: Table description. + :vartype description: str + :ivar columns: A list of table custom columns. + :vartype columns: list["Column"] + :ivar standardColumns: A list of table standard columns. + :vartype standardColumns: list["Column"] + :ivar categories: Table category. + :vartype categories: list[str] + :ivar labels: Table labels. + :vartype labels: list[str] + :ivar source: Table's creator. Known values are: "microsoft" and "customer". + :vartype source: Union[str, "SourceEnum"] + :ivar tableType: Table's creator. Known values are: "Microsoft", "CustomLog", "RestoredLogs", + and "SearchResults". + :vartype tableType: Union[str, "TableTypeEnum"] + :ivar tableSubType: The subtype describes what APIs can be used to interact with the table, and + what features are available against it. Known values are: "Any", "Classic", and + "DataCollectionRuleBased". + :vartype tableSubType: Union[str, "TableSubTypeEnum"] + :ivar solutions: List of solutions the table is affiliated with. + :vartype solutions: list[str] + """ + + name: str + """Table name.""" + displayName: str + """Table display name.""" + description: str + """Table description.""" + columns: list["Column"] + """A list of table custom columns.""" + standardColumns: list["Column"] + """A list of table standard columns.""" + categories: list[str] + """Table category.""" + labels: list[str] + """Table labels.""" + source: Union[str, "SourceEnum"] + """Table's creator. Known values are: \"microsoft\" and \"customer\".""" + tableType: Union[str, "TableTypeEnum"] + """Table's creator. Known values are: \"Microsoft\", \"CustomLog\", \"RestoredLogs\", and + \"SearchResults\".""" + tableSubType: Union[str, "TableSubTypeEnum"] + """The subtype describes what APIs can be used to interact with the table, and what features are + available against it. Known values are: \"Any\", \"Classic\", and \"DataCollectionRuleBased\".""" + solutions: list[str] + """List of solutions the table is affiliated with.""" + + +class SearchResults(TypedDict, total=False): + """Parameters of the search job that initiated this table. + + :ivar query: Search job query. + :vartype query: str + :ivar description: Search job Description. + :vartype description: str + :ivar limit: Limit the search job to return up to specified number of rows. + :vartype limit: int + :ivar startSearchTime: The timestamp to start the search from (UTC). + :vartype startSearchTime: str + :ivar endSearchTime: The timestamp to end the search by (UTC). + :vartype endSearchTime: str + :ivar sourceTable: The table used in the search job. + :vartype sourceTable: str + :ivar azureAsyncOperationId: Search results table async operation id. + :vartype azureAsyncOperationId: str + """ + + query: str + """Search job query.""" + description: str + """Search job Description.""" + limit: int + """Limit the search job to return up to specified number of rows.""" + startSearchTime: str + """The timestamp to start the search from (UTC).""" + endSearchTime: str + """The timestamp to end the search by (UTC).""" + sourceTable: str + """The table used in the search job.""" + azureAsyncOperationId: str + """Search results table async operation id.""" + + +class StorageAccount(TypedDict, total=False): + """Describes a storage account connection. + + :ivar id: The Azure Resource Manager ID of the storage account resource. Required. + :vartype id: str + :ivar key: The storage account key. Required. + :vartype key: str + """ + + id: Required[str] + """The Azure Resource Manager ID of the storage account resource. Required.""" + key: Required[str] + """The storage account key. Required.""" + + +class StorageInsight(ProxyResource): + """The top level storage insight resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Storage insight properties. + :vartype properties: "StorageInsightProperties" + :ivar eTag: The ETag of the storage insight. + :vartype eTag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "StorageInsightProperties" + """Storage insight properties.""" + eTag: str + """The ETag of the storage insight.""" + tags: dict[str, str] + """Resource tags.""" + + +class StorageInsightProperties(TypedDict, total=False): + """Storage insight properties. + + :ivar containers: The names of the blob containers that the workspace should read. + :vartype containers: list[str] + :ivar tables: The names of the Azure tables that the workspace should read. + :vartype tables: list[str] + :ivar storageAccount: The storage account connection details. Required. + :vartype storageAccount: "StorageAccount" + :ivar status: The status of the storage insight. + :vartype status: "StorageInsightStatus" + """ + + containers: list[str] + """The names of the blob containers that the workspace should read.""" + tables: list[str] + """The names of the Azure tables that the workspace should read.""" + storageAccount: Required["StorageAccount"] + """The storage account connection details. Required.""" + status: "StorageInsightStatus" + """The status of the storage insight.""" + + +class StorageInsightStatus(TypedDict, total=False): + """The status of the storage insight. + + :ivar state: The state of the storage insight connection to the workspace. Required. Known + values are: "OK" and "ERROR". + :vartype state: Union[str, "StorageInsightState"] + :ivar description: Description of the state of the storage insight. + :vartype description: str + """ + + state: Required[Union[str, "StorageInsightState"]] + """The state of the storage insight connection to the workspace. Required. Known values are: + \"OK\" and \"ERROR\".""" + description: str + """Description of the state of the storage insight.""" + + +class SummaryLogs(ProxyResource): + """Workspace data summary rules definition. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Summary rule properties. + :vartype properties: "SummaryLogsProperties" + :ivar identity: The managed identity of the summary logs resource. Only user-assigned identity + is supported. + :vartype identity: "SummaryLogsIdentity" + """ + + properties: "SummaryLogsProperties" + """Summary rule properties.""" + identity: "SummaryLogsIdentity" + """The managed identity of the summary logs resource. Only user-assigned identity is supported.""" + + +class SummaryLogsIdentity(TypedDict, total=False): + """Identity for the summary logs resource. + + :ivar principalId: The principal ID of resource identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of resource. + :vartype tenantId: str + :ivar type: Type of managed service identity. Required. Known values are: "None" and + "UserAssigned". + :vartype type: Union[str, "SummaryLogsIdentityType"] + :ivar userAssignedIdentities: The list of user identities associated with the resource. The + user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :vartype userAssignedIdentities: dict[str, "SummaryLogsUserIdentityProperties"] + """ + + principalId: str + """The principal ID of resource identity.""" + tenantId: str + """The tenant ID of resource.""" + type: Required[Union[str, "SummaryLogsIdentityType"]] + """Type of managed service identity. Required. Known values are: \"None\" and \"UserAssigned\".""" + userAssignedIdentities: dict[str, "SummaryLogsUserIdentityProperties"] + """The list of user identities associated with the resource. The user identity dictionary key + references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.""" + + +class SummaryLogsProperties(TypedDict, total=False): + """Summary rule properties. + + :ivar ruleType: SummaryRules rule type: User. "User" + :vartype ruleType: Union[str, "RuleTypeEnum"] + :ivar displayName: The display name of the Summary rule. + :vartype displayName: str + :ivar description: The description of the Summary rule. + :vartype description: str + :ivar isActive: Indicates if Summary rule is active. If not, Summary rule execution stops. + :vartype isActive: bool + :ivar statusCode: Indicates the reason for rule deactivation. Known values are: "UserAction" + and "DataPlaneError". + :vartype statusCode: Union[str, "StatusCodeEnum"] + :ivar provisioningState: Summary rule is in provisioning state. If set to 'updating' or + 'deleting', indicates a resource lock due to an ongoing operation, preventing any update to the + Summary rule until the operation is complete. Known values are: "Updating", "Succeeded", + "Deleting", "Failed", and "Canceled". + :vartype provisioningState: Union[str, "SummaryLogsProvisioningState"] + :ivar ruleDefinition: Rule definition parameters. + :vartype ruleDefinition: "RuleDefinition" + """ + + ruleType: Union[str, "RuleTypeEnum"] + """SummaryRules rule type: User. \"User\"""" + displayName: str + """The display name of the Summary rule.""" + description: str + """The description of the Summary rule.""" + isActive: bool + """Indicates if Summary rule is active. If not, Summary rule execution stops.""" + statusCode: Union[str, "StatusCodeEnum"] + """Indicates the reason for rule deactivation. Known values are: \"UserAction\" and + \"DataPlaneError\".""" + provisioningState: Union[str, "SummaryLogsProvisioningState"] + """Summary rule is in provisioning state. If set to 'updating' or 'deleting', indicates a resource + lock due to an ongoing operation, preventing any update to the Summary rule until the operation + is complete. Known values are: \"Updating\", \"Succeeded\", \"Deleting\", \"Failed\", and + \"Canceled\".""" + ruleDefinition: "RuleDefinition" + """Rule definition parameters.""" + + +class SummaryLogsRetryBin(TypedDict, total=False): + """Request to retry a summary logs bin. + + :ivar properties: Retry bin properties. + :vartype properties: "SummaryLogsRetryBinProperties" + """ + + properties: "SummaryLogsRetryBinProperties" + """Retry bin properties.""" + + +class SummaryLogsRetryBinProperties(TypedDict, total=False): + """Properties for retrying a Summary rule bin. + + :ivar retryBinStartTime: The time (UTC) of the bin to retry. Required. + :vartype retryBinStartTime: str + """ + + retryBinStartTime: Required[str] + """The time (UTC) of the bin to retry. Required.""" + + +class SummaryLogsUserIdentityProperties(TypedDict, total=False): + """User assigned identity properties. + + :ivar principalId: The principal id of user assigned identity. + :vartype principalId: str + :ivar clientId: The client id of user assigned identity. + :vartype clientId: str + """ + + principalId: str + """The principal id of user assigned identity.""" + clientId: str + """The client id of user assigned identity.""" + + +class SystemData(TypedDict, total=False): + """Metadata pertaining to creation and last modification of the resource. + + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str + """ + + createdBy: str + """The identity that created the resource.""" + createdByType: Union[str, "CreatedByType"] + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + createdAt: str + """The timestamp of resource creation (UTC).""" + lastModifiedBy: str + """The identity that last modified the resource.""" + lastModifiedByType: Union[str, "CreatedByType"] + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + lastModifiedAt: str + """The timestamp of resource last modification (UTC).""" + + +class Table(ProxyResource): + """Workspace data table definition. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Table's properties. + :vartype properties: "TableProperties" + """ + + properties: "TableProperties" + """Table's properties.""" + + +class TableProperties(TypedDict, total=False): + """Table properties. + + :ivar retentionInDays: In Analytics table: the tables analytics retention in days, between 4 + and 730. Setting this property to -1 will default to the workspace retention. In Basic and + Auxiliary table: read only property. + :vartype retentionInDays: int + :ivar totalRetentionInDays: The table total retention in days, between 4 and 4383. Setting this + property to -1 will default to retentionInDays. + :vartype totalRetentionInDays: int + :ivar archiveRetentionInDays: The tables long-term retention in days. Calculated as + (totalRetentionInDays-retentionInDays). + :vartype archiveRetentionInDays: int + :ivar searchResults: Parameters of the search job that initiated this table. + :vartype searchResults: "SearchResults" + :ivar restoredLogs: Parameters of the restore operation that initiated this table. + :vartype restoredLogs: "RestoredLogs" + :ivar resultStatistics: Search job execution statistics. + :vartype resultStatistics: "ResultStatistics" + :ivar plan: Instruct the system how to handle and charge the logs ingested to this table. Known + values are: "Basic", "Analytics", and "Auxiliary". + :vartype plan: Union[str, "TablePlanEnum"] + :ivar protectionLevel: The protection level of the table. Determines the default data access + isolation behavior. Known values are: "General" and "Protected". + :vartype protectionLevel: Union[str, "TableProtectionLevelEnum"] + :ivar lastPlanModifiedDate: The timestamp that table plan was last modified (UTC). + :vartype lastPlanModifiedDate: str + :ivar schema: Table schema. + :vartype schema: "Schema" + :ivar provisioningState: Table's current provisioning state. If set to 'updating', indicates a + resource lock due to ongoing operation, forbidding any update to the table until the ongoing + operation is concluded. Known values are: "Updating", "InProgress", "Succeeded", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningStateEnum"] + :ivar retentionInDaysAsDefault: True - Value originates from workspace retention in days, False + - Customer specific. + :vartype retentionInDaysAsDefault: bool + :ivar totalRetentionInDaysAsDefault: True - Value originates from retention in days, False - + Customer specific. + :vartype totalRetentionInDaysAsDefault: bool + """ + + retentionInDays: int + """In Analytics table: the tables analytics retention in days, between 4 and 730. Setting this + property to -1 will default to the workspace retention. In Basic and Auxiliary table: read only + property.""" + totalRetentionInDays: int + """The table total retention in days, between 4 and 4383. Setting this property to -1 will default + to retentionInDays.""" + archiveRetentionInDays: int + """The tables long-term retention in days. Calculated as (totalRetentionInDays-retentionInDays).""" + searchResults: "SearchResults" + """Parameters of the search job that initiated this table.""" + restoredLogs: "RestoredLogs" + """Parameters of the restore operation that initiated this table.""" + resultStatistics: "ResultStatistics" + """Search job execution statistics.""" + plan: Union[str, "TablePlanEnum"] + """Instruct the system how to handle and charge the logs ingested to this table. Known values are: + \"Basic\", \"Analytics\", and \"Auxiliary\".""" + protectionLevel: Union[str, "TableProtectionLevelEnum"] + """The protection level of the table. Determines the default data access isolation behavior. Known + values are: \"General\" and \"Protected\".""" + lastPlanModifiedDate: str + """The timestamp that table plan was last modified (UTC).""" + schema: "Schema" + """Table schema.""" + provisioningState: Union[str, "ProvisioningStateEnum"] + """Table's current provisioning state. If set to 'updating', indicates a resource lock due to + ongoing operation, forbidding any update to the table until the ongoing operation is concluded. + Known values are: \"Updating\", \"InProgress\", \"Succeeded\", and \"Deleting\".""" + retentionInDaysAsDefault: bool + """True - Value originates from workspace retention in days, False - Customer specific.""" + totalRetentionInDaysAsDefault: bool + """True - Value originates from retention in days, False - Customer specific.""" + + +class Tag(TypedDict, total=False): + """A tag of a saved search. + + :ivar name: The tag name. Required. + :vartype name: str + :ivar value: The tag value. Required. + :vartype value: str + """ + + name: Required[str] + """The tag name. Required.""" + value: Required[str] + """The tag value. Required.""" + + +class TagsResource(TypedDict, total=False): + """A container holding only the Tags for a resource, allowing the user to update the tags on a + QueryPack instance. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: dict[str, str] + """Resource tags.""" + + +class UserAssignedIdentity(TypedDict, total=False): + """User assigned identity properties. + + :ivar principalId: The principal ID of the assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the assigned identity. + :vartype clientId: str + """ + + principalId: str + """The principal ID of the assigned identity.""" + clientId: str + """The client ID of the assigned identity.""" + + +class UserIdentityProperties(TypedDict, total=False): + """User assigned identity properties. + + :ivar principalId: The principal id of user assigned identity. + :vartype principalId: str + :ivar clientId: The client id of user assigned identity. + :vartype clientId: str + """ + + principalId: str + """The principal id of user assigned identity.""" + clientId: str + """The client id of user assigned identity.""" + + +class Workspace(TrackedResource): + """The top level Workspace resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Workspace properties. + :vartype properties: "WorkspaceProperties" + :ivar identity: The identity of the resource. + :vartype identity: "Identity" + :ivar etag: The etag of the workspace. + :vartype etag: str + """ + + properties: "WorkspaceProperties" + """Workspace properties.""" + identity: "Identity" + """The identity of the resource.""" + etag: str + """The etag of the workspace.""" + + +class WorkspaceCapping(TypedDict, total=False): + """The daily volume cap for ingestion. + + :ivar dailyQuotaGb: The workspace daily quota for ingestion. + :vartype dailyQuotaGb: float + :ivar quotaNextResetTime: The time when the quota will be rest. + :vartype quotaNextResetTime: str + :ivar dataIngestionStatus: The status of data ingestion for this workspace. Known values are: + "RespectQuota", "ForceOn", "ForceOff", "OverQuota", "SubscriptionSuspended", and + "ApproachingQuota". + :vartype dataIngestionStatus: Union[str, "DataIngestionStatus"] + """ + + dailyQuotaGb: float + """The workspace daily quota for ingestion.""" + quotaNextResetTime: str + """The time when the quota will be rest.""" + dataIngestionStatus: Union[str, "DataIngestionStatus"] + """The status of data ingestion for this workspace. Known values are: \"RespectQuota\", + \"ForceOn\", \"ForceOff\", \"OverQuota\", \"SubscriptionSuspended\", and \"ApproachingQuota\".""" + + +class WorkspaceFailoverProperties(TypedDict, total=False): + """The failover state of the replication. + + :ivar state: The failover state of the replication. Known values are: "Inactive", "Activating", + "Active", "Deactivating", and "Failed". + :vartype state: Union[str, "WorkspaceFailoverState"] + :ivar lastModifiedDate: The last time when the failover state was updated. + :vartype lastModifiedDate: str + """ + + state: Union[str, "WorkspaceFailoverState"] + """The failover state of the replication. Known values are: \"Inactive\", \"Activating\", + \"Active\", \"Deactivating\", and \"Failed\".""" + lastModifiedDate: str + """The last time when the failover state was updated.""" + + +class WorkspaceFeatures(TypedDict, total=False): + """Workspace features. + + :ivar enableDataExport: Flag that indicate if data should be exported. + :vartype enableDataExport: bool + :ivar immediatePurgeDataOn30Days: Flag that describes if we want to remove the data after 30 + days. + :vartype immediatePurgeDataOn30Days: bool + :ivar enableLogAccessUsingOnlyResourcePermissions: Flag that indicate which permission to use - + resource or workspace or both. + :vartype enableLogAccessUsingOnlyResourcePermissions: bool + :ivar clusterResourceId: Dedicated LA cluster resourceId that is linked to the workspaces. + :vartype clusterResourceId: str + :ivar disableLocalAuth: Disable Non-AAD based Auth. + :vartype disableLocalAuth: bool + :ivar unifiedSentinelBillingOnly: An indication if the specify workspace is limited to + sentinel's unified billing model only. + :vartype unifiedSentinelBillingOnly: bool + :ivar associations: List of associations for the workspace. Indicates if the workspace is + associated with any of the following experiences: MDC, Sentinel, SentinelGraph, etc. + :vartype associations: list[str] + :ivar dataAuthorizationMode: Enable Data authorization mode for the workspace. + :vartype dataAuthorizationMode: bool + """ + + enableDataExport: Optional[bool] + """Flag that indicate if data should be exported.""" + immediatePurgeDataOn30Days: Optional[bool] + """Flag that describes if we want to remove the data after 30 days.""" + enableLogAccessUsingOnlyResourcePermissions: Optional[bool] + """Flag that indicate which permission to use - resource or workspace or both.""" + clusterResourceId: Optional[str] + """Dedicated LA cluster resourceId that is linked to the workspaces.""" + disableLocalAuth: Optional[bool] + """Disable Non-AAD based Auth.""" + unifiedSentinelBillingOnly: Optional[bool] + """An indication if the specify workspace is limited to sentinel's unified billing model only.""" + associations: list[str] + """List of associations for the workspace. Indicates if the workspace is associated with any of + the following experiences: MDC, Sentinel, SentinelGraph, etc.""" + dataAuthorizationMode: Optional[bool] + """Enable Data authorization mode for the workspace.""" + + +class WorkspacePatch(AzureEntityResource): + """The top level Workspace resource container. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar properties: Workspace properties. + :vartype properties: "WorkspaceProperties" + :ivar identity: The identity of the resource. + :vartype identity: "Identity" + :ivar tags: Resource tags. Optional. + :vartype tags: dict[str, str] + """ + + properties: "WorkspaceProperties" + """Workspace properties.""" + identity: "Identity" + """The identity of the resource.""" + tags: dict[str, str] + """Resource tags. Optional.""" + + +class WorkspaceProperties(TypedDict, total=False): + """Workspace properties. + + :ivar provisioningState: The provisioning state of the workspace. Known values are: "Creating", + "Succeeded", "Failed", "Canceled", "Deleting", "ProvisioningAccount", and "Updating". + :vartype provisioningState: Union[str, "WorkspaceEntityStatus"] + :ivar customerId: This is a read-only property. Represents the ID associated with the + workspace. + :vartype customerId: str + :ivar sku: The SKU of the workspace. + :vartype sku: "WorkspaceSku" + :ivar retentionInDays: The workspace data retention in days. Allowed values are per pricing + plan. See pricing tiers documentation for details. + :vartype retentionInDays: int + :ivar workspaceCapping: The daily volume cap for ingestion. + :vartype workspaceCapping: "WorkspaceCapping" + :ivar createdDate: Workspace creation date. + :vartype createdDate: str + :ivar modifiedDate: Workspace modification date. + :vartype modifiedDate: str + :ivar publicNetworkAccessForIngestion: The network access type for accessing Log Analytics + ingestion. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". + :vartype publicNetworkAccessForIngestion: Union[str, "PublicNetworkAccessType"] + :ivar publicNetworkAccessForQuery: The network access type for accessing Log Analytics query. + Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". + :vartype publicNetworkAccessForQuery: Union[str, "PublicNetworkAccessType"] + :ivar forceCmkForQuery: Indicates whether customer managed storage is mandatory for query + management. + :vartype forceCmkForQuery: bool + :ivar privateLinkScopedResources: List of linked private link scope resources. + :vartype privateLinkScopedResources: list["PrivateLinkScopedResource"] + :ivar features: Workspace features. + :vartype features: "WorkspaceFeatures" + :ivar defaultDataCollectionRuleResourceId: The resource ID of the default Data Collection Rule + to use for this workspace. Expected format is - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. + :vartype defaultDataCollectionRuleResourceId: str + :ivar replication: workspace replication properties. + :vartype replication: "WorkspaceReplicationProperties" + :ivar failover: workspace failover properties. + :vartype failover: "WorkspaceFailoverProperties" + """ + + provisioningState: Union[str, "WorkspaceEntityStatus"] + """The provisioning state of the workspace. Known values are: \"Creating\", \"Succeeded\", + \"Failed\", \"Canceled\", \"Deleting\", \"ProvisioningAccount\", and \"Updating\".""" + customerId: str + """This is a read-only property. Represents the ID associated with the workspace.""" + sku: "WorkspaceSku" + """The SKU of the workspace.""" + retentionInDays: Optional[int] + """The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + documentation for details.""" + workspaceCapping: "WorkspaceCapping" + """The daily volume cap for ingestion.""" + createdDate: str + """Workspace creation date.""" + modifiedDate: str + """Workspace modification date.""" + publicNetworkAccessForIngestion: Union[str, "PublicNetworkAccessType"] + """The network access type for accessing Log Analytics ingestion. Known values are: \"Enabled\", + \"Disabled\", and \"SecuredByPerimeter\".""" + publicNetworkAccessForQuery: Union[str, "PublicNetworkAccessType"] + """The network access type for accessing Log Analytics query. Known values are: \"Enabled\", + \"Disabled\", and \"SecuredByPerimeter\".""" + forceCmkForQuery: bool + """Indicates whether customer managed storage is mandatory for query management.""" + privateLinkScopedResources: list["PrivateLinkScopedResource"] + """List of linked private link scope resources.""" + features: "WorkspaceFeatures" + """Workspace features.""" + defaultDataCollectionRuleResourceId: str + """The resource ID of the default Data Collection Rule to use for this workspace. Expected format + is - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.""" + replication: "WorkspaceReplicationProperties" + """workspace replication properties.""" + failover: "WorkspaceFailoverProperties" + """workspace failover properties.""" + + +class WorkspacePurgeBody(TypedDict, total=False): + """Describes the body of a purge request for an App Insights Workspace. + + :ivar table: Table from which to purge data. Required. + :vartype table: str + :ivar filters: The set of columns and filters (queries) to run over them to purge the resulting + data. Required. + :vartype filters: list["WorkspacePurgeBodyFilters"] + """ + + table: Required[str] + """Table from which to purge data. Required.""" + filters: Required[list["WorkspacePurgeBodyFilters"]] + """The set of columns and filters (queries) to run over them to purge the resulting data. + Required.""" + + +class WorkspacePurgeBodyFilters(TypedDict, total=False): + """User-defined filters to return data which will be purged from the table. + + :ivar column: The column of the table over which the given query should run. + :vartype column: str + :ivar operator: A query operator to evaluate over the provided column and value(s). Supported + operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would + in a KQL query. + :vartype operator: str + :ivar value: the value for the operator to function over. This can be a number (e.g., > 100), a + string (timestamp >= '2017-09-01') or array of values. + :vartype value: Any + :ivar key: When filtering over custom dimensions, this key will be used as the name of the + custom dimension. + :vartype key: str + """ + + column: str + """The column of the table over which the given query should run.""" + operator: str + """A query operator to evaluate over the provided column and value(s). Supported operators are ==, + =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.""" + value: Any + """the value for the operator to function over. This can be a number (e.g., > 100), a string + (timestamp >= '2017-09-01') or array of values.""" + key: str + """When filtering over custom dimensions, this key will be used as the name of the custom + dimension.""" + + +class WorkspacePurgeLakeDataBody(TypedDict, total=False): + """Describes the body of a request to purge data lake data in a Log Analytics workspace. + + :ivar table: The name of the table from which to purge data lake data. Must be an Auxiliary + table, or an Analytics table that is mirrored to the data lake. Required. + :vartype table: str + :ivar timeRange: The time range over which data lake data is purged. Required. + :vartype timeRange: "WorkspacePurgeLakeDataTimeRange" + """ + + table: Required[str] + """The name of the table from which to purge data lake data. Must be an Auxiliary table, or an + Analytics table that is mirrored to the data lake. Required.""" + timeRange: Required["WorkspacePurgeLakeDataTimeRange"] + """The time range over which data lake data is purged. Required.""" + + +class WorkspacePurgeLakeDataTimeRange(TypedDict, total=False): + """The time range over which a data lake purge request operates. + + :ivar startTime: The inclusive start of the time range, in UTC. Must fall on an hour boundary + (minutes and seconds must be zero). Required. + :vartype startTime: str + :ivar endTime: The exclusive end of the time range, in UTC. Must fall on an hour boundary and + be earlier than the start of the current hour. Required. + :vartype endTime: str + """ + + startTime: Required[str] + """The inclusive start of the time range, in UTC. Must fall on an hour boundary (minutes and + seconds must be zero). Required.""" + endTime: Required[str] + """The exclusive end of the time range, in UTC. Must fall on an hour boundary and be earlier than + the start of the current hour. Required.""" + + +class WorkspaceReplicationProperties(TypedDict, total=False): + """Workspace replication properties. + + :ivar location: The location of the replication. + :vartype location: str + :ivar enabled: Specifies whether the replication is enabled or not. When true, workspace + configuration and data is replicated to the specified location. If replication is been enabled, + location must be provided. + :vartype enabled: bool + :ivar provisioningState: The provisioning state of the replication. Known values are: + "Succeeded", "EnableRequested", "Enabling", "DisableRequested", "Disabling", + "RollbackRequested", "RollingBack", "Failed", and "Canceled". + :vartype provisioningState: Union[str, "WorkspaceReplicationState"] + :ivar createdDate: The last time when the replication was enabled. + :vartype createdDate: str + :ivar lastModifiedDate: The last time when the replication was updated. + :vartype lastModifiedDate: str + """ + + location: str + """The location of the replication.""" + enabled: bool + """Specifies whether the replication is enabled or not. When true, workspace configuration and + data is replicated to the specified location. If replication is been enabled, location must be + provided.""" + provisioningState: Union[str, "WorkspaceReplicationState"] + """The provisioning state of the replication. Known values are: \"Succeeded\", + \"EnableRequested\", \"Enabling\", \"DisableRequested\", \"Disabling\", \"RollbackRequested\", + \"RollingBack\", \"Failed\", and \"Canceled\".""" + createdDate: str + """The last time when the replication was enabled.""" + lastModifiedDate: str + """The last time when the replication was updated.""" + + +class WorkspaceSku(TypedDict, total=False): + """The SKU (tier) of a workspace. + + :ivar name: The name of the SKU. Required. Known values are: "Free", "Standard", "Premium", + "PerNode", "PerGB2018", "Standalone", "CapacityReservation", and "LACluster". + :vartype name: Union[str, "WorkspaceSkuNameEnum"] + :ivar capacityReservationLevel: The capacity reservation level in GB for this workspace, when + CapacityReservation sku is selected. + :vartype capacityReservationLevel: int + :ivar lastSkuUpdate: The last time when the sku was updated. + :vartype lastSkuUpdate: str + """ + + name: Required[Union[str, "WorkspaceSkuNameEnum"]] + """The name of the SKU. Required. Known values are: \"Free\", \"Standard\", \"Premium\", + \"PerNode\", \"PerGB2018\", \"Standalone\", \"CapacityReservation\", and \"LACluster\".""" + capacityReservationLevel: Optional[int] + """The capacity reservation level in GB for this workspace, when CapacityReservation sku is + selected.""" + lastSkuUpdate: str + """The last time when the sku was updated.""" diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_create.py index df0124a882fc..197e0f015eb8 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_create.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ClustersCreate.json +# x-ms-original-file: 2026-03-01/ClustersCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_delete.py index a87e79433d96..9447225b72ba 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ClustersDelete.json +# x-ms-original-file: 2026-03-01/ClustersDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_get.py index a29886d94b64..d75a3aae0787 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ClustersGet.json +# x-ms-original-file: 2026-03-01/ClustersGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_list_by_resource_group.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_list_by_resource_group.py index 27a903955cf4..8ee02ab692b6 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_list_by_resource_group.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ClustersListByResourceGroup.json +# x-ms-original-file: 2026-03-01/ClustersListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_subscription_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_subscription_list.py index 36ec3977b005..99b76f5ca920 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_subscription_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_subscription_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ClustersSubscriptionList.json +# x-ms-original-file: 2026-03-01/ClustersSubscriptionList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_update.py index 69a70581188c..34a1c347aea2 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/clusters_update.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ClustersUpdate.json +# x-ms-original-file: 2026-03-01/ClustersUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_create_or_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_create_or_update.py index 11b553f0d177..ebba097c4267 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_create_or_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_create_or_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DataExportCreateOrUpdate.json +# x-ms-original-file: 2026-03-01/DataExportCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_delete.py index 2dde05c2b6ce..1ae9bed77325 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/DataExportDelete.json +# x-ms-original-file: 2026-03-01/DataExportDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_get.py index b16fbde4b790..bc88c82fbc1d 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DataExportGet.json +# x-ms-original-file: 2026-03-01/DataExportGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_list_by_workspace.py index 91be451eaa53..cb2cadb435bc 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_export_list_by_workspace.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DataExportListByWorkspace.json +# x-ms-original-file: 2026-03-01/DataExportListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_create.py index cd83a6b77c04..34aab1787893 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_create.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DataSourcesCreate.json +# x-ms-original-file: 2026-03-01/DataSourcesCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_delete.py index b336e6b10693..66039125104f 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/DataSourcesDelete.json +# x-ms-original-file: 2026-03-01/DataSourcesDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_get.py index 0a51a8feadec..ba94ac4bfeec 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DataSourcesGet.json +# x-ms-original-file: 2026-03-01/DataSourcesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_list_by_workspace.py index 713e15c3e42f..ba07482e047d 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/data_sources_list_by_workspace.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DataSourcesListByWorkspace.json +# x-ms-original-file: 2026-03-01/DataSourcesListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_create.py index c31e5744859c..e99d4bc16155 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_create.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LinkedServicesCreate.json +# x-ms-original-file: 2026-03-01/LinkedServicesCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_delete.py index 46eebfe598cf..9f827dad447c 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_delete.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LinkedServicesDelete.json +# x-ms-original-file: 2026-03-01/LinkedServicesDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_get.py index 93df543585fc..24252991f74a 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LinkedServicesGet.json +# x-ms-original-file: 2026-03-01/LinkedServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_list_by_workspace.py index 8c32fadc5a65..d5505fefbcb6 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_services_list_by_workspace.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LinkedServicesListByWorkspace.json +# x-ms-original-file: 2026-03-01/LinkedServicesListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_create.py index 228d6e7b127a..cb9d3e633f96 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_create.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LinkedStorageAccountsCreate.json +# x-ms-original-file: 2026-03-01/LinkedStorageAccountsCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_delete.py index 1e706004a887..18f7ab3fe9e7 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/LinkedStorageAccountsDelete.json +# x-ms-original-file: 2026-03-01/LinkedStorageAccountsDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_get.py index 069f81983f2b..40727dd42df4 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LinkedStorageAccountsGet.json +# x-ms-original-file: 2026-03-01/LinkedStorageAccountsGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_list_by_workspace.py index c3ef75ac04f5..be5901544640 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/linked_storage_accounts_list_by_workspace.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LinkedStorageAccountsListByWorkspace.json +# x-ms-original-file: 2026-03-01/LinkedStorageAccountsListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_get.py index 77f4b6169bec..04b799e54b9e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NSPForWorkspaces_Get.json +# x-ms-original-file: 2026-03-01/NSPForWorkspaces_Get.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_list.py index b478fb29e3e5..5ac8dbbe9d98 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NSPForWorkspaces_List.json +# x-ms-original-file: 2026-03-01/NSPForWorkspaces_List.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_reconcile.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_reconcile.py index 8ceff96f61c2..766631e9e2fe 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_reconcile.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/nsp_for_workspaces_reconcile.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NSPForWorkspaces_Reconcile.json +# x-ms-original-file: 2026-03-01/NSPForWorkspaces_Reconcile.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operation_statuses_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operation_statuses_get.py index 2dc51ccb4a68..f99b1fa608df 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operation_statuses_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operation_statuses_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/OperationStatusesGet.json +# x-ms-original-file: 2026-03-01/OperationStatusesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operations_list_by_tenant.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operations_list_by_tenant.py index f3bcf2ab1880..b6011c8d32b1 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operations_list_by_tenant.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/operations_list_by_tenant.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/OperationsListByTenant.json +# x-ms-original-file: 2026-03-01/OperationsListByTenant.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_delete.py index 90f8a1ad9eca..f7f56e8ba0cb 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/QueryPackQueriesDelete.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_get.py index 8de91c575705..74884ebe7a2e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPackQueriesGet.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_list.py index bda983cfaa22..acf4123abd9b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/QueryPackQueriesList.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_put.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_put.py index 87127b0d1a65..2ba4f8a39630 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_put.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_put.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPackQueriesPut.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesPut.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_search.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_search.py index e0ec87266e8e..ba11935ca4c9 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_search.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_search.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/QueryPackQueriesSearch.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesSearch.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_update.py index a870b9a5b6cf..11fcbf457b73 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_queries_update.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPackQueriesUpdate.json +# x-ms-original-file: 2026-03-01/QueryPackQueriesUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_update_no_name.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_update_no_name.py index b7a9c7dd29b8..1611a02f6ea6 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_update_no_name.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_pack_update_no_name.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPackUpdateNoName.json +# x-ms-original-file: 2026-03-01/QueryPackUpdateNoName.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create.py index f11559a6c87a..f6dd7f0d9bc5 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPacksCreate.json +# x-ms-original-file: 2026-03-01/QueryPacksCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create_no_name.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create_no_name.py index 837880cf3baf..c05b428dacaa 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create_no_name.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_create_no_name.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPacksCreateNoName.json +# x-ms-original-file: 2026-03-01/QueryPacksCreateNoName.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_delete.py index 9e589180ddb4..2c0b45adf24d 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/QueryPacksDelete.json +# x-ms-original-file: 2026-03-01/QueryPacksDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_get.py index 4958de0f8294..697171159660 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPacksGet.json +# x-ms-original-file: 2026-03-01/QueryPacksGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list.py index 7e67c338a047..7271ea4f07ef 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/QueryPacksList.json +# x-ms-original-file: 2026-03-01/QueryPacksList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list_by_resource_group.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list_by_resource_group.py index c7d2474c6d8c..1782154ea0f7 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list_by_resource_group.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/QueryPacksListByResourceGroup.json +# x-ms-original-file: 2026-03-01/QueryPacksListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update.py index 7e6bfe485c52..4e3e64da8eec 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPacksUpdate.json +# x-ms-original-file: 2026-03-01/QueryPacksUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update_tags_only.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update_tags_only.py index 419783f17ba6..b2d2475920f4 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update_tags_only.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/query_packs_update_tags_only.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryPacksUpdateTagsOnly.json +# x-ms-original-file: 2026-03-01/QueryPacksUpdateTagsOnly.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_get_schema.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_get_schema.py index e91a6a47efd0..fb817d02f5bf 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_get_schema.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_get_schema.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SavedSearchesGetSchema.json +# x-ms-original-file: 2026-03-01/SavedSearchesGetSchema.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_list_by_workspace.py index 7f901facbec7..9746e8f3182a 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/saved_searches_list_by_workspace.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SavedSearchesListByWorkspace.json +# x-ms-original-file: 2026-03-01/SavedSearchesListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_create_or_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_create_or_update.py index 046fa974111c..8b7d0fb45966 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_create_or_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/StorageInsightsCreateOrUpdate.json +# x-ms-original-file: 2026-03-01/StorageInsightsCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_delete.py index 7f7566daf9e9..e4237636c37b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/StorageInsightsDelete.json +# x-ms-original-file: 2026-03-01/StorageInsightsDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_get.py index 9880bb04b89d..64bf1705b923 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/StorageInsightsGet.json +# x-ms-original-file: 2026-03-01/StorageInsightsGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_list_by_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_list_by_workspace.py index dc751a8decce..fce5c2691406 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_list_by_workspace.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/storage_insights_list_by_workspace.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/StorageInsightsListByWorkspace.json +# x-ms-original-file: 2026-03-01/StorageInsightsListByWorkspace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_delete.py index fc72d04d82f0..2c462b376a3b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SummaryLogsDelete.json +# x-ms-original-file: 2026-03-01/SummaryLogsDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_get.py index c41dab5a119a..d23748ad5ebf 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SummaryLogsGet.json +# x-ms-original-file: 2026-03-01/SummaryLogsGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_list.py index a5fcb36c4ae5..9a10c968ae96 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/SummaryLogsList.json +# x-ms-original-file: 2026-03-01/SummaryLogsList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_retry_bin.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_retry_bin.py index 2b5560ab7a45..1d06739a74be 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_retry_bin.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_retry_bin.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SummaryLogsRetryBin.json +# x-ms-original-file: 2026-03-01/SummaryLogsRetryBin.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_start.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_start.py index b1c63d3c24e4..1264b6011d07 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_start.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_start.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SummaryLogsStart.json +# x-ms-original-file: 2026-03-01/SummaryLogsStart.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_stop.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_stop.py index 10191980c101..93f7ec3f130d 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_stop.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_stop.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/SummaryLogsStop.json +# x-ms-original-file: 2026-03-01/SummaryLogsStop.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_upsert.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_upsert.py index 83dac41626b7..4748c71675ba 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_upsert.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/summary_logs_upsert.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -35,6 +36,12 @@ def main(): workspace_name="oiautorest6685", summary_logs_name="summarylogs1", parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/oiautorest6685/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {} + }, + }, "properties": { "ruleDefinition": { "binDelay": 10, @@ -44,12 +51,12 @@ def main(): "query": "MyTable_CL", }, "ruleType": "User", - } + }, }, ).result() print(response) -# x-ms-original-file: 2025-07-01/SummaryLogsUpsert.json +# x-ms-original-file: 2026-03-01/SummaryLogsUpsert.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_delete.py index b1e681a7430d..d5a8f5191de7 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/TablesDelete.json +# x-ms-original-file: 2026-03-01/TablesDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_get.py index 4ece8b6e3b18..4981c06fb59a 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/TablesGet.json +# x-ms-original-file: 2026-03-01/TablesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_list.py index 97c9a3be0a19..40fafb0eccb0 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/TablesList.json +# x-ms-original-file: 2026-03-01/TablesList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_migrate.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_migrate.py index c69aebeb35e4..a6846128c14e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_migrate.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_migrate.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/TablesMigrate.json +# x-ms-original-file: 2026-03-01/TablesMigrate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_search_cancel.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_search_cancel.py index 0c287a429f64..e4dce49c4fcf 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_search_cancel.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_search_cancel.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/TablesSearchCancel.json +# x-ms-original-file: 2026-03-01/TablesSearchCancel.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert.py index 2480b1b2ce49..64827ea9decd 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/TablesUpsert.json +# x-ms-original-file: 2026-03-01/TablesUpsert.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert_for_table.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert_for_table.py index 6ab06ffd8d69..f1601bc6c901 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert_for_table.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/tables_upsert_for_table.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/TablesUpsertForTable.json +# x-ms-original-file: 2026-03-01/TablesUpsertForTable.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_available_service_tiers.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_available_service_tiers.py index 35fa09f8739b..cb436ee61486 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_available_service_tiers.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_available_service_tiers.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesAvailableServiceTiers.json +# x-ms-original-file: 2026-03-01/WorkspacesAvailableServiceTiers.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_create.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_create.py index 85e3313e6f02..8978eaef59f7 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_create.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_create.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesCreate.json +# x-ms-original-file: 2026-03-01/WorkspacesCreate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete.py index f7c290f1d75d..5fdcc8698e08 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/WorkspacesDelete.json +# x-ms-original-file: 2026-03-01/WorkspacesDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete_saved_searches.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete_saved_searches.py index 1bac1274e22a..698887ecc2c3 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete_saved_searches.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_delete_saved_searches.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/WorkspacesDeleteSavedSearches.json +# x-ms-original-file: 2026-03-01/WorkspacesDeleteSavedSearches.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_disable_intelligence_pack.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_disable_intelligence_pack.py index bd0f83faa135..42c5cc902689 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_disable_intelligence_pack.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_disable_intelligence_pack.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/WorkspacesDisableIntelligencePack.json +# x-ms-original-file: 2026-03-01/WorkspacesDisableIntelligencePack.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_enable_intelligence_pack.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_enable_intelligence_pack.py index 62a9c596f9f8..aea89c1dc846 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_enable_intelligence_pack.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_enable_intelligence_pack.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/WorkspacesEnableIntelligencePack.json +# x-ms-original-file: 2026-03-01/WorkspacesEnableIntelligencePack.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failback.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failback.py index 0bf951812bc1..ccf3747fe465 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failback.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failback.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/WorkspacesFailback.json +# x-ms-original-file: 2026-03-01/WorkspacesFailback.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failover.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failover.py index 4521192c6854..4bae22cb7bc5 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failover.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_failover.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/WorkspacesFailover.json +# x-ms-original-file: 2026-03-01/WorkspacesFailover.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_gateways_delete.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_gateways_delete.py index ca329f30d5fe..c7e1c5827a8e 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_gateways_delete.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_gateways_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/WorkspacesGatewaysDelete.json +# x-ms-original-file: 2026-03-01/WorkspacesGatewaysDelete.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get.py index 4c9fa4bb4502..f8f1c40acfdb 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesGet.json +# x-ms-original-file: 2026-03-01/WorkspacesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get_shared_keys.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get_shared_keys.py index 3fe66565816c..aec5faafb0c8 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get_shared_keys.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_get_shared_keys.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesGetSharedKeys.json +# x-ms-original-file: 2026-03-01/WorkspacesGetSharedKeys.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group.py index 6e260dca497e..d59eaedc4ea4 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesListByResourceGroup.json +# x-ms-original-file: 2026-03-01/WorkspacesListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group_for_deleted.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group_for_deleted.py index c60a0b67305f..9b16fc94ea37 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group_for_deleted.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_by_resource_group_for_deleted.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesListByResourceGroupForDeleted.json +# x-ms-original-file: 2026-03-01/WorkspacesListByResourceGroupForDeleted.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_intelligence_packs.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_intelligence_packs.py index 720d2df5ace3..d5136bf86fa9 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_intelligence_packs.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_intelligence_packs.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesListIntelligencePacks.json +# x-ms-original-file: 2026-03-01/WorkspacesListIntelligencePacks.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_management_groups.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_management_groups.py index c9175a40613e..dea7bd88405f 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_management_groups.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_management_groups.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesListManagementGroups.json +# x-ms-original-file: 2026-03-01/WorkspacesListManagementGroups.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_usages.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_usages.py index 5b5ec2e845e7..cf668693fc6f 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_usages.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_list_usages.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesListUsages.json +# x-ms-original-file: 2026-03-01/WorkspacesListUsages.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge.py index 6da057359d3f..a1e15089ce23 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesPurge.json +# x-ms-original-file: 2026-03-01/WorkspacesPurge.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data.py new file mode 100644 index 000000000000..039ad9c571ee --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.loganalytics import LogAnalyticsManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-loganalytics +# USAGE + python workspaces_purge_lake_data.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = LogAnalyticsManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.workspace_purge.begin_purge_lake_data( + resource_group_name="OIAutoRest5123", + workspace_name="aztest5048", + body={ + "table": "AuxiliaryLogs_CL", + "timeRange": {"endTime": "2026-03-02T00:00:00Z", "startTime": "2026-03-01T00:00:00Z"}, + }, + ).result() + + +# x-ms-original-file: 2026-03-01/WorkspacesPurgeLakeData.json +if __name__ == "__main__": + main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data_operation.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data_operation.py new file mode 100644 index 000000000000..707b9356e74b --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_lake_data_operation.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.loganalytics import LogAnalyticsManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-loganalytics +# USAGE + python workspaces_purge_lake_data_operation.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = LogAnalyticsManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.workspace_purge.get_purge_status( + resource_group_name="OIAutoRest5123", + workspace_name="aztest5048", + purge_id="purgelakedata-7d7cf277-9113-4ab3-8359-d0364b74d01d", + ) + print(response) + + +# x-ms-original-file: 2026-03-01/WorkspacesPurgeLakeDataOperation.json +if __name__ == "__main__": + main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_operation.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_operation.py index 75ff5d3d1d6e..a0f59d987612 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_operation.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_operation.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesPurgeOperation.json +# x-ms-original-file: 2026-03-01/WorkspacesPurgeOperation.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_resource_id.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_resource_id.py index e550ca5c7df2..6ddacc4944f0 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_resource_id.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_purge_resource_id.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesPurgeResourceId.json +# x-ms-original-file: 2026-03-01/WorkspacesPurgeResourceId.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_regenerate_shared_keys.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_regenerate_shared_keys.py index 46c0137f0f1d..db75ceed9466 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_regenerate_shared_keys.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_regenerate_shared_keys.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesRegenerateSharedKeys.json +# x-ms-original-file: 2026-03-01/WorkspacesRegenerateSharedKeys.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_create_or_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_create_or_update.py index 87a19c3fc2d1..929548dd026b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_create_or_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesSavedSearchesCreateOrUpdate.json +# x-ms-original-file: 2026-03-01/WorkspacesSavedSearchesCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_get.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_get.py index 5271814e60c1..7025e596008a 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_get.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_saved_searches_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesSavedSearchesGet.json +# x-ms-original-file: 2026-03-01/WorkspacesSavedSearchesGet.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list.py index 7237dd5d7a7b..56e0c22528b7 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesSubscriptionList.json +# x-ms-original-file: 2026-03-01/WorkspacesSubscriptionList.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list_for_work_space.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list_for_work_space.py index 5f7a2dbdb11b..6fc20076c793 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list_for_work_space.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_subscription_list_for_work_space.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WorkspacesSubscriptionListForWorkSpace.json +# x-ms-original-file: 2026-03-01/WorkspacesSubscriptionListForWorkSpace.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_update.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_update.py index e45223564c0a..ea38874e6837 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_update.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_samples/workspaces_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WorkspacesUpdate.json +# x-ms-original-file: 2026-03-01/WorkspacesUpdate.json if __name__ == "__main__": main() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations.py index d566a6ad2254..c46787e7cb91 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations.py @@ -39,6 +39,12 @@ def test_summary_logs_begin_create_or_update(self, resource_group): summary_logs_name="str", parameters={ "id": "str", + "identity": { + "type": "str", + "principalId": "str", + "tenantId": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, "name": "str", "properties": { "description": "str", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations_async.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations_async.py index 31d5ee317fce..423501237150 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations_async.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_summary_logs_operations_async.py @@ -41,6 +41,12 @@ async def test_summary_logs_begin_create_or_update(self, resource_group): summary_logs_name="str", parameters={ "id": "str", + "identity": { + "type": "str", + "principalId": "str", + "tenantId": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, "name": "str", "properties": { "description": "str", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations.py index d5d344ef5a0e..27db19c2b2ff 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations.py @@ -44,6 +44,7 @@ def test_tables_begin_create_or_update(self, resource_group): "archiveRetentionInDays": 0, "lastPlanModifiedDate": "str", "plan": "str", + "protectionLevel": "str", "provisioningState": "str", "restoredLogs": { "azureAsyncOperationId": "str", @@ -128,6 +129,7 @@ def test_tables_begin_update(self, resource_group): "archiveRetentionInDays": 0, "lastPlanModifiedDate": "str", "plan": "str", + "protectionLevel": "str", "provisioningState": "str", "restoredLogs": { "azureAsyncOperationId": "str", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations_async.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations_async.py index 988abb39801e..4bc610f620bf 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations_async.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_tables_operations_async.py @@ -46,6 +46,7 @@ async def test_tables_begin_create_or_update(self, resource_group): "archiveRetentionInDays": 0, "lastPlanModifiedDate": "str", "plan": "str", + "protectionLevel": "str", "provisioningState": "str", "restoredLogs": { "azureAsyncOperationId": "str", @@ -132,6 +133,7 @@ async def test_tables_begin_update(self, resource_group): "archiveRetentionInDays": 0, "lastPlanModifiedDate": "str", "plan": "str", + "protectionLevel": "str", "provisioningState": "str", "restoredLogs": { "azureAsyncOperationId": "str", diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations.py index 08a1624ccc8b..6db1d65b186c 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations.py @@ -41,3 +41,15 @@ def test_workspace_purge_get_purge_status(self, resource_group): # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_workspace_purge_begin_purge_lake_data(self, resource_group): + response = self.client.workspace_purge.begin_purge_lake_data( + resource_group_name=resource_group.name, + workspace_name="str", + body={"table": "str", "timeRange": {"endTime": "2020-02-20 00:00:00", "startTime": "2020-02-20 00:00:00"}}, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations_async.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations_async.py index 6babe9c96b01..7ebb0f5eac90 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations_async.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspace_purge_operations_async.py @@ -42,3 +42,20 @@ async def test_workspace_purge_get_purge_status(self, resource_group): # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_workspace_purge_begin_purge_lake_data(self, resource_group): + response = await ( + await self.client.workspace_purge.begin_purge_lake_data( + resource_group_name=resource_group.name, + workspace_name="str", + body={ + "table": "str", + "timeRange": {"endTime": "2020-02-20 00:00:00", "startTime": "2020-02-20 00:00:00"}, + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations.py index 4a4d9b126e0e..dff6a60f3d1d 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations.py @@ -54,6 +54,7 @@ def test_workspaces_begin_create_or_update(self, resource_group): "features": { "associations": ["str"], "clusterResourceId": "str", + "dataAuthorizationMode": bool, "disableLocalAuth": bool, "enableDataExport": bool, "enableLogAccessUsingOnlyResourcePermissions": bool, @@ -121,6 +122,7 @@ def test_workspaces_update(self, resource_group): "features": { "associations": ["str"], "clusterResourceId": "str", + "dataAuthorizationMode": bool, "disableLocalAuth": bool, "enableDataExport": bool, "enableLogAccessUsingOnlyResourcePermissions": bool, diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations_async.py b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations_async.py index e916dc837153..1231ed7284f8 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations_async.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/generated_tests/test_log_analytics_management_workspaces_operations_async.py @@ -56,6 +56,7 @@ async def test_workspaces_begin_create_or_update(self, resource_group): "features": { "associations": ["str"], "clusterResourceId": "str", + "dataAuthorizationMode": bool, "disableLocalAuth": bool, "enableDataExport": bool, "enableLogAccessUsingOnlyResourcePermissions": bool, @@ -124,6 +125,7 @@ async def test_workspaces_update(self, resource_group): "features": { "associations": ["str"], "clusterResourceId": "str", + "dataAuthorizationMode": bool, "disableLocalAuth": bool, "enableDataExport": bool, "enableLogAccessUsingOnlyResourcePermissions": bool, diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-mgmt-loganalytics/tsp-location.yaml index ccea1bc334e6..cbd253c3976b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: 1523f9e8e89437d84d69a6651f09d74a7ae65ed3 +commit: 9f0ad696cc186c2d16cb522abc0fbd4aa3854ca5 repo: Azure/azure-rest-api-specs additionalDirectories: