|
18 | 18 | from . import models as _models
|
19 | 19 | from ._configuration import MonitorManagementClientConfiguration
|
20 | 20 | from ._serialization import Deserializer, Serializer
|
21 |
| -from .operations import ( |
22 |
| - ActionGroupsOperations, |
23 |
| - ActivityLogAlertsOperations, |
24 |
| - ActivityLogsOperations, |
25 |
| - AlertRuleIncidentsOperations, |
26 |
| - AutoscaleSettingsOperations, |
27 |
| - BaselinesOperations, |
28 |
| - DiagnosticSettingsCategoryOperations, |
29 |
| - DiagnosticSettingsOperations, |
30 |
| - EventCategoriesOperations, |
31 |
| - GuestDiagnosticsSettingsAssociationOperations, |
32 |
| - GuestDiagnosticsSettingsOperations, |
33 |
| - LogProfilesOperations, |
34 |
| - MetricAlertsOperations, |
35 |
| - MetricAlertsStatusOperations, |
36 |
| - MetricDefinitionsOperations, |
37 |
| - MetricNamespacesOperations, |
38 |
| - MetricsOperations, |
39 |
| - Operations, |
40 |
| - PredictiveMetricOperations, |
41 |
| - PrivateEndpointConnectionsOperations, |
42 |
| - PrivateLinkResourcesOperations, |
43 |
| - PrivateLinkScopeOperationStatusOperations, |
44 |
| - PrivateLinkScopedResourcesOperations, |
45 |
| - PrivateLinkScopesOperations, |
46 |
| - ScheduledQueryRulesOperations, |
47 |
| - ServiceDiagnosticSettingsOperations, |
48 |
| - SubscriptionDiagnosticSettingsOperations, |
49 |
| - TenantActivityLogsOperations, |
50 |
| - VMInsightsOperations, |
51 |
| -) |
| 21 | +from .operations import ActionGroupsOperations, ScheduledQueryRulesOperations |
52 | 22 |
|
53 | 23 | if TYPE_CHECKING:
|
54 | 24 | from azure.core.credentials import TokenCredential
|
55 | 25 |
|
56 | 26 |
|
57 |
| -class MonitorManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes |
| 27 | +class MonitorManagementClient: # pylint: disable=client-accepts-api-version-keyword |
58 | 28 | """Monitor Management Client.
|
59 | 29 |
|
60 | 30 | :ivar action_groups: ActionGroupsOperations operations
|
61 | 31 | :vartype action_groups: azure.mgmt.monitor.operations.ActionGroupsOperations
|
62 |
| - :ivar activity_log_alerts: ActivityLogAlertsOperations operations |
63 |
| - :vartype activity_log_alerts: azure.mgmt.monitor.operations.ActivityLogAlertsOperations |
64 |
| - :ivar activity_logs: ActivityLogsOperations operations |
65 |
| - :vartype activity_logs: azure.mgmt.monitor.operations.ActivityLogsOperations |
66 |
| - :ivar tenant_activity_logs: TenantActivityLogsOperations operations |
67 |
| - :vartype tenant_activity_logs: azure.mgmt.monitor.operations.TenantActivityLogsOperations |
68 |
| - :ivar alert_rule_incidents: AlertRuleIncidentsOperations operations |
69 |
| - :vartype alert_rule_incidents: azure.mgmt.monitor.operations.AlertRuleIncidentsOperations |
70 |
| - :ivar autoscale_settings: AutoscaleSettingsOperations operations |
71 |
| - :vartype autoscale_settings: azure.mgmt.monitor.operations.AutoscaleSettingsOperations |
72 |
| - :ivar predictive_metric: PredictiveMetricOperations operations |
73 |
| - :vartype predictive_metric: azure.mgmt.monitor.operations.PredictiveMetricOperations |
74 |
| - :ivar baselines: BaselinesOperations operations |
75 |
| - :vartype baselines: azure.mgmt.monitor.operations.BaselinesOperations |
76 |
| - :ivar diagnostic_settings: DiagnosticSettingsOperations operations |
77 |
| - :vartype diagnostic_settings: azure.mgmt.monitor.operations.DiagnosticSettingsOperations |
78 |
| - :ivar diagnostic_settings_category: DiagnosticSettingsCategoryOperations operations |
79 |
| - :vartype diagnostic_settings_category: |
80 |
| - azure.mgmt.monitor.operations.DiagnosticSettingsCategoryOperations |
81 |
| - :ivar event_categories: EventCategoriesOperations operations |
82 |
| - :vartype event_categories: azure.mgmt.monitor.operations.EventCategoriesOperations |
83 |
| - :ivar guest_diagnostics_settings: GuestDiagnosticsSettingsOperations operations |
84 |
| - :vartype guest_diagnostics_settings: |
85 |
| - azure.mgmt.monitor.operations.GuestDiagnosticsSettingsOperations |
86 |
| - :ivar guest_diagnostics_settings_association: GuestDiagnosticsSettingsAssociationOperations |
87 |
| - operations |
88 |
| - :vartype guest_diagnostics_settings_association: |
89 |
| - azure.mgmt.monitor.operations.GuestDiagnosticsSettingsAssociationOperations |
90 |
| - :ivar log_profiles: LogProfilesOperations operations |
91 |
| - :vartype log_profiles: azure.mgmt.monitor.operations.LogProfilesOperations |
92 |
| - :ivar metric_alerts: MetricAlertsOperations operations |
93 |
| - :vartype metric_alerts: azure.mgmt.monitor.operations.MetricAlertsOperations |
94 |
| - :ivar metric_alerts_status: MetricAlertsStatusOperations operations |
95 |
| - :vartype metric_alerts_status: azure.mgmt.monitor.operations.MetricAlertsStatusOperations |
96 |
| - :ivar metric_definitions: MetricDefinitionsOperations operations |
97 |
| - :vartype metric_definitions: azure.mgmt.monitor.operations.MetricDefinitionsOperations |
98 |
| - :ivar metric_namespaces: MetricNamespacesOperations operations |
99 |
| - :vartype metric_namespaces: azure.mgmt.monitor.operations.MetricNamespacesOperations |
100 |
| - :ivar metrics: MetricsOperations operations |
101 |
| - :vartype metrics: azure.mgmt.monitor.operations.MetricsOperations |
102 |
| - :ivar operations: Operations operations |
103 |
| - :vartype operations: azure.mgmt.monitor.operations.Operations |
104 | 32 | :ivar scheduled_query_rules: ScheduledQueryRulesOperations operations
|
105 | 33 | :vartype scheduled_query_rules: azure.mgmt.monitor.operations.ScheduledQueryRulesOperations
|
106 |
| - :ivar service_diagnostic_settings: ServiceDiagnosticSettingsOperations operations |
107 |
| - :vartype service_diagnostic_settings: |
108 |
| - azure.mgmt.monitor.operations.ServiceDiagnosticSettingsOperations |
109 |
| - :ivar vm_insights: VMInsightsOperations operations |
110 |
| - :vartype vm_insights: azure.mgmt.monitor.operations.VMInsightsOperations |
111 |
| - :ivar private_link_scopes: PrivateLinkScopesOperations operations |
112 |
| - :vartype private_link_scopes: azure.mgmt.monitor.operations.PrivateLinkScopesOperations |
113 |
| - :ivar private_link_scope_operation_status: PrivateLinkScopeOperationStatusOperations operations |
114 |
| - :vartype private_link_scope_operation_status: |
115 |
| - azure.mgmt.monitor.operations.PrivateLinkScopeOperationStatusOperations |
116 |
| - :ivar private_link_resources: PrivateLinkResourcesOperations operations |
117 |
| - :vartype private_link_resources: azure.mgmt.monitor.operations.PrivateLinkResourcesOperations |
118 |
| - :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations |
119 |
| - :vartype private_endpoint_connections: |
120 |
| - azure.mgmt.monitor.operations.PrivateEndpointConnectionsOperations |
121 |
| - :ivar private_link_scoped_resources: PrivateLinkScopedResourcesOperations operations |
122 |
| - :vartype private_link_scoped_resources: |
123 |
| - azure.mgmt.monitor.operations.PrivateLinkScopedResourcesOperations |
124 |
| - :ivar subscription_diagnostic_settings: SubscriptionDiagnosticSettingsOperations operations |
125 |
| - :vartype subscription_diagnostic_settings: |
126 |
| - azure.mgmt.monitor.operations.SubscriptionDiagnosticSettingsOperations |
127 | 34 | :param credential: Credential needed for the client to connect to Azure. Required.
|
128 | 35 | :type credential: ~azure.core.credentials.TokenCredential
|
129 | 36 | :param subscription_id: The ID of the target subscription. Required.
|
@@ -169,76 +76,9 @@ def __init__(
|
169 | 76 | self._deserialize = Deserializer(client_models)
|
170 | 77 | self._serialize.client_side_validation = False
|
171 | 78 | self.action_groups = ActionGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
|
172 |
| - self.activity_log_alerts = ActivityLogAlertsOperations( |
173 |
| - self._client, self._config, self._serialize, self._deserialize |
174 |
| - ) |
175 |
| - self.activity_logs = ActivityLogsOperations(self._client, self._config, self._serialize, self._deserialize) |
176 |
| - self.tenant_activity_logs = TenantActivityLogsOperations( |
177 |
| - self._client, self._config, self._serialize, self._deserialize |
178 |
| - ) |
179 |
| - self.alert_rule_incidents = AlertRuleIncidentsOperations( |
180 |
| - self._client, self._config, self._serialize, self._deserialize |
181 |
| - ) |
182 |
| - self.autoscale_settings = AutoscaleSettingsOperations( |
183 |
| - self._client, self._config, self._serialize, self._deserialize |
184 |
| - ) |
185 |
| - self.predictive_metric = PredictiveMetricOperations( |
186 |
| - self._client, self._config, self._serialize, self._deserialize |
187 |
| - ) |
188 |
| - self.baselines = BaselinesOperations(self._client, self._config, self._serialize, self._deserialize) |
189 |
| - self.diagnostic_settings = DiagnosticSettingsOperations( |
190 |
| - self._client, self._config, self._serialize, self._deserialize |
191 |
| - ) |
192 |
| - self.diagnostic_settings_category = DiagnosticSettingsCategoryOperations( |
193 |
| - self._client, self._config, self._serialize, self._deserialize |
194 |
| - ) |
195 |
| - self.event_categories = EventCategoriesOperations( |
196 |
| - self._client, self._config, self._serialize, self._deserialize |
197 |
| - ) |
198 |
| - self.guest_diagnostics_settings = GuestDiagnosticsSettingsOperations( |
199 |
| - self._client, self._config, self._serialize, self._deserialize |
200 |
| - ) |
201 |
| - self.guest_diagnostics_settings_association = GuestDiagnosticsSettingsAssociationOperations( |
202 |
| - self._client, self._config, self._serialize, self._deserialize |
203 |
| - ) |
204 |
| - self.log_profiles = LogProfilesOperations(self._client, self._config, self._serialize, self._deserialize) |
205 |
| - self.metric_alerts = MetricAlertsOperations(self._client, self._config, self._serialize, self._deserialize) |
206 |
| - self.metric_alerts_status = MetricAlertsStatusOperations( |
207 |
| - self._client, self._config, self._serialize, self._deserialize |
208 |
| - ) |
209 |
| - self.metric_definitions = MetricDefinitionsOperations( |
210 |
| - self._client, self._config, self._serialize, self._deserialize |
211 |
| - ) |
212 |
| - self.metric_namespaces = MetricNamespacesOperations( |
213 |
| - self._client, self._config, self._serialize, self._deserialize |
214 |
| - ) |
215 |
| - self.metrics = MetricsOperations(self._client, self._config, self._serialize, self._deserialize) |
216 |
| - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) |
217 | 79 | self.scheduled_query_rules = ScheduledQueryRulesOperations(
|
218 | 80 | self._client, self._config, self._serialize, self._deserialize
|
219 | 81 | )
|
220 |
| - self.service_diagnostic_settings = ServiceDiagnosticSettingsOperations( |
221 |
| - self._client, self._config, self._serialize, self._deserialize |
222 |
| - ) |
223 |
| - self.vm_insights = VMInsightsOperations(self._client, self._config, self._serialize, self._deserialize) |
224 |
| - self.private_link_scopes = PrivateLinkScopesOperations( |
225 |
| - self._client, self._config, self._serialize, self._deserialize |
226 |
| - ) |
227 |
| - self.private_link_scope_operation_status = PrivateLinkScopeOperationStatusOperations( |
228 |
| - self._client, self._config, self._serialize, self._deserialize |
229 |
| - ) |
230 |
| - self.private_link_resources = PrivateLinkResourcesOperations( |
231 |
| - self._client, self._config, self._serialize, self._deserialize |
232 |
| - ) |
233 |
| - self.private_endpoint_connections = PrivateEndpointConnectionsOperations( |
234 |
| - self._client, self._config, self._serialize, self._deserialize |
235 |
| - ) |
236 |
| - self.private_link_scoped_resources = PrivateLinkScopedResourcesOperations( |
237 |
| - self._client, self._config, self._serialize, self._deserialize |
238 |
| - ) |
239 |
| - self.subscription_diagnostic_settings = SubscriptionDiagnosticSettingsOperations( |
240 |
| - self._client, self._config, self._serialize, self._deserialize |
241 |
| - ) |
242 | 82 |
|
243 | 83 | def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
|
244 | 84 | """Runs the network request through the client's chained policies.
|
|
0 commit comments