14
14
from msrest import Deserializer , Serializer
15
15
16
16
from . 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
19
19
20
20
if TYPE_CHECKING :
21
21
# pylint: disable=unused-import,ungrouped-imports
22
22
from azure .core .credentials import TokenCredential
23
23
24
- class LogAnalyticsManagementClient :
24
+ class OperationalInsightsManagementClient :
25
25
"""Operational Insights Client.
26
26
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
35
31
:ivar data_exports: DataExportsOperations operations
36
32
:vartype data_exports: azure.mgmt.loganalytics.operations.DataExportsOperations
37
33
:ivar data_sources: DataSourcesOperations operations
@@ -67,6 +63,14 @@ class LogAnalyticsManagementClient:
67
63
:vartype workspace_purge: azure.mgmt.loganalytics.operations.WorkspacePurgeOperations
68
64
:ivar clusters: ClustersOperations operations
69
65
: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
70
74
:param credential: Credential needed for the client to connect to Azure.
71
75
:type credential: ~azure.core.credentials.TokenCredential
72
76
:param subscription_id: The ID of the target subscription.
@@ -84,17 +88,15 @@ def __init__(
84
88
base_url : str = "https://management.azure.com" ,
85
89
** kwargs : Any
86
90
) -> None :
87
- self ._config = LogAnalyticsManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
91
+ self ._config = OperationalInsightsManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
88
92
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
89
93
90
94
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
91
95
self ._serialize = Serializer (client_models )
92
96
self ._deserialize = Deserializer (client_models )
93
97
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 )
98
100
self .data_exports = DataExportsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
99
101
self .data_sources = DataSourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
100
102
self .intelligence_packs = IntelligencePacksOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -111,6 +113,10 @@ def __init__(
111
113
self .schema = SchemaOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
112
114
self .workspace_purge = WorkspacePurgeOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
113
115
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 )
114
120
115
121
116
122
def _send_request (
@@ -144,7 +150,7 @@ def close(self):
144
150
self ._client .close ()
145
151
146
152
def __enter__ (self ):
147
- # type: () -> LogAnalyticsManagementClient
153
+ # type: () -> OperationalInsightsManagementClient
148
154
self ._client .__enter__ ()
149
155
return self
150
156
0 commit comments