1414from msrest import Deserializer , Serializer
1515
1616from . import models
17- from ._configuration import LogAnalyticsManagementClientConfiguration
18- from .operations import AvailableServiceTiersOperations , ClustersOperations , DataExportsOperations , DataSourcesOperations , DeletedWorkspacesOperations , GatewaysOperations , IntelligencePacksOperations , LinkedServicesOperations , LinkedStorageAccountsOperations , ManagementGroupsOperations , OperationStatusesOperations , Operations , SavedSearchesOperations , SchemaOperations , SharedKeysOperations , StorageInsightConfigsOperations , TablesOperations , UsagesOperations , WorkspacePurgeOperations , WorkspacesOperations
17+ from ._configuration import OperationalInsightsManagementClientConfiguration
18+ from .operations import AvailableServiceTiersOperations , ClustersOperations , DataExportsOperations , DataSourcesOperations , DeletedWorkspacesOperations , GatewaysOperations , IntelligencePacksOperations , LinkedServicesOperations , LinkedStorageAccountsOperations , ManagementGroupsOperations , OperationStatusesOperations , Operations , QueriesOperations , QueryPacksOperations , SavedSearchesOperations , SchemaOperations , SharedKeysOperations , StorageInsightConfigsOperations , TablesOperations , UsagesOperations , WorkspacePurgeOperations , WorkspacesOperations
1919
2020if TYPE_CHECKING :
2121 # pylint: disable=unused-import,ungrouped-imports
2222 from azure .core .credentials import TokenCredential
2323
24- class LogAnalyticsManagementClient :
24+ class OperationalInsightsManagementClient :
2525 """Operational Insights Client.
2626
27- :ivar operations: Operations operations
28- :vartype operations: azure.mgmt.loganalytics.operations.Operations
29- :ivar workspaces: WorkspacesOperations operations
30- :vartype workspaces: azure.mgmt.loganalytics.operations.WorkspacesOperations
31- :ivar deleted_workspaces: DeletedWorkspacesOperations operations
32- :vartype deleted_workspaces: azure.mgmt.loganalytics.operations.DeletedWorkspacesOperations
33- :ivar tables: TablesOperations operations
34- :vartype tables: azure.mgmt.loganalytics.operations.TablesOperations
27+ :ivar query_packs: QueryPacksOperations operations
28+ :vartype query_packs: azure.mgmt.loganalytics.operations.QueryPacksOperations
29+ :ivar queries: QueriesOperations operations
30+ :vartype queries: azure.mgmt.loganalytics.operations.QueriesOperations
3531 :ivar data_exports: DataExportsOperations operations
3632 :vartype data_exports: azure.mgmt.loganalytics.operations.DataExportsOperations
3733 :ivar data_sources: DataSourcesOperations operations
@@ -67,6 +63,14 @@ class LogAnalyticsManagementClient:
6763 :vartype workspace_purge: azure.mgmt.loganalytics.operations.WorkspacePurgeOperations
6864 :ivar clusters: ClustersOperations operations
6965 :vartype clusters: azure.mgmt.loganalytics.operations.ClustersOperations
66+ :ivar operations: Operations operations
67+ :vartype operations: azure.mgmt.loganalytics.operations.Operations
68+ :ivar workspaces: WorkspacesOperations operations
69+ :vartype workspaces: azure.mgmt.loganalytics.operations.WorkspacesOperations
70+ :ivar deleted_workspaces: DeletedWorkspacesOperations operations
71+ :vartype deleted_workspaces: azure.mgmt.loganalytics.operations.DeletedWorkspacesOperations
72+ :ivar tables: TablesOperations operations
73+ :vartype tables: azure.mgmt.loganalytics.operations.TablesOperations
7074 :param credential: Credential needed for the client to connect to Azure.
7175 :type credential: ~azure.core.credentials.TokenCredential
7276 :param subscription_id: The ID of the target subscription.
@@ -84,17 +88,15 @@ def __init__(
8488 base_url : str = "https://management.azure.com" ,
8589 ** kwargs : Any
8690 ) -> None :
87- self ._config = LogAnalyticsManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
91+ self ._config = OperationalInsightsManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
8892 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
8993
9094 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
9195 self ._serialize = Serializer (client_models )
9296 self ._deserialize = Deserializer (client_models )
9397 self ._serialize .client_side_validation = False
94- self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
95- self .workspaces = WorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
96- self .deleted_workspaces = DeletedWorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
97- self .tables = TablesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
98+ self .query_packs = QueryPacksOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
99+ self .queries = QueriesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
98100 self .data_exports = DataExportsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
99101 self .data_sources = DataSourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
100102 self .intelligence_packs = IntelligencePacksOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -111,6 +113,10 @@ def __init__(
111113 self .schema = SchemaOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
112114 self .workspace_purge = WorkspacePurgeOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
113115 self .clusters = ClustersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
116+ self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
117+ self .workspaces = WorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
118+ self .deleted_workspaces = DeletedWorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
119+ self .tables = TablesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
114120
115121
116122 def _send_request (
@@ -144,7 +150,7 @@ def close(self):
144150 self ._client .close ()
145151
146152 def __enter__ (self ):
147- # type: () -> LogAnalyticsManagementClient
153+ # type: () -> OperationalInsightsManagementClient
148154 self ._client .__enter__ ()
149155 return self
150156
0 commit comments