1# pylint: disable=line-too-long,useless-suppression,too-many-lines
2# coding=utf-8
3# --------------------------------------------------------------------------
4# Copyright (c) Microsoft Corporation. All rights reserved.
5# Licensed under the MIT License. See License.txt in the project root for license information.
6# Code generated by Microsoft (R) Python Code Generator.
7# Changes may cause incorrect behavior and will be lost if the code is regenerated.
8# --------------------------------------------------------------------------
9# pylint: disable=useless-super-delegation
10
11import datetime
12from typing import Any, Mapping, Optional, TYPE_CHECKING, Union, overload
13
14from .._utils.model_base import Model as _Model, rest_field
15
16if TYPE_CHECKING:
17 from .. import models as _models
18
19
20class AccountInfo(_Model):
21 """Dynatrace Account Information.
22
23 :ivar account_id: Account Id of the account this environment is linked to.
24 :vartype account_id: str
25 :ivar region_id: Region in which the account is created.
26 :vartype region_id: str
27 :ivar company_name: Name of the customer account / company.
28 :vartype company_name: str
29 """
30
31 account_id: Optional[str] = rest_field(name="accountId", visibility=["read", "create", "update", "delete", "query"])
32 """Account Id of the account this environment is linked to."""
33 region_id: Optional[str] = rest_field(name="regionId", visibility=["read", "create", "update", "delete", "query"])
34 """Region in which the account is created."""
35 company_name: Optional[str] = rest_field(
36 name="companyName", visibility=["read", "create", "update", "delete", "query"]
37 )
38 """Name of the customer account / company."""
39
40 @overload
41 def __init__(
42 self,
43 *,
44 account_id: Optional[str] = None,
45 region_id: Optional[str] = None,
46 company_name: Optional[str] = None,
47 ) -> None: ...
48
49 @overload
50 def __init__(self, mapping: Mapping[str, Any]) -> None:
51 """
52 :param mapping: raw JSON to initialize the model.
53 :type mapping: Mapping[str, Any]
54 """
55
56 def __init__(self, *args: Any, **kwargs: Any) -> None:
57 super().__init__(*args, **kwargs)
58
59
60class AppServiceInfo(_Model):
61 """Details of App Services having Dynatrace OneAgent installed.
62
63 :ivar resource_id: App service resource ID.
64 :vartype resource_id: str
65 :ivar version: Version of the Dynatrace agent installed on the App Service.
66 :vartype version: str
67 :ivar monitoring_type: The monitoring mode of OneAgent. Known values are:
68 "CLOUD_INFRASTRUCTURE", "FULL_STACK", and "DISCOVERY".
69 :vartype monitoring_type: str or ~azure.mgmt.dynatrace.models.MonitoringType
70 :ivar auto_update_setting: Update settings of OneAgent. Known values are: "ENABLED" and
71 "DISABLED".
72 :vartype auto_update_setting: str or ~azure.mgmt.dynatrace.models.AutoUpdateSetting
73 :ivar update_status: The current update status of OneAgent. Known values are: "INCOMPATIBLE",
74 "OUTDATED", "SCHEDULED", "SUPPRESSED", "UNKNOWN", "UP2DATE", "UPDATE_IN_PROGRESS",
75 "UPDATE_PENDING", and "UPDATE_PROBLEM".
76 :vartype update_status: str or ~azure.mgmt.dynatrace.models.UpdateStatus
77 :ivar availability_state: The availability state of OneAgent. Known values are: "CRASHED",
78 "LOST", "MONITORED", "PRE_MONITORED", "SHUTDOWN", "UNEXPECTED_SHUTDOWN", "UNKNOWN", and
79 "UNMONITORED".
80 :vartype availability_state: str or ~azure.mgmt.dynatrace.models.AvailabilityState
81 :ivar log_module: Tells whether log modules are enabled or not. Known values are: "ENABLED" and
82 "DISABLED".
83 :vartype log_module: str or ~azure.mgmt.dynatrace.models.LogModule
84 :ivar host_group: The name of the host group.
85 :vartype host_group: str
86 :ivar host_name: The name of the host.
87 :vartype host_name: str
88 """
89
90 resource_id: Optional[str] = rest_field(
91 name="resourceId", visibility=["read", "create", "update", "delete", "query"]
92 )
93 """App service resource ID."""
94 version: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
95 """Version of the Dynatrace agent installed on the App Service."""
96 monitoring_type: Optional[Union[str, "_models.MonitoringType"]] = rest_field(
97 name="monitoringType", visibility=["read", "create", "update", "delete", "query"]
98 )
99 """The monitoring mode of OneAgent. Known values are: \"CLOUD_INFRASTRUCTURE\", \"FULL_STACK\",
100 and \"DISCOVERY\"."""
101 auto_update_setting: Optional[Union[str, "_models.AutoUpdateSetting"]] = rest_field(
102 name="autoUpdateSetting", visibility=["read", "create", "update", "delete", "query"]
103 )
104 """Update settings of OneAgent. Known values are: \"ENABLED\" and \"DISABLED\"."""
105 update_status: Optional[Union[str, "_models.UpdateStatus"]] = rest_field(
106 name="updateStatus", visibility=["read", "create", "update", "delete", "query"]
107 )
108 """The current update status of OneAgent. Known values are: \"INCOMPATIBLE\", \"OUTDATED\",
109 \"SCHEDULED\", \"SUPPRESSED\", \"UNKNOWN\", \"UP2DATE\", \"UPDATE_IN_PROGRESS\",
110 \"UPDATE_PENDING\", and \"UPDATE_PROBLEM\"."""
111 availability_state: Optional[Union[str, "_models.AvailabilityState"]] = rest_field(
112 name="availabilityState", visibility=["read", "create", "update", "delete", "query"]
113 )
114 """The availability state of OneAgent. Known values are: \"CRASHED\", \"LOST\", \"MONITORED\",
115 \"PRE_MONITORED\", \"SHUTDOWN\", \"UNEXPECTED_SHUTDOWN\", \"UNKNOWN\", and \"UNMONITORED\"."""
116 log_module: Optional[Union[str, "_models.LogModule"]] = rest_field(
117 name="logModule", visibility=["read", "create", "update", "delete", "query"]
118 )
119 """Tells whether log modules are enabled or not. Known values are: \"ENABLED\" and \"DISABLED\"."""
120 host_group: Optional[str] = rest_field(name="hostGroup", visibility=["read", "create", "update", "delete", "query"])
121 """The name of the host group."""
122 host_name: Optional[str] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"])
123 """The name of the host."""
124
125 @overload
126 def __init__(
127 self,
128 *,
129 resource_id: Optional[str] = None,
130 version: Optional[str] = None,
131 monitoring_type: Optional[Union[str, "_models.MonitoringType"]] = None,
132 auto_update_setting: Optional[Union[str, "_models.AutoUpdateSetting"]] = None,
133 update_status: Optional[Union[str, "_models.UpdateStatus"]] = None,
134 availability_state: Optional[Union[str, "_models.AvailabilityState"]] = None,
135 log_module: Optional[Union[str, "_models.LogModule"]] = None,
136 host_group: Optional[str] = None,
137 host_name: Optional[str] = None,
138 ) -> None: ...
139
140 @overload
141 def __init__(self, mapping: Mapping[str, Any]) -> None:
142 """
143 :param mapping: raw JSON to initialize the model.
144 :type mapping: Mapping[str, Any]
145 """
146
147 def __init__(self, *args: Any, **kwargs: Any) -> None:
148 super().__init__(*args, **kwargs)
149
150
151class ConnectedResourcesCountResponse(_Model):
152 """Response for getting Connected resources for a MP SaaS Resource.
153
154 :ivar connected_resources_count: Count of the connected resources.
155 :vartype connected_resources_count: int
156 """
157
158 connected_resources_count: Optional[int] = rest_field(
159 name="connectedResourcesCount", visibility=["read", "create", "update", "delete", "query"]
160 )
161 """Count of the connected resources."""
162
163 @overload
164 def __init__(
165 self,
166 *,
167 connected_resources_count: Optional[int] = None,
168 ) -> None: ...
169
170 @overload
171 def __init__(self, mapping: Mapping[str, Any]) -> None:
172 """
173 :param mapping: raw JSON to initialize the model.
174 :type mapping: Mapping[str, Any]
175 """
176
177 def __init__(self, *args: Any, **kwargs: Any) -> None:
178 super().__init__(*args, **kwargs)
179
180
181class CreateResourceSupportedProperties(_Model):
182 """Properties related to the support for creating Dynatrace resources.
183
184 :ivar name: The ARM id of the subscription.
185 :vartype name: str
186 :ivar creation_supported: Indicates if selected subscription supports Dynatrace resource
187 creation, if not it is already being monitored for the selected organization via multi
188 subscription feature.
189 :vartype creation_supported: bool
190 """
191
192 name: Optional[str] = rest_field(visibility=["read"])
193 """The ARM id of the subscription."""
194 creation_supported: Optional[bool] = rest_field(name="creationSupported", visibility=["read"])
195 """Indicates if selected subscription supports Dynatrace resource creation, if not it is already
196 being monitored for the selected organization via multi subscription feature."""
197
198
199class CreateResourceSupportedResponse(_Model):
200 """Dynatrace resource can be created or not.
201
202 :ivar value: Represents the properties of the resource.
203 :vartype value: list[~azure.mgmt.dynatrace.models.CreateResourceSupportedProperties]
204 :ivar next_link: The link to the next page of items.
205 :vartype next_link: str
206 """
207
208 value: Optional[list["_models.CreateResourceSupportedProperties"]] = rest_field(
209 visibility=["read", "create", "update", "delete", "query"]
210 )
211 """Represents the properties of the resource."""
212 next_link: Optional[str] = rest_field(name="nextLink", visibility=["read", "create", "update", "delete", "query"])
213 """The link to the next page of items."""
214
215 @overload
216 def __init__(
217 self,
218 *,
219 value: Optional[list["_models.CreateResourceSupportedProperties"]] = None,
220 next_link: Optional[str] = None,
221 ) -> None: ...
222
223 @overload
224 def __init__(self, mapping: Mapping[str, Any]) -> None:
225 """
226 :param mapping: raw JSON to initialize the model.
227 :type mapping: Mapping[str, Any]
228 """
229
230 def __init__(self, *args: Any, **kwargs: Any) -> None:
231 super().__init__(*args, **kwargs)
232
233
234class DynatraceEnvironmentProperties(_Model):
235 """Properties of the Dynatrace environment.
236
237 :ivar user_id: User id.
238 :vartype user_id: str
239 :ivar account_info: Dynatrace Account Information.
240 :vartype account_info: ~azure.mgmt.dynatrace.models.AccountInfo
241 :ivar environment_info: Dynatrace Environment Information.
242 :vartype environment_info: ~azure.mgmt.dynatrace.models.EnvironmentInfo
243 :ivar single_sign_on_properties: The details of a Dynatrace single sign-on.
244 :vartype single_sign_on_properties:
245 ~azure.mgmt.dynatrace.models.DynatraceSingleSignOnProperties
246 """
247
248 user_id: Optional[str] = rest_field(name="userId", visibility=["read", "create", "update", "delete", "query"])
249 """User id."""
250 account_info: Optional["_models.AccountInfo"] = rest_field(
251 name="accountInfo", visibility=["read", "create", "update", "delete", "query"]
252 )
253 """Dynatrace Account Information."""
254 environment_info: Optional["_models.EnvironmentInfo"] = rest_field(
255 name="environmentInfo", visibility=["read", "create", "update", "delete", "query"]
256 )
257 """Dynatrace Environment Information."""
258 single_sign_on_properties: Optional["_models.DynatraceSingleSignOnProperties"] = rest_field(
259 name="singleSignOnProperties", visibility=["read", "create", "update", "delete", "query"]
260 )
261 """The details of a Dynatrace single sign-on."""
262
263 @overload
264 def __init__(
265 self,
266 *,
267 user_id: Optional[str] = None,
268 account_info: Optional["_models.AccountInfo"] = None,
269 environment_info: Optional["_models.EnvironmentInfo"] = None,
270 single_sign_on_properties: Optional["_models.DynatraceSingleSignOnProperties"] = None,
271 ) -> None: ...
272
273 @overload
274 def __init__(self, mapping: Mapping[str, Any]) -> None:
275 """
276 :param mapping: raw JSON to initialize the model.
277 :type mapping: Mapping[str, Any]
278 """
279
280 def __init__(self, *args: Any, **kwargs: Any) -> None:
281 super().__init__(*args, **kwargs)
282
283
284class DynatraceSingleSignOnProperties(_Model):
285 """The details of a Dynatrace single sign-on.
286
287 :ivar single_sign_on_state: State of Single Sign On. Known values are: "Initial", "Enable",
288 "Disable", and "Existing".
289 :vartype single_sign_on_state: str or ~azure.mgmt.dynatrace.models.SingleSignOnStates
290 :ivar enterprise_app_id: Version of the Dynatrace agent installed on the VM.
291 :vartype enterprise_app_id: str
292 :ivar single_sign_on_url: The login URL specific to this Dynatrace Environment.
293 :vartype single_sign_on_url: str
294 :ivar aad_domains: array of Aad(azure active directory) domains.
295 :vartype aad_domains: list[str]
296 :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted",
297 "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and
298 "NotSpecified".
299 :vartype provisioning_state: str or ~azure.mgmt.dynatrace.models.ProvisioningState
300 """
301
302 single_sign_on_state: Optional[Union[str, "_models.SingleSignOnStates"]] = rest_field(
303 name="singleSignOnState", visibility=["read", "create", "update", "delete", "query"]
304 )
305 """State of Single Sign On. Known values are: \"Initial\", \"Enable\", \"Disable\", and
306 \"Existing\"."""
307 enterprise_app_id: Optional[str] = rest_field(
308 name="enterpriseAppId", visibility=["read", "create", "update", "delete", "query"]
309 )
310 """Version of the Dynatrace agent installed on the VM."""
311 single_sign_on_url: Optional[str] = rest_field(
312 name="singleSignOnUrl", visibility=["read", "create", "update", "delete", "query"]
313 )
314 """The login URL specific to this Dynatrace Environment."""
315 aad_domains: Optional[list[str]] = rest_field(
316 name="aadDomains", visibility=["read", "create", "update", "delete", "query"]
317 )
318 """array of Aad(azure active directory) domains."""
319 provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
320 name="provisioningState", visibility=["read"]
321 )
322 """Provisioning state of the resource. Known values are: \"Accepted\", \"Creating\", \"Updating\",
323 \"Deleting\", \"Succeeded\", \"Failed\", \"Canceled\", \"Deleted\", and \"NotSpecified\"."""
324
325 @overload
326 def __init__(
327 self,
328 *,
329 single_sign_on_state: Optional[Union[str, "_models.SingleSignOnStates"]] = None,
330 enterprise_app_id: Optional[str] = None,
331 single_sign_on_url: Optional[str] = None,
332 aad_domains: Optional[list[str]] = None,
333 ) -> None: ...
334
335 @overload
336 def __init__(self, mapping: Mapping[str, Any]) -> None:
337 """
338 :param mapping: raw JSON to initialize the model.
339 :type mapping: Mapping[str, Any]
340 """
341
342 def __init__(self, *args: Any, **kwargs: Any) -> None:
343 super().__init__(*args, **kwargs)
344
345
346class Resource(_Model):
347 """Resource.
348
349 :ivar id: Fully qualified resource ID for the resource. Ex -
350 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
351 :vartype id: str
352 :ivar name: The name of the resource.
353 :vartype name: str
354 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
355 "Microsoft.Storage/storageAccounts".
356 :vartype type: str
357 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
358 information.
359 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
360 """
361
362 id: Optional[str] = rest_field(visibility=["read"])
363 """Fully qualified resource ID for the resource. Ex -
364 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}."""
365 name: Optional[str] = rest_field(visibility=["read"])
366 """The name of the resource."""
367 type: Optional[str] = rest_field(visibility=["read"])
368 """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or
369 \"Microsoft.Storage/storageAccounts\"."""
370 system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"])
371 """Azure Resource Manager metadata containing createdBy and modifiedBy information."""
372
373
374class ProxyResource(Resource):
375 """Proxy Resource.
376
377 :ivar id: Fully qualified resource ID for the resource. Ex -
378 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
379 :vartype id: str
380 :ivar name: The name of the resource.
381 :vartype name: str
382 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
383 "Microsoft.Storage/storageAccounts".
384 :vartype type: str
385 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
386 information.
387 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
388 """
389
390
391class DynatraceSingleSignOnResource(ProxyResource):
392 """Single sign-on configurations for a given monitor resource.
393
394 :ivar id: Fully qualified resource ID for the resource. Ex -
395 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
396 :vartype id: str
397 :ivar name: The name of the resource.
398 :vartype name: str
399 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
400 "Microsoft.Storage/storageAccounts".
401 :vartype type: str
402 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
403 information.
404 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
405 :ivar properties: The resource-specific properties for this resource. Required.
406 :vartype properties: ~azure.mgmt.dynatrace.models.DynatraceSingleSignOnProperties
407 """
408
409 properties: "_models.DynatraceSingleSignOnProperties" = rest_field(
410 visibility=["read", "create", "update", "delete", "query"]
411 )
412 """The resource-specific properties for this resource. Required."""
413
414 __flattened_items = [
415 "single_sign_on_state",
416 "enterprise_app_id",
417 "single_sign_on_url",
418 "aad_domains",
419 "provisioning_state",
420 ]
421
422 @overload
423 def __init__(
424 self,
425 *,
426 properties: "_models.DynatraceSingleSignOnProperties",
427 ) -> None: ...
428
429 @overload
430 def __init__(self, mapping: Mapping[str, Any]) -> None:
431 """
432 :param mapping: raw JSON to initialize the model.
433 :type mapping: Mapping[str, Any]
434 """
435
436 def __init__(self, *args: Any, **kwargs: Any) -> None:
437 _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items}
438 super().__init__(*args, **kwargs)
439 for k, v in _flattened_input.items():
440 setattr(self, k, v)
441
442 def __getattr__(self, name: str) -> Any:
443 if name in self.__flattened_items:
444 if self.properties is None:
445 return None
446 return getattr(self.properties, name)
447 raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
448
449 def __setattr__(self, key: str, value: Any) -> None:
450 if key in self.__flattened_items:
451 if self.properties is None:
452 self.properties = self._attr_to_rest_field["properties"]._class_type()
453 setattr(self.properties, key, value)
454 else:
455 super().__setattr__(key, value)
456
457
458class EnvironmentInfo(_Model):
459 """Dynatrace Environment Information.
460
461 :ivar environment_id: Id of the environment created.
462 :vartype environment_id: str
463 :ivar ingestion_key: Ingestion key of the environment.
464 :vartype ingestion_key: str
465 :ivar logs_ingestion_endpoint: Ingestion endpoint used for sending logs.
466 :vartype logs_ingestion_endpoint: str
467 :ivar landing_url: Landing URL for Dynatrace environment.
468 :vartype landing_url: str
469 """
470
471 environment_id: Optional[str] = rest_field(
472 name="environmentId", visibility=["read", "create", "update", "delete", "query"]
473 )
474 """Id of the environment created."""
475 ingestion_key: Optional[str] = rest_field(
476 name="ingestionKey", visibility=["read", "create", "update", "delete", "query"]
477 )
478 """Ingestion key of the environment."""
479 logs_ingestion_endpoint: Optional[str] = rest_field(
480 name="logsIngestionEndpoint", visibility=["read", "create", "update", "delete", "query"]
481 )
482 """Ingestion endpoint used for sending logs."""
483 landing_url: Optional[str] = rest_field(
484 name="landingURL", visibility=["read", "create", "update", "delete", "query"]
485 )
486 """Landing URL for Dynatrace environment."""
487
488 @overload
489 def __init__(
490 self,
491 *,
492 environment_id: Optional[str] = None,
493 ingestion_key: Optional[str] = None,
494 logs_ingestion_endpoint: Optional[str] = None,
495 landing_url: Optional[str] = None,
496 ) -> None: ...
497
498 @overload
499 def __init__(self, mapping: Mapping[str, Any]) -> None:
500 """
501 :param mapping: raw JSON to initialize the model.
502 :type mapping: Mapping[str, Any]
503 """
504
505 def __init__(self, *args: Any, **kwargs: Any) -> None:
506 super().__init__(*args, **kwargs)
507
508
509class ErrorAdditionalInfo(_Model):
510 """The resource management error additional info.
511
512 :ivar type: The additional info type.
513 :vartype type: str
514 :ivar info: The additional info.
515 :vartype info: any
516 """
517
518 type: Optional[str] = rest_field(visibility=["read"])
519 """The additional info type."""
520 info: Optional[Any] = rest_field(visibility=["read"])
521 """The additional info."""
522
523
524class ErrorDetail(_Model):
525 """The error detail.
526
527 :ivar code: The error code.
528 :vartype code: str
529 :ivar message: The error message.
530 :vartype message: str
531 :ivar target: The error target.
532 :vartype target: str
533 :ivar details: The error details.
534 :vartype details: list[~azure.mgmt.dynatrace.models.ErrorDetail]
535 :ivar additional_info: The error additional info.
536 :vartype additional_info: list[~azure.mgmt.dynatrace.models.ErrorAdditionalInfo]
537 """
538
539 code: Optional[str] = rest_field(visibility=["read"])
540 """The error code."""
541 message: Optional[str] = rest_field(visibility=["read"])
542 """The error message."""
543 target: Optional[str] = rest_field(visibility=["read"])
544 """The error target."""
545 details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"])
546 """The error details."""
547 additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field(
548 name="additionalInfo", visibility=["read"]
549 )
550 """The error additional info."""
551
552
553class ErrorResponse(_Model):
554 """Error response.
555
556 :ivar error: The error object.
557 :vartype error: ~azure.mgmt.dynatrace.models.ErrorDetail
558 """
559
560 error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
561 """The error object."""
562
563 @overload
564 def __init__(
565 self,
566 *,
567 error: Optional["_models.ErrorDetail"] = None,
568 ) -> None: ...
569
570 @overload
571 def __init__(self, mapping: Mapping[str, Any]) -> None:
572 """
573 :param mapping: raw JSON to initialize the model.
574 :type mapping: Mapping[str, Any]
575 """
576
577 def __init__(self, *args: Any, **kwargs: Any) -> None:
578 super().__init__(*args, **kwargs)
579
580
581class FilteringTag(_Model):
582 """The definition of a filtering tag. Filtering tags are used for capturing resources and
583 include/exclude them from being monitored.
584
585 :ivar name: The name (also known as the key) of the tag.
586 :vartype name: str
587 :ivar value: The value of the tag.
588 :vartype value: str
589 :ivar action: Valid actions for a filtering tag. Exclusion takes priority over inclusion. Known
590 values are: "Include" and "Exclude".
591 :vartype action: str or ~azure.mgmt.dynatrace.models.TagAction
592 """
593
594 name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
595 """The name (also known as the key) of the tag."""
596 value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
597 """The value of the tag."""
598 action: Optional[Union[str, "_models.TagAction"]] = rest_field(
599 visibility=["read", "create", "update", "delete", "query"]
600 )
601 """Valid actions for a filtering tag. Exclusion takes priority over inclusion. Known values are:
602 \"Include\" and \"Exclude\"."""
603
604 @overload
605 def __init__(
606 self,
607 *,
608 name: Optional[str] = None,
609 value: Optional[str] = None,
610 action: Optional[Union[str, "_models.TagAction"]] = None,
611 ) -> None: ...
612
613 @overload
614 def __init__(self, mapping: Mapping[str, Any]) -> None:
615 """
616 :param mapping: raw JSON to initialize the model.
617 :type mapping: Mapping[str, Any]
618 """
619
620 def __init__(self, *args: Any, **kwargs: Any) -> None:
621 super().__init__(*args, **kwargs)
622
623
624class IdentityProperties(_Model):
625 """The properties of the managed service identities assigned to this resource.
626
627 :ivar tenant_id: The Active Directory tenant id of the principal.
628 :vartype tenant_id: str
629 :ivar principal_id: The active directory identifier of this principal.
630 :vartype principal_id: str
631 :ivar type: The type of managed identity assigned to this resource. Required. Known values are:
632 "SystemAssigned", "UserAssigned", and "SystemAndUserAssigned".
633 :vartype type: str or ~azure.mgmt.dynatrace.models.ManagedIdentityType
634 :ivar user_assigned_identities: The identities assigned to this resource by the user.
635 :vartype user_assigned_identities: dict[str, ~azure.mgmt.dynatrace.models.UserAssignedIdentity]
636 """
637
638 tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"])
639 """The Active Directory tenant id of the principal."""
640 principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
641 """The active directory identifier of this principal."""
642 type: Union[str, "_models.ManagedIdentityType"] = rest_field(
643 visibility=["read", "create", "update", "delete", "query"]
644 )
645 """The type of managed identity assigned to this resource. Required. Known values are:
646 \"SystemAssigned\", \"UserAssigned\", and \"SystemAndUserAssigned\"."""
647 user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field(
648 name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"]
649 )
650 """The identities assigned to this resource by the user."""
651
652 @overload
653 def __init__(
654 self,
655 *,
656 type: Union[str, "_models.ManagedIdentityType"],
657 user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None,
658 ) -> None: ...
659
660 @overload
661 def __init__(self, mapping: Mapping[str, Any]) -> None:
662 """
663 :param mapping: raw JSON to initialize the model.
664 :type mapping: Mapping[str, Any]
665 """
666
667 def __init__(self, *args: Any, **kwargs: Any) -> None:
668 super().__init__(*args, **kwargs)
669
670
671class LinkableEnvironmentRequest(_Model):
672 """Request for getting all the linkable environments for a user.
673
674 :ivar tenant_id: Tenant Id of the user in which they want to link the environment. Required.
675 :vartype tenant_id: str
676 :ivar user_principal: user principal id of the user. Required.
677 :vartype user_principal: str
678 :ivar region: Azure region in which we want to link the environment. Required.
679 :vartype region: str
680 """
681
682 tenant_id: str = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"])
683 """Tenant Id of the user in which they want to link the environment. Required."""
684 user_principal: str = rest_field(name="userPrincipal", visibility=["read", "create", "update", "delete", "query"])
685 """user principal id of the user. Required."""
686 region: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
687 """Azure region in which we want to link the environment. Required."""
688
689 @overload
690 def __init__(
691 self,
692 *,
693 tenant_id: str,
694 user_principal: str,
695 region: str,
696 ) -> None: ...
697
698 @overload
699 def __init__(self, mapping: Mapping[str, Any]) -> None:
700 """
701 :param mapping: raw JSON to initialize the model.
702 :type mapping: Mapping[str, Any]
703 """
704
705 def __init__(self, *args: Any, **kwargs: Any) -> None:
706 super().__init__(*args, **kwargs)
707
708
709class LinkableEnvironmentResponse(_Model):
710 """Response for getting all the linkable environments.
711
712 :ivar environment_id: environment id for which user is an admin.
713 :vartype environment_id: str
714 :ivar environment_name: Name of the environment.
715 :vartype environment_name: str
716 :ivar plan_data: Billing plan information.
717 :vartype plan_data: ~azure.mgmt.dynatrace.models.PlanData
718 """
719
720 environment_id: Optional[str] = rest_field(
721 name="environmentId", visibility=["read", "create", "update", "delete", "query"]
722 )
723 """environment id for which user is an admin."""
724 environment_name: Optional[str] = rest_field(
725 name="environmentName", visibility=["read", "create", "update", "delete", "query"]
726 )
727 """Name of the environment."""
728 plan_data: Optional["_models.PlanData"] = rest_field(
729 name="planData", visibility=["read", "create", "update", "delete", "query"]
730 )
731 """Billing plan information."""
732
733 @overload
734 def __init__(
735 self,
736 *,
737 environment_id: Optional[str] = None,
738 environment_name: Optional[str] = None,
739 plan_data: Optional["_models.PlanData"] = None,
740 ) -> None: ...
741
742 @overload
743 def __init__(self, mapping: Mapping[str, Any]) -> None:
744 """
745 :param mapping: raw JSON to initialize the model.
746 :type mapping: Mapping[str, Any]
747 """
748
749 def __init__(self, *args: Any, **kwargs: Any) -> None:
750 super().__init__(*args, **kwargs)
751
752
753class LogRules(_Model):
754 """Set of rules for sending logs for the Monitor resource.
755
756 :ivar send_aad_logs: Flag specifying if AAD logs should be sent for the Monitor resource. Known
757 values are: "Enabled" and "Disabled".
758 :vartype send_aad_logs: str or ~azure.mgmt.dynatrace.models.SendAadLogsStatus
759 :ivar send_subscription_logs: Flag specifying if subscription logs should be sent for the
760 Monitor resource. Known values are: "Enabled" and "Disabled".
761 :vartype send_subscription_logs: str or ~azure.mgmt.dynatrace.models.SendSubscriptionLogsStatus
762 :ivar send_activity_logs: Flag specifying if activity logs from Azure resources should be sent
763 for the Monitor resource. Known values are: "Enabled" and "Disabled".
764 :vartype send_activity_logs: str or ~azure.mgmt.dynatrace.models.SendActivityLogsStatus
765 :ivar filtering_tags: List of filtering tags to be used for capturing logs. This only takes
766 effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only
767 Exclude action is specified, the rules will apply to the list of all available resources. If
768 Include actions are specified, the rules will only include resources with the associated tags.
769 :vartype filtering_tags: list[~azure.mgmt.dynatrace.models.FilteringTag]
770 """
771
772 send_aad_logs: Optional[Union[str, "_models.SendAadLogsStatus"]] = rest_field(
773 name="sendAadLogs", visibility=["read", "create", "update", "delete", "query"]
774 )
775 """Flag specifying if AAD logs should be sent for the Monitor resource. Known values are:
776 \"Enabled\" and \"Disabled\"."""
777 send_subscription_logs: Optional[Union[str, "_models.SendSubscriptionLogsStatus"]] = rest_field(
778 name="sendSubscriptionLogs", visibility=["read", "create", "update", "delete", "query"]
779 )
780 """Flag specifying if subscription logs should be sent for the Monitor resource. Known values are:
781 \"Enabled\" and \"Disabled\"."""
782 send_activity_logs: Optional[Union[str, "_models.SendActivityLogsStatus"]] = rest_field(
783 name="sendActivityLogs", visibility=["read", "create", "update", "delete", "query"]
784 )
785 """Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
786 Known values are: \"Enabled\" and \"Disabled\"."""
787 filtering_tags: Optional[list["_models.FilteringTag"]] = rest_field(
788 name="filteringTags", visibility=["read", "create", "update", "delete", "query"]
789 )
790 """List of filtering tags to be used for capturing logs. This only takes effect if
791 SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude
792 action is specified, the rules will apply to the list of all available resources. If Include
793 actions are specified, the rules will only include resources with the associated tags."""
794
795 @overload
796 def __init__(
797 self,
798 *,
799 send_aad_logs: Optional[Union[str, "_models.SendAadLogsStatus"]] = None,
800 send_subscription_logs: Optional[Union[str, "_models.SendSubscriptionLogsStatus"]] = None,
801 send_activity_logs: Optional[Union[str, "_models.SendActivityLogsStatus"]] = None,
802 filtering_tags: Optional[list["_models.FilteringTag"]] = None,
803 ) -> None: ...
804
805 @overload
806 def __init__(self, mapping: Mapping[str, Any]) -> None:
807 """
808 :param mapping: raw JSON to initialize the model.
809 :type mapping: Mapping[str, Any]
810 """
811
812 def __init__(self, *args: Any, **kwargs: Any) -> None:
813 super().__init__(*args, **kwargs)
814
815
816class LogStatusRequest(_Model):
817 """Request for getting log status for given monitored resource Ids.
818
819 :ivar monitored_resource_ids: List of azure resource Id of monitored resources for which we get
820 the log status.
821 :vartype monitored_resource_ids: list[str]
822 """
823
824 monitored_resource_ids: Optional[list[str]] = rest_field(
825 name="monitoredResourceIds", visibility=["read", "create", "update", "delete", "query"]
826 )
827 """List of azure resource Id of monitored resources for which we get the log status."""
828
829 @overload
830 def __init__(
831 self,
832 *,
833 monitored_resource_ids: Optional[list[str]] = None,
834 ) -> None: ...
835
836 @overload
837 def __init__(self, mapping: Mapping[str, Any]) -> None:
838 """
839 :param mapping: raw JSON to initialize the model.
840 :type mapping: Mapping[str, Any]
841 """
842
843 def __init__(self, *args: Any, **kwargs: Any) -> None:
844 super().__init__(*args, **kwargs)
845
846
847class ManageAgentInstallationRequest(_Model):
848 """Request for performing Dynatrace agent install/uninstall action through the Azure Dynatrace
849 resource on the provided list of agent resources.
850
851 :ivar manage_agent_installation_list: The list of resources. Required.
852 :vartype manage_agent_installation_list: list[~azure.mgmt.dynatrace.models.ManageAgentList]
853 :ivar action: Install/Uninstall action. Required. Known values are: "Install" and "Uninstall".
854 :vartype action: str or ~azure.mgmt.dynatrace.models.Action
855 """
856
857 manage_agent_installation_list: list["_models.ManageAgentList"] = rest_field(
858 name="manageAgentInstallationList", visibility=["read", "create", "update", "delete", "query"]
859 )
860 """The list of resources. Required."""
861 action: Union[str, "_models.Action"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
862 """Install/Uninstall action. Required. Known values are: \"Install\" and \"Uninstall\"."""
863
864 @overload
865 def __init__(
866 self,
867 *,
868 manage_agent_installation_list: list["_models.ManageAgentList"],
869 action: Union[str, "_models.Action"],
870 ) -> None: ...
871
872 @overload
873 def __init__(self, mapping: Mapping[str, Any]) -> None:
874 """
875 :param mapping: raw JSON to initialize the model.
876 :type mapping: Mapping[str, Any]
877 """
878
879 def __init__(self, *args: Any, **kwargs: Any) -> None:
880 super().__init__(*args, **kwargs)
881
882
883class ManageAgentList(_Model):
884 """Details of resource that has Dynatrace agent installed through the Azure Dynatrace resource.
885
886 :ivar id: The ARM id of the resource to install/uninstall agent.
887 :vartype id: str
888 """
889
890 id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
891 """The ARM id of the resource to install/uninstall agent."""
892
893 @overload
894 def __init__(
895 self,
896 *,
897 id: Optional[str] = None, # pylint: disable=redefined-builtin
898 ) -> None: ...
899
900 @overload
901 def __init__(self, mapping: Mapping[str, Any]) -> None:
902 """
903 :param mapping: raw JSON to initialize the model.
904 :type mapping: Mapping[str, Any]
905 """
906
907 def __init__(self, *args: Any, **kwargs: Any) -> None:
908 super().__init__(*args, **kwargs)
909
910
911class ManagedServiceIdentity(_Model):
912 """Managed service identity (system assigned and/or user assigned identities).
913
914 :ivar principal_id: The service principal ID of the system assigned identity. This property
915 will only be provided for a system assigned identity.
916 :vartype principal_id: str
917 :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be
918 provided for a system assigned identity.
919 :vartype tenant_id: str
920 :ivar type: The type of managed identity assigned to this resource. Required. Known values are:
921 "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned".
922 :vartype type: str or ~azure.mgmt.dynatrace.models.ManagedServiceIdentityType
923 :ivar user_assigned_identities: The identities assigned to this resource by the user.
924 :vartype user_assigned_identities: dict[str, ~azure.mgmt.dynatrace.models.UserAssignedIdentity]
925 """
926
927 principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
928 """The service principal ID of the system assigned identity. This property will only be provided
929 for a system assigned identity."""
930 tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"])
931 """The tenant ID of the system assigned identity. This property will only be provided for a system
932 assigned identity."""
933 type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field(
934 visibility=["read", "create", "update", "delete", "query"]
935 )
936 """The type of managed identity assigned to this resource. Required. Known values are: \"None\",
937 \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\"."""
938 user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field(
939 name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"]
940 )
941 """The identities assigned to this resource by the user."""
942
943 @overload
944 def __init__(
945 self,
946 *,
947 type: Union[str, "_models.ManagedServiceIdentityType"],
948 user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None,
949 ) -> None: ...
950
951 @overload
952 def __init__(self, mapping: Mapping[str, Any]) -> None:
953 """
954 :param mapping: raw JSON to initialize the model.
955 :type mapping: Mapping[str, Any]
956 """
957
958 def __init__(self, *args: Any, **kwargs: Any) -> None:
959 super().__init__(*args, **kwargs)
960
961
962class MarketplaceSaaSResourceDetailsRequest(_Model):
963 """Request for getting Marketplace SaaS resource details for a tenant Id.
964
965 :ivar tenant_id: Tenant Id. Required.
966 :vartype tenant_id: str
967 """
968
969 tenant_id: str = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"])
970 """Tenant Id. Required."""
971
972 @overload
973 def __init__(
974 self,
975 *,
976 tenant_id: str,
977 ) -> None: ...
978
979 @overload
980 def __init__(self, mapping: Mapping[str, Any]) -> None:
981 """
982 :param mapping: raw JSON to initialize the model.
983 :type mapping: Mapping[str, Any]
984 """
985
986 def __init__(self, *args: Any, **kwargs: Any) -> None:
987 super().__init__(*args, **kwargs)
988
989
990class MarketplaceSaaSResourceDetailsResponse(_Model):
991 """Marketplace SaaS resource details linked to the given tenant Id.
992
993 :ivar marketplace_saa_s_resource_id: Id of the Marketplace SaaS Resource.
994 :vartype marketplace_saa_s_resource_id: str
995 :ivar plan_id: Id of the plan.
996 :vartype plan_id: str
997 :ivar marketplace_subscription_status: Marketplace subscription status. Known values are:
998 "Active", "Suspended", and "Unsubscribed".
999 :vartype marketplace_subscription_status: str or
1000 ~azure.mgmt.dynatrace.models.MarketplaceSubscriptionStatus
1001 :ivar marketplace_saa_s_resource_name: Name of the Marketplace SaaS Resource.
1002 :vartype marketplace_saa_s_resource_name: str
1003 """
1004
1005 marketplace_saa_s_resource_id: Optional[str] = rest_field(
1006 name="marketplaceSaaSResourceId", visibility=["read", "create", "update", "delete", "query"]
1007 )
1008 """Id of the Marketplace SaaS Resource."""
1009 plan_id: Optional[str] = rest_field(name="planId", visibility=["read", "create", "update", "delete", "query"])
1010 """Id of the plan."""
1011 marketplace_subscription_status: Optional[Union[str, "_models.MarketplaceSubscriptionStatus"]] = rest_field(
1012 name="marketplaceSubscriptionStatus", visibility=["read", "create", "update", "delete", "query"]
1013 )
1014 """Marketplace subscription status. Known values are: \"Active\", \"Suspended\", and
1015 \"Unsubscribed\"."""
1016 marketplace_saa_s_resource_name: Optional[str] = rest_field(
1017 name="marketplaceSaaSResourceName", visibility=["read", "create", "update", "delete", "query"]
1018 )
1019 """Name of the Marketplace SaaS Resource."""
1020
1021 @overload
1022 def __init__(
1023 self,
1024 *,
1025 marketplace_saa_s_resource_id: Optional[str] = None,
1026 plan_id: Optional[str] = None,
1027 marketplace_subscription_status: Optional[Union[str, "_models.MarketplaceSubscriptionStatus"]] = None,
1028 marketplace_saa_s_resource_name: Optional[str] = None,
1029 ) -> None: ...
1030
1031 @overload
1032 def __init__(self, mapping: Mapping[str, Any]) -> None:
1033 """
1034 :param mapping: raw JSON to initialize the model.
1035 :type mapping: Mapping[str, Any]
1036 """
1037
1038 def __init__(self, *args: Any, **kwargs: Any) -> None:
1039 super().__init__(*args, **kwargs)
1040
1041
1042class MarketplaceSubscriptionIdRequest(_Model):
1043 """Request for getting connected resources count for a Marketplace Subscription Id.
1044
1045 :ivar marketplace_subscription_id: Marketplace Subscription Id. Required.
1046 :vartype marketplace_subscription_id: str
1047 """
1048
1049 marketplace_subscription_id: str = rest_field(
1050 name="marketplaceSubscriptionId", visibility=["read", "create", "update", "delete", "query"]
1051 )
1052 """Marketplace Subscription Id. Required."""
1053
1054 @overload
1055 def __init__(
1056 self,
1057 *,
1058 marketplace_subscription_id: str,
1059 ) -> None: ...
1060
1061 @overload
1062 def __init__(self, mapping: Mapping[str, Any]) -> None:
1063 """
1064 :param mapping: raw JSON to initialize the model.
1065 :type mapping: Mapping[str, Any]
1066 """
1067
1068 def __init__(self, *args: Any, **kwargs: Any) -> None:
1069 super().__init__(*args, **kwargs)
1070
1071
1072class MetricRules(_Model):
1073 """Set of rules for sending metrics for the Monitor resource.
1074
1075 :ivar sending_metrics: Flag specifying if metrics from Azure resources should be sent for the
1076 Monitor resource. Known values are: "Enabled" and "Disabled".
1077 :vartype sending_metrics: str or ~azure.mgmt.dynatrace.models.SendingMetricsStatus
1078 :ivar filtering_tags: List of filtering tags to be used for capturing metrics. If empty, all
1079 resources will be captured. If only Exclude action is specified, the rules will apply to the
1080 list of all available resources. If Include actions are specified, the rules will only include
1081 resources with the associated tags.
1082 :vartype filtering_tags: list[~azure.mgmt.dynatrace.models.FilteringTag]
1083 """
1084
1085 sending_metrics: Optional[Union[str, "_models.SendingMetricsStatus"]] = rest_field(
1086 name="sendingMetrics", visibility=["read", "create", "update", "delete", "query"]
1087 )
1088 """Flag specifying if metrics from Azure resources should be sent for the Monitor resource. Known
1089 values are: \"Enabled\" and \"Disabled\"."""
1090 filtering_tags: Optional[list["_models.FilteringTag"]] = rest_field(
1091 name="filteringTags", visibility=["read", "create", "update", "delete", "query"]
1092 )
1093 """List of filtering tags to be used for capturing metrics. If empty, all resources will be
1094 captured. If only Exclude action is specified, the rules will apply to the list of all
1095 available resources. If Include actions are specified, the rules will only include resources
1096 with the associated tags."""
1097
1098 @overload
1099 def __init__(
1100 self,
1101 *,
1102 sending_metrics: Optional[Union[str, "_models.SendingMetricsStatus"]] = None,
1103 filtering_tags: Optional[list["_models.FilteringTag"]] = None,
1104 ) -> None: ...
1105
1106 @overload
1107 def __init__(self, mapping: Mapping[str, Any]) -> None:
1108 """
1109 :param mapping: raw JSON to initialize the model.
1110 :type mapping: Mapping[str, Any]
1111 """
1112
1113 def __init__(self, *args: Any, **kwargs: Any) -> None:
1114 super().__init__(*args, **kwargs)
1115
1116
1117class MetricsStatusResponse(_Model):
1118 """Response of get metrics status operation.
1119
1120 :ivar azure_resource_ids: Azure resource IDs.
1121 :vartype azure_resource_ids: list[str]
1122 """
1123
1124 azure_resource_ids: Optional[list[str]] = rest_field(
1125 name="azureResourceIds", visibility=["read", "create", "update", "delete", "query"]
1126 )
1127 """Azure resource IDs."""
1128
1129 @overload
1130 def __init__(
1131 self,
1132 *,
1133 azure_resource_ids: Optional[list[str]] = None,
1134 ) -> None: ...
1135
1136 @overload
1137 def __init__(self, mapping: Mapping[str, Any]) -> None:
1138 """
1139 :param mapping: raw JSON to initialize the model.
1140 :type mapping: Mapping[str, Any]
1141 """
1142
1143 def __init__(self, *args: Any, **kwargs: Any) -> None:
1144 super().__init__(*args, **kwargs)
1145
1146
1147class MetricStatusRequest(_Model):
1148 """Request for getting metric status for given monitored resource Ids.
1149
1150 :ivar monitored_resource_ids: List of azure resource Id of monitored resources for which we get
1151 the metric status.
1152 :vartype monitored_resource_ids: list[str]
1153 """
1154
1155 monitored_resource_ids: Optional[list[str]] = rest_field(
1156 name="monitoredResourceIds", visibility=["read", "create", "update", "delete", "query"]
1157 )
1158 """List of azure resource Id of monitored resources for which we get the metric status."""
1159
1160 @overload
1161 def __init__(
1162 self,
1163 *,
1164 monitored_resource_ids: Optional[list[str]] = None,
1165 ) -> None: ...
1166
1167 @overload
1168 def __init__(self, mapping: Mapping[str, Any]) -> None:
1169 """
1170 :param mapping: raw JSON to initialize the model.
1171 :type mapping: Mapping[str, Any]
1172 """
1173
1174 def __init__(self, *args: Any, **kwargs: Any) -> None:
1175 super().__init__(*args, **kwargs)
1176
1177
1178class MonitoredResource(_Model):
1179 """Details of resource being monitored by Dynatrace monitor resource.
1180
1181 :ivar id: The ARM id of the resource.
1182 :vartype id: str
1183 :ivar sending_metrics: Flag indicating if resource is sending metrics to Dynatrace. Known
1184 values are: "Enabled" and "Disabled".
1185 :vartype sending_metrics: str or ~azure.mgmt.dynatrace.models.SendingMetricsStatus
1186 :ivar reason_for_metrics_status: Reason for why the resource is sending metrics (or why it is
1187 not sending).
1188 :vartype reason_for_metrics_status: str
1189 :ivar sending_logs: Flag indicating if resource is sending logs to Dynatrace. Known values are:
1190 "Enabled" and "Disabled".
1191 :vartype sending_logs: str or ~azure.mgmt.dynatrace.models.SendingLogsStatus
1192 :ivar reason_for_logs_status: Reason for why the resource is sending logs (or why it is not
1193 sending).
1194 :vartype reason_for_logs_status: str
1195 """
1196
1197 id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
1198 """The ARM id of the resource."""
1199 sending_metrics: Optional[Union[str, "_models.SendingMetricsStatus"]] = rest_field(
1200 name="sendingMetrics", visibility=["read", "create", "update", "delete", "query"]
1201 )
1202 """Flag indicating if resource is sending metrics to Dynatrace. Known values are: \"Enabled\" and
1203 \"Disabled\"."""
1204 reason_for_metrics_status: Optional[str] = rest_field(
1205 name="reasonForMetricsStatus", visibility=["read", "create", "update", "delete", "query"]
1206 )
1207 """Reason for why the resource is sending metrics (or why it is not sending)."""
1208 sending_logs: Optional[Union[str, "_models.SendingLogsStatus"]] = rest_field(
1209 name="sendingLogs", visibility=["read", "create", "update", "delete", "query"]
1210 )
1211 """Flag indicating if resource is sending logs to Dynatrace. Known values are: \"Enabled\" and
1212 \"Disabled\"."""
1213 reason_for_logs_status: Optional[str] = rest_field(
1214 name="reasonForLogsStatus", visibility=["read", "create", "update", "delete", "query"]
1215 )
1216 """Reason for why the resource is sending logs (or why it is not sending)."""
1217
1218 @overload
1219 def __init__(
1220 self,
1221 *,
1222 id: Optional[str] = None, # pylint: disable=redefined-builtin
1223 sending_metrics: Optional[Union[str, "_models.SendingMetricsStatus"]] = None,
1224 reason_for_metrics_status: Optional[str] = None,
1225 sending_logs: Optional[Union[str, "_models.SendingLogsStatus"]] = None,
1226 reason_for_logs_status: Optional[str] = None,
1227 ) -> None: ...
1228
1229 @overload
1230 def __init__(self, mapping: Mapping[str, Any]) -> None:
1231 """
1232 :param mapping: raw JSON to initialize the model.
1233 :type mapping: Mapping[str, Any]
1234 """
1235
1236 def __init__(self, *args: Any, **kwargs: Any) -> None:
1237 super().__init__(*args, **kwargs)
1238
1239
1240class MonitoredSubscription(_Model):
1241 """The list of subscriptions and it's monitoring status by current Dynatrace monitor.
1242
1243 :ivar subscription_id: The subscriptionId to be monitored. Required.
1244 :vartype subscription_id: str
1245 :ivar status: The state of monitoring. Known values are: "InProgress", "Active", "Failed", and
1246 "Deleting".
1247 :vartype status: str or ~azure.mgmt.dynatrace.models.Status
1248 :ivar error: The reason of not monitoring the subscription.
1249 :vartype error: str
1250 :ivar tag_rules: Properties for the Tag rules resource of a Monitor account.
1251 :vartype tag_rules: ~azure.mgmt.dynatrace.models.MonitoringTagRulesProperties
1252 """
1253
1254 subscription_id: str = rest_field(name="subscriptionId", visibility=["read", "create", "update", "delete", "query"])
1255 """The subscriptionId to be monitored. Required."""
1256 status: Optional[Union[str, "_models.Status"]] = rest_field(
1257 visibility=["read", "create", "update", "delete", "query"]
1258 )
1259 """The state of monitoring. Known values are: \"InProgress\", \"Active\", \"Failed\", and
1260 \"Deleting\"."""
1261 error: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
1262 """The reason of not monitoring the subscription."""
1263 tag_rules: Optional["_models.MonitoringTagRulesProperties"] = rest_field(
1264 name="tagRules", visibility=["read", "create", "update", "delete", "query"]
1265 )
1266 """Properties for the Tag rules resource of a Monitor account."""
1267
1268 @overload
1269 def __init__(
1270 self,
1271 *,
1272 subscription_id: str,
1273 status: Optional[Union[str, "_models.Status"]] = None,
1274 error: Optional[str] = None,
1275 tag_rules: Optional["_models.MonitoringTagRulesProperties"] = None,
1276 ) -> None: ...
1277
1278 @overload
1279 def __init__(self, mapping: Mapping[str, Any]) -> None:
1280 """
1281 :param mapping: raw JSON to initialize the model.
1282 :type mapping: Mapping[str, Any]
1283 """
1284
1285 def __init__(self, *args: Any, **kwargs: Any) -> None:
1286 super().__init__(*args, **kwargs)
1287
1288
1289class MonitoredSubscriptionProperties(ProxyResource):
1290 """The request to update subscriptions needed to be monitored by the Dynatrace monitor resource.
1291
1292 :ivar id: Fully qualified resource ID for the resource. Ex -
1293 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
1294 :vartype id: str
1295 :ivar name: The name of the resource.
1296 :vartype name: str
1297 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
1298 "Microsoft.Storage/storageAccounts".
1299 :vartype type: str
1300 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
1301 information.
1302 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
1303 :ivar properties: The request to update subscriptions needed to be monitored by the Dynatrace
1304 monitor resource.
1305 :vartype properties: ~azure.mgmt.dynatrace.models.SubscriptionList
1306 """
1307
1308 properties: Optional["_models.SubscriptionList"] = rest_field(
1309 visibility=["read", "create", "update", "delete", "query"]
1310 )
1311 """The request to update subscriptions needed to be monitored by the Dynatrace monitor resource."""
1312
1313 @overload
1314 def __init__(
1315 self,
1316 *,
1317 properties: Optional["_models.SubscriptionList"] = None,
1318 ) -> None: ...
1319
1320 @overload
1321 def __init__(self, mapping: Mapping[str, Any]) -> None:
1322 """
1323 :param mapping: raw JSON to initialize the model.
1324 :type mapping: Mapping[str, Any]
1325 """
1326
1327 def __init__(self, *args: Any, **kwargs: Any) -> None:
1328 super().__init__(*args, **kwargs)
1329
1330
1331class MonitoringTagRulesProperties(_Model):
1332 """Properties for the Tag rules resource of a Monitor account.
1333
1334 :ivar log_rules: Set of rules for sending logs for the Monitor resource.
1335 :vartype log_rules: ~azure.mgmt.dynatrace.models.LogRules
1336 :ivar metric_rules: Set of rules for sending metrics for the Monitor resource.
1337 :vartype metric_rules: ~azure.mgmt.dynatrace.models.MetricRules
1338 :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted",
1339 "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and
1340 "NotSpecified".
1341 :vartype provisioning_state: str or ~azure.mgmt.dynatrace.models.ProvisioningState
1342 """
1343
1344 log_rules: Optional["_models.LogRules"] = rest_field(
1345 name="logRules", visibility=["read", "create", "update", "delete", "query"]
1346 )
1347 """Set of rules for sending logs for the Monitor resource."""
1348 metric_rules: Optional["_models.MetricRules"] = rest_field(
1349 name="metricRules", visibility=["read", "create", "update", "delete", "query"]
1350 )
1351 """Set of rules for sending metrics for the Monitor resource."""
1352 provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
1353 name="provisioningState", visibility=["read"]
1354 )
1355 """Provisioning state of the resource. Known values are: \"Accepted\", \"Creating\", \"Updating\",
1356 \"Deleting\", \"Succeeded\", \"Failed\", \"Canceled\", \"Deleted\", and \"NotSpecified\"."""
1357
1358 @overload
1359 def __init__(
1360 self,
1361 *,
1362 log_rules: Optional["_models.LogRules"] = None,
1363 metric_rules: Optional["_models.MetricRules"] = None,
1364 ) -> None: ...
1365
1366 @overload
1367 def __init__(self, mapping: Mapping[str, Any]) -> None:
1368 """
1369 :param mapping: raw JSON to initialize the model.
1370 :type mapping: Mapping[str, Any]
1371 """
1372
1373 def __init__(self, *args: Any, **kwargs: Any) -> None:
1374 super().__init__(*args, **kwargs)
1375
1376
1377class MonitorProperties(_Model):
1378 """Properties specific to the monitor resource.
1379
1380 :ivar monitoring_status: Status of the monitor. Known values are: "Enabled" and "Disabled".
1381 :vartype monitoring_status: str or ~azure.mgmt.dynatrace.models.MonitoringStatus
1382 :ivar marketplace_subscription_status: Marketplace subscription status. Known values are:
1383 "Active", "Suspended", and "Unsubscribed".
1384 :vartype marketplace_subscription_status: str or
1385 ~azure.mgmt.dynatrace.models.MarketplaceSubscriptionStatus
1386 :ivar marketplace_saas_auto_renew: Marketplace resource autorenew flag. Known values are: "On"
1387 and "Off".
1388 :vartype marketplace_saas_auto_renew: str or
1389 ~azure.mgmt.dynatrace.models.MarketplaceSaasAutoRenew
1390 :ivar dynatrace_environment_properties: Properties of the Dynatrace environment.
1391 :vartype dynatrace_environment_properties:
1392 ~azure.mgmt.dynatrace.models.DynatraceEnvironmentProperties
1393 :ivar user_info: User info.
1394 :vartype user_info: ~azure.mgmt.dynatrace.models.UserInfo
1395 :ivar plan_data: Billing plan information.
1396 :vartype plan_data: ~azure.mgmt.dynatrace.models.PlanData
1397 :ivar liftr_resource_category: Liftr Resource category. Known values are: "Unknown" and
1398 "MonitorLogs".
1399 :vartype liftr_resource_category: str or ~azure.mgmt.dynatrace.models.LiftrResourceCategories
1400 :ivar liftr_resource_preference: The priority of the resource.
1401 :vartype liftr_resource_preference: int
1402 :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted",
1403 "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and
1404 "NotSpecified".
1405 :vartype provisioning_state: str or ~azure.mgmt.dynatrace.models.ProvisioningState
1406 """
1407
1408 monitoring_status: Optional[Union[str, "_models.MonitoringStatus"]] = rest_field(
1409 name="monitoringStatus", visibility=["read", "create", "update", "delete", "query"]
1410 )
1411 """Status of the monitor. Known values are: \"Enabled\" and \"Disabled\"."""
1412 marketplace_subscription_status: Optional[Union[str, "_models.MarketplaceSubscriptionStatus"]] = rest_field(
1413 name="marketplaceSubscriptionStatus", visibility=["read", "create", "update", "delete", "query"]
1414 )
1415 """Marketplace subscription status. Known values are: \"Active\", \"Suspended\", and
1416 \"Unsubscribed\"."""
1417 marketplace_saas_auto_renew: Optional[Union[str, "_models.MarketplaceSaasAutoRenew"]] = rest_field(
1418 name="marketplaceSaasAutoRenew", visibility=["read", "create", "update", "delete", "query"]
1419 )
1420 """Marketplace resource autorenew flag. Known values are: \"On\" and \"Off\"."""
1421 dynatrace_environment_properties: Optional["_models.DynatraceEnvironmentProperties"] = rest_field(
1422 name="dynatraceEnvironmentProperties", visibility=["read", "create", "update", "delete", "query"]
1423 )
1424 """Properties of the Dynatrace environment."""
1425 user_info: Optional["_models.UserInfo"] = rest_field(
1426 name="userInfo", visibility=["read", "create", "update", "delete", "query"]
1427 )
1428 """User info."""
1429 plan_data: Optional["_models.PlanData"] = rest_field(
1430 name="planData", visibility=["read", "create", "update", "delete", "query"]
1431 )
1432 """Billing plan information."""
1433 liftr_resource_category: Optional[Union[str, "_models.LiftrResourceCategories"]] = rest_field(
1434 name="liftrResourceCategory", visibility=["read"]
1435 )
1436 """Liftr Resource category. Known values are: \"Unknown\" and \"MonitorLogs\"."""
1437 liftr_resource_preference: Optional[int] = rest_field(name="liftrResourcePreference", visibility=["read"])
1438 """The priority of the resource."""
1439 provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
1440 name="provisioningState", visibility=["read"]
1441 )
1442 """Provisioning state of the resource. Known values are: \"Accepted\", \"Creating\", \"Updating\",
1443 \"Deleting\", \"Succeeded\", \"Failed\", \"Canceled\", \"Deleted\", and \"NotSpecified\"."""
1444
1445 @overload
1446 def __init__(
1447 self,
1448 *,
1449 monitoring_status: Optional[Union[str, "_models.MonitoringStatus"]] = None,
1450 marketplace_subscription_status: Optional[Union[str, "_models.MarketplaceSubscriptionStatus"]] = None,
1451 marketplace_saas_auto_renew: Optional[Union[str, "_models.MarketplaceSaasAutoRenew"]] = None,
1452 dynatrace_environment_properties: Optional["_models.DynatraceEnvironmentProperties"] = None,
1453 user_info: Optional["_models.UserInfo"] = None,
1454 plan_data: Optional["_models.PlanData"] = None,
1455 ) -> None: ...
1456
1457 @overload
1458 def __init__(self, mapping: Mapping[str, Any]) -> None:
1459 """
1460 :param mapping: raw JSON to initialize the model.
1461 :type mapping: Mapping[str, Any]
1462 """
1463
1464 def __init__(self, *args: Any, **kwargs: Any) -> None:
1465 super().__init__(*args, **kwargs)
1466
1467
1468class TrackedResource(Resource):
1469 """Tracked Resource.
1470
1471 :ivar id: Fully qualified resource ID for the resource. Ex -
1472 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
1473 :vartype id: str
1474 :ivar name: The name of the resource.
1475 :vartype name: str
1476 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
1477 "Microsoft.Storage/storageAccounts".
1478 :vartype type: str
1479 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
1480 information.
1481 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
1482 :ivar tags: Resource tags.
1483 :vartype tags: dict[str, str]
1484 :ivar location: The geo-location where the resource lives. Required.
1485 :vartype location: str
1486 """
1487
1488 tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
1489 """Resource tags."""
1490 location: str = rest_field(visibility=["read", "create"])
1491 """The geo-location where the resource lives. Required."""
1492
1493 @overload
1494 def __init__(
1495 self,
1496 *,
1497 location: str,
1498 tags: Optional[dict[str, str]] = None,
1499 ) -> None: ...
1500
1501 @overload
1502 def __init__(self, mapping: Mapping[str, Any]) -> None:
1503 """
1504 :param mapping: raw JSON to initialize the model.
1505 :type mapping: Mapping[str, Any]
1506 """
1507
1508 def __init__(self, *args: Any, **kwargs: Any) -> None:
1509 super().__init__(*args, **kwargs)
1510
1511
1512class MonitorResource(TrackedResource):
1513 """Dynatrace Monitor Resource.
1514
1515 :ivar id: Fully qualified resource ID for the resource. Ex -
1516 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
1517 :vartype id: str
1518 :ivar name: The name of the resource.
1519 :vartype name: str
1520 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
1521 "Microsoft.Storage/storageAccounts".
1522 :vartype type: str
1523 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
1524 information.
1525 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
1526 :ivar tags: Resource tags.
1527 :vartype tags: dict[str, str]
1528 :ivar location: The geo-location where the resource lives. Required.
1529 :vartype location: str
1530 :ivar properties: The resource-specific properties for this resource. Required.
1531 :vartype properties: ~azure.mgmt.dynatrace.models.MonitorProperties
1532 :ivar identity: The managed service identities assigned to this resource.
1533 :vartype identity: ~azure.mgmt.dynatrace.models.IdentityProperties
1534 """
1535
1536 properties: "_models.MonitorProperties" = rest_field(visibility=["read", "create", "update", "delete", "query"])
1537 """The resource-specific properties for this resource. Required."""
1538 identity: Optional["_models.IdentityProperties"] = rest_field(
1539 visibility=["read", "create", "update", "delete", "query"]
1540 )
1541 """The managed service identities assigned to this resource."""
1542
1543 __flattened_items = [
1544 "monitoring_status",
1545 "marketplace_subscription_status",
1546 "marketplace_saas_auto_renew",
1547 "dynatrace_environment_properties",
1548 "user_info",
1549 "plan_data",
1550 "liftr_resource_category",
1551 "liftr_resource_preference",
1552 "provisioning_state",
1553 ]
1554
1555 @overload
1556 def __init__(
1557 self,
1558 *,
1559 location: str,
1560 properties: "_models.MonitorProperties",
1561 tags: Optional[dict[str, str]] = None,
1562 identity: Optional["_models.IdentityProperties"] = None,
1563 ) -> None: ...
1564
1565 @overload
1566 def __init__(self, mapping: Mapping[str, Any]) -> None:
1567 """
1568 :param mapping: raw JSON to initialize the model.
1569 :type mapping: Mapping[str, Any]
1570 """
1571
1572 def __init__(self, *args: Any, **kwargs: Any) -> None:
1573 _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items}
1574 super().__init__(*args, **kwargs)
1575 for k, v in _flattened_input.items():
1576 setattr(self, k, v)
1577
1578 def __getattr__(self, name: str) -> Any:
1579 if name in self.__flattened_items:
1580 if self.properties is None:
1581 return None
1582 return getattr(self.properties, name)
1583 raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
1584
1585 def __setattr__(self, key: str, value: Any) -> None:
1586 if key in self.__flattened_items:
1587 if self.properties is None:
1588 self.properties = self._attr_to_rest_field["properties"]._class_type()
1589 setattr(self.properties, key, value)
1590 else:
1591 super().__setattr__(key, value)
1592
1593
1594class MonitorResourceUpdate(_Model):
1595 """The updatable properties of the MonitorResource.
1596
1597 :ivar tags: Resource tags.
1598 :vartype tags: dict[str, str]
1599 :ivar properties: The set of properties that can be updated in a PATCH request to a monitor
1600 resource.
1601 :vartype properties: ~azure.mgmt.dynatrace.models.MonitorUpdateProperties
1602 :ivar identity: The managed service identities assigned to this resource.
1603 :vartype identity: ~azure.mgmt.dynatrace.models.ManagedServiceIdentity
1604 """
1605
1606 tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update"])
1607 """Resource tags."""
1608 properties: Optional["_models.MonitorUpdateProperties"] = rest_field(
1609 visibility=["read", "create", "update", "delete", "query"]
1610 )
1611 """The set of properties that can be updated in a PATCH request to a monitor resource."""
1612 identity: Optional["_models.ManagedServiceIdentity"] = rest_field(
1613 visibility=["read", "create", "update", "delete", "query"]
1614 )
1615 """The managed service identities assigned to this resource."""
1616
1617 @overload
1618 def __init__(
1619 self,
1620 *,
1621 tags: Optional[dict[str, str]] = None,
1622 properties: Optional["_models.MonitorUpdateProperties"] = None,
1623 identity: Optional["_models.ManagedServiceIdentity"] = None,
1624 ) -> None: ...
1625
1626 @overload
1627 def __init__(self, mapping: Mapping[str, Any]) -> None:
1628 """
1629 :param mapping: raw JSON to initialize the model.
1630 :type mapping: Mapping[str, Any]
1631 """
1632
1633 def __init__(self, *args: Any, **kwargs: Any) -> None:
1634 super().__init__(*args, **kwargs)
1635
1636
1637class MonitorUpdateProperties(_Model):
1638 """The set of properties that can be updated in a PATCH request to a monitor resource.
1639
1640 :ivar plan_data: The new Billing plan information.
1641 :vartype plan_data: ~azure.mgmt.dynatrace.models.PlanData
1642 """
1643
1644 plan_data: Optional["_models.PlanData"] = rest_field(
1645 name="planData", visibility=["read", "create", "update", "delete", "query"]
1646 )
1647 """The new Billing plan information."""
1648
1649 @overload
1650 def __init__(
1651 self,
1652 *,
1653 plan_data: Optional["_models.PlanData"] = None,
1654 ) -> None: ...
1655
1656 @overload
1657 def __init__(self, mapping: Mapping[str, Any]) -> None:
1658 """
1659 :param mapping: raw JSON to initialize the model.
1660 :type mapping: Mapping[str, Any]
1661 """
1662
1663 def __init__(self, *args: Any, **kwargs: Any) -> None:
1664 super().__init__(*args, **kwargs)
1665
1666
1667class Operation(_Model):
1668 """REST API Operation.
1669
1670 :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
1671 "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
1672 :vartype name: str
1673 :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for
1674 data-plane operations and "false" for Azure Resource Manager/control-plane operations.
1675 :vartype is_data_action: bool
1676 :ivar display: Localized display information for this particular operation.
1677 :vartype display: ~azure.mgmt.dynatrace.models.OperationDisplay
1678 :ivar origin: The intended executor of the operation; as in Resource Based Access Control
1679 (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system",
1680 and "user,system".
1681 :vartype origin: str or ~azure.mgmt.dynatrace.models.Origin
1682 :ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions
1683 that are for internal only APIs. "Internal"
1684 :vartype action_type: str or ~azure.mgmt.dynatrace.models.ActionType
1685 """
1686
1687 name: Optional[str] = rest_field(visibility=["read"])
1688 """The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
1689 \"Microsoft.Compute/virtualMachines/write\",
1690 \"Microsoft.Compute/virtualMachines/capture/action\"."""
1691 is_data_action: Optional[bool] = rest_field(name="isDataAction", visibility=["read"])
1692 """Whether the operation applies to data-plane. This is \"true\" for data-plane operations and
1693 \"false\" for Azure Resource Manager/control-plane operations."""
1694 display: Optional["_models.OperationDisplay"] = rest_field(
1695 visibility=["read", "create", "update", "delete", "query"]
1696 )
1697 """Localized display information for this particular operation."""
1698 origin: Optional[Union[str, "_models.Origin"]] = rest_field(visibility=["read"])
1699 """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit
1700 logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and
1701 \"user,system\"."""
1702 action_type: Optional[Union[str, "_models.ActionType"]] = rest_field(name="actionType", visibility=["read"])
1703 """Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for
1704 internal only APIs. \"Internal\""""
1705
1706 @overload
1707 def __init__(
1708 self,
1709 *,
1710 display: Optional["_models.OperationDisplay"] = None,
1711 ) -> None: ...
1712
1713 @overload
1714 def __init__(self, mapping: Mapping[str, Any]) -> None:
1715 """
1716 :param mapping: raw JSON to initialize the model.
1717 :type mapping: Mapping[str, Any]
1718 """
1719
1720 def __init__(self, *args: Any, **kwargs: Any) -> None:
1721 super().__init__(*args, **kwargs)
1722
1723
1724class OperationDisplay(_Model):
1725 """Localized display information for an operation.
1726
1727 :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
1728 Monitoring Insights" or "Microsoft Compute".
1729 :vartype provider: str
1730 :ivar resource: The localized friendly name of the resource type related to this operation.
1731 E.g. "Virtual Machines" or "Job Schedule Collections".
1732 :vartype resource: str
1733 :ivar operation: The concise, localized friendly name for the operation; suitable for
1734 dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
1735 :vartype operation: str
1736 :ivar description: The short, localized friendly description of the operation; suitable for
1737 tool tips and detailed views.
1738 :vartype description: str
1739 """
1740
1741 provider: Optional[str] = rest_field(visibility=["read"])
1742 """The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring
1743 Insights\" or \"Microsoft Compute\"."""
1744 resource: Optional[str] = rest_field(visibility=["read"])
1745 """The localized friendly name of the resource type related to this operation. E.g. \"Virtual
1746 Machines\" or \"Job Schedule Collections\"."""
1747 operation: Optional[str] = rest_field(visibility=["read"])
1748 """The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create
1749 or Update Virtual Machine\", \"Restart Virtual Machine\"."""
1750 description: Optional[str] = rest_field(visibility=["read"])
1751 """The short, localized friendly description of the operation; suitable for tool tips and detailed
1752 views."""
1753
1754
1755class PlanData(_Model):
1756 """Billing plan information.
1757
1758 :ivar usage_type: different usage type like PAYG/COMMITTED. this could be enum.
1759 :vartype usage_type: str
1760 :ivar billing_cycle: different billing cycles like MONTHLY/WEEKLY. this could be enum.
1761 :vartype billing_cycle: str
1762 :ivar plan_details: plan id as published by Dynatrace.
1763 :vartype plan_details: str
1764 :ivar effective_date: date when plan was applied.
1765 :vartype effective_date: ~datetime.datetime
1766 """
1767
1768 usage_type: Optional[str] = rest_field(name="usageType", visibility=["read", "create", "update", "delete", "query"])
1769 """different usage type like PAYG/COMMITTED. this could be enum."""
1770 billing_cycle: Optional[str] = rest_field(
1771 name="billingCycle", visibility=["read", "create", "update", "delete", "query"]
1772 )
1773 """different billing cycles like MONTHLY/WEEKLY. this could be enum."""
1774 plan_details: Optional[str] = rest_field(
1775 name="planDetails", visibility=["read", "create", "update", "delete", "query"]
1776 )
1777 """plan id as published by Dynatrace."""
1778 effective_date: Optional[datetime.datetime] = rest_field(
1779 name="effectiveDate", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
1780 )
1781 """date when plan was applied."""
1782
1783 @overload
1784 def __init__(
1785 self,
1786 *,
1787 usage_type: Optional[str] = None,
1788 billing_cycle: Optional[str] = None,
1789 plan_details: Optional[str] = None,
1790 effective_date: Optional[datetime.datetime] = None,
1791 ) -> None: ...
1792
1793 @overload
1794 def __init__(self, mapping: Mapping[str, Any]) -> None:
1795 """
1796 :param mapping: raw JSON to initialize the model.
1797 :type mapping: Mapping[str, Any]
1798 """
1799
1800 def __init__(self, *args: Any, **kwargs: Any) -> None:
1801 super().__init__(*args, **kwargs)
1802
1803
1804class SSODetailsRequest(_Model):
1805 """Request for getting sso details for a user.
1806
1807 :ivar user_principal: user principal id of the user. Required.
1808 :vartype user_principal: str
1809 """
1810
1811 user_principal: str = rest_field(name="userPrincipal", visibility=["read", "create", "update", "delete", "query"])
1812 """user principal id of the user. Required."""
1813
1814 @overload
1815 def __init__(
1816 self,
1817 *,
1818 user_principal: str,
1819 ) -> None: ...
1820
1821 @overload
1822 def __init__(self, mapping: Mapping[str, Any]) -> None:
1823 """
1824 :param mapping: raw JSON to initialize the model.
1825 :type mapping: Mapping[str, Any]
1826 """
1827
1828 def __init__(self, *args: Any, **kwargs: Any) -> None:
1829 super().__init__(*args, **kwargs)
1830
1831
1832class SSODetailsResponse(_Model):
1833 """SSO details from the Dynatrace partner.
1834
1835 :ivar is_sso_enabled: Whether the SSO is enabled for this resource or not. Known values are:
1836 "Enabled" and "Disabled".
1837 :vartype is_sso_enabled: str or ~azure.mgmt.dynatrace.models.SSOStatus
1838 :ivar metadata_url: URL for Azure AD metadata.
1839 :vartype metadata_url: str
1840 :ivar single_sign_on_url: The login URL specific to this Dynatrace Environment.
1841 :vartype single_sign_on_url: str
1842 :ivar aad_domains: array of Aad(azure active directory) domains.
1843 :vartype aad_domains: list[str]
1844 :ivar admin_users: Array of admin user emails.
1845 :vartype admin_users: list[str]
1846 """
1847
1848 is_sso_enabled: Optional[Union[str, "_models.SSOStatus"]] = rest_field(
1849 name="isSsoEnabled", visibility=["read", "create", "update", "delete", "query"]
1850 )
1851 """Whether the SSO is enabled for this resource or not. Known values are: \"Enabled\" and
1852 \"Disabled\"."""
1853 metadata_url: Optional[str] = rest_field(
1854 name="metadataUrl", visibility=["read", "create", "update", "delete", "query"]
1855 )
1856 """URL for Azure AD metadata."""
1857 single_sign_on_url: Optional[str] = rest_field(
1858 name="singleSignOnUrl", visibility=["read", "create", "update", "delete", "query"]
1859 )
1860 """The login URL specific to this Dynatrace Environment."""
1861 aad_domains: Optional[list[str]] = rest_field(
1862 name="aadDomains", visibility=["read", "create", "update", "delete", "query"]
1863 )
1864 """array of Aad(azure active directory) domains."""
1865 admin_users: Optional[list[str]] = rest_field(
1866 name="adminUsers", visibility=["read", "create", "update", "delete", "query"]
1867 )
1868 """Array of admin user emails."""
1869
1870 @overload
1871 def __init__(
1872 self,
1873 *,
1874 is_sso_enabled: Optional[Union[str, "_models.SSOStatus"]] = None,
1875 metadata_url: Optional[str] = None,
1876 single_sign_on_url: Optional[str] = None,
1877 aad_domains: Optional[list[str]] = None,
1878 admin_users: Optional[list[str]] = None,
1879 ) -> None: ...
1880
1881 @overload
1882 def __init__(self, mapping: Mapping[str, Any]) -> None:
1883 """
1884 :param mapping: raw JSON to initialize the model.
1885 :type mapping: Mapping[str, Any]
1886 """
1887
1888 def __init__(self, *args: Any, **kwargs: Any) -> None:
1889 super().__init__(*args, **kwargs)
1890
1891
1892class SubscriptionList(_Model):
1893 """The request to update subscriptions needed to be monitored by the Dynatrace monitor resource.
1894
1895 :ivar operation: The operation for the patch on the resource. Known values are: "AddBegin",
1896 "AddComplete", "DeleteBegin", "DeleteComplete", and "Active".
1897 :vartype operation: str or ~azure.mgmt.dynatrace.models.SubscriptionListOperation
1898 :ivar monitored_subscription_list: List of subscriptions and the state of the monitoring.
1899 :vartype monitored_subscription_list: list[~azure.mgmt.dynatrace.models.MonitoredSubscription]
1900 :ivar provisioning_state: Provisioning State of the resource. Known values are: "Accepted",
1901 "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and
1902 "NotSpecified".
1903 :vartype provisioning_state: str or ~azure.mgmt.dynatrace.models.ProvisioningState
1904 """
1905
1906 operation: Optional[Union[str, "_models.SubscriptionListOperation"]] = rest_field(visibility=["create", "update"])
1907 """The operation for the patch on the resource. Known values are: \"AddBegin\", \"AddComplete\",
1908 \"DeleteBegin\", \"DeleteComplete\", and \"Active\"."""
1909 monitored_subscription_list: Optional[list["_models.MonitoredSubscription"]] = rest_field(
1910 name="monitoredSubscriptionList", visibility=["read", "create", "update", "delete", "query"]
1911 )
1912 """List of subscriptions and the state of the monitoring."""
1913 provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
1914 name="provisioningState", visibility=["read"]
1915 )
1916 """Provisioning State of the resource. Known values are: \"Accepted\", \"Creating\", \"Updating\",
1917 \"Deleting\", \"Succeeded\", \"Failed\", \"Canceled\", \"Deleted\", and \"NotSpecified\"."""
1918
1919 @overload
1920 def __init__(
1921 self,
1922 *,
1923 operation: Optional[Union[str, "_models.SubscriptionListOperation"]] = None,
1924 monitored_subscription_list: Optional[list["_models.MonitoredSubscription"]] = None,
1925 ) -> None: ...
1926
1927 @overload
1928 def __init__(self, mapping: Mapping[str, Any]) -> None:
1929 """
1930 :param mapping: raw JSON to initialize the model.
1931 :type mapping: Mapping[str, Any]
1932 """
1933
1934 def __init__(self, *args: Any, **kwargs: Any) -> None:
1935 super().__init__(*args, **kwargs)
1936
1937
1938class SystemData(_Model):
1939 """Metadata pertaining to creation and last modification of the resource.
1940
1941 :ivar created_by: The identity that created the resource.
1942 :vartype created_by: str
1943 :ivar created_by_type: The type of identity that created the resource. Known values are:
1944 "User", "Application", "ManagedIdentity", and "Key".
1945 :vartype created_by_type: str or ~azure.mgmt.dynatrace.models.CreatedByType
1946 :ivar created_at: The timestamp of resource creation (UTC).
1947 :vartype created_at: ~datetime.datetime
1948 :ivar last_modified_by: The identity that last modified the resource.
1949 :vartype last_modified_by: str
1950 :ivar last_modified_by_type: The type of identity that last modified the resource. Known values
1951 are: "User", "Application", "ManagedIdentity", and "Key".
1952 :vartype last_modified_by_type: str or ~azure.mgmt.dynatrace.models.CreatedByType
1953 :ivar last_modified_at: The timestamp of resource last modification (UTC).
1954 :vartype last_modified_at: ~datetime.datetime
1955 """
1956
1957 created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"])
1958 """The identity that created the resource."""
1959 created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
1960 name="createdByType", visibility=["read", "create", "update", "delete", "query"]
1961 )
1962 """The type of identity that created the resource. Known values are: \"User\", \"Application\",
1963 \"ManagedIdentity\", and \"Key\"."""
1964 created_at: Optional[datetime.datetime] = rest_field(
1965 name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
1966 )
1967 """The timestamp of resource creation (UTC)."""
1968 last_modified_by: Optional[str] = rest_field(
1969 name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"]
1970 )
1971 """The identity that last modified the resource."""
1972 last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
1973 name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"]
1974 )
1975 """The type of identity that last modified the resource. Known values are: \"User\",
1976 \"Application\", \"ManagedIdentity\", and \"Key\"."""
1977 last_modified_at: Optional[datetime.datetime] = rest_field(
1978 name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
1979 )
1980 """The timestamp of resource last modification (UTC)."""
1981
1982 @overload
1983 def __init__(
1984 self,
1985 *,
1986 created_by: Optional[str] = None,
1987 created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
1988 created_at: Optional[datetime.datetime] = None,
1989 last_modified_by: Optional[str] = None,
1990 last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
1991 last_modified_at: Optional[datetime.datetime] = None,
1992 ) -> None: ...
1993
1994 @overload
1995 def __init__(self, mapping: Mapping[str, Any]) -> None:
1996 """
1997 :param mapping: raw JSON to initialize the model.
1998 :type mapping: Mapping[str, Any]
1999 """
2000
2001 def __init__(self, *args: Any, **kwargs: Any) -> None:
2002 super().__init__(*args, **kwargs)
2003
2004
2005class TagRule(ProxyResource):
2006 """Tag rules for a monitor resource.
2007
2008 :ivar id: Fully qualified resource ID for the resource. Ex -
2009 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
2010 :vartype id: str
2011 :ivar name: The name of the resource.
2012 :vartype name: str
2013 :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
2014 "Microsoft.Storage/storageAccounts".
2015 :vartype type: str
2016 :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
2017 information.
2018 :vartype system_data: ~azure.mgmt.dynatrace.models.SystemData
2019 :ivar properties: The resource-specific properties for this resource. Required.
2020 :vartype properties: ~azure.mgmt.dynatrace.models.MonitoringTagRulesProperties
2021 """
2022
2023 properties: "_models.MonitoringTagRulesProperties" = rest_field(
2024 visibility=["read", "create", "update", "delete", "query"]
2025 )
2026 """The resource-specific properties for this resource. Required."""
2027
2028 __flattened_items = ["log_rules", "metric_rules", "provisioning_state"]
2029
2030 @overload
2031 def __init__(
2032 self,
2033 *,
2034 properties: "_models.MonitoringTagRulesProperties",
2035 ) -> None: ...
2036
2037 @overload
2038 def __init__(self, mapping: Mapping[str, Any]) -> None:
2039 """
2040 :param mapping: raw JSON to initialize the model.
2041 :type mapping: Mapping[str, Any]
2042 """
2043
2044 def __init__(self, *args: Any, **kwargs: Any) -> None:
2045 _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items}
2046 super().__init__(*args, **kwargs)
2047 for k, v in _flattened_input.items():
2048 setattr(self, k, v)
2049
2050 def __getattr__(self, name: str) -> Any:
2051 if name in self.__flattened_items:
2052 if self.properties is None:
2053 return None
2054 return getattr(self.properties, name)
2055 raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
2056
2057 def __setattr__(self, key: str, value: Any) -> None:
2058 if key in self.__flattened_items:
2059 if self.properties is None:
2060 self.properties = self._attr_to_rest_field["properties"]._class_type()
2061 setattr(self.properties, key, value)
2062 else:
2063 super().__setattr__(key, value)
2064
2065
2066class UpgradePlanRequest(_Model):
2067 """The billing plan properties for the upgrade plan call.
2068
2069 :ivar plan_data: The new Billing plan information.
2070 :vartype plan_data: ~azure.mgmt.dynatrace.models.PlanData
2071 """
2072
2073 plan_data: Optional["_models.PlanData"] = rest_field(
2074 name="planData", visibility=["read", "create", "update", "delete", "query"]
2075 )
2076 """The new Billing plan information."""
2077
2078 @overload
2079 def __init__(
2080 self,
2081 *,
2082 plan_data: Optional["_models.PlanData"] = None,
2083 ) -> None: ...
2084
2085 @overload
2086 def __init__(self, mapping: Mapping[str, Any]) -> None:
2087 """
2088 :param mapping: raw JSON to initialize the model.
2089 :type mapping: Mapping[str, Any]
2090 """
2091
2092 def __init__(self, *args: Any, **kwargs: Any) -> None:
2093 super().__init__(*args, **kwargs)
2094
2095
2096class UserAssignedIdentity(_Model):
2097 """User assigned identity properties.
2098
2099 :ivar principal_id: The principal ID of the assigned identity.
2100 :vartype principal_id: str
2101 :ivar client_id: The client ID of the assigned identity.
2102 :vartype client_id: str
2103 """
2104
2105 principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
2106 """The principal ID of the assigned identity."""
2107 client_id: Optional[str] = rest_field(name="clientId", visibility=["read"])
2108 """The client ID of the assigned identity."""
2109
2110
2111class UserInfo(_Model):
2112 """User info.
2113
2114 :ivar first_name: First Name of the user.
2115 :vartype first_name: str
2116 :ivar last_name: Last Name of the user.
2117 :vartype last_name: str
2118 :ivar email_address: Email of the user used by Dynatrace for contacting them if needed.
2119 :vartype email_address: str
2120 :ivar phone_number: Phone number of the user used by Dynatrace for contacting them if needed.
2121 :vartype phone_number: str
2122 :ivar country: Country of the user.
2123 :vartype country: str
2124 """
2125
2126 first_name: Optional[str] = rest_field(name="firstName", visibility=["read", "create", "update", "delete", "query"])
2127 """First Name of the user."""
2128 last_name: Optional[str] = rest_field(name="lastName", visibility=["read", "create", "update", "delete", "query"])
2129 """Last Name of the user."""
2130 email_address: Optional[str] = rest_field(
2131 name="emailAddress", visibility=["read", "create", "update", "delete", "query"]
2132 )
2133 """Email of the user used by Dynatrace for contacting them if needed."""
2134 phone_number: Optional[str] = rest_field(
2135 name="phoneNumber", visibility=["read", "create", "update", "delete", "query"]
2136 )
2137 """Phone number of the user used by Dynatrace for contacting them if needed."""
2138 country: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
2139 """Country of the user."""
2140
2141 @overload
2142 def __init__(
2143 self,
2144 *,
2145 first_name: Optional[str] = None,
2146 last_name: Optional[str] = None,
2147 email_address: Optional[str] = None,
2148 phone_number: Optional[str] = None,
2149 country: Optional[str] = None,
2150 ) -> None: ...
2151
2152 @overload
2153 def __init__(self, mapping: Mapping[str, Any]) -> None:
2154 """
2155 :param mapping: raw JSON to initialize the model.
2156 :type mapping: Mapping[str, Any]
2157 """
2158
2159 def __init__(self, *args: Any, **kwargs: Any) -> None:
2160 super().__init__(*args, **kwargs)
2161
2162
2163class VMExtensionPayload(_Model):
2164 """Response of payload to be passed while installing VM agent.
2165
2166 :ivar ingestion_key: Ingestion key of the environment.
2167 :vartype ingestion_key: str
2168 :ivar environment_id: Id of the environment created.
2169 :vartype environment_id: str
2170 """
2171
2172 ingestion_key: Optional[str] = rest_field(
2173 name="ingestionKey", visibility=["read", "create", "update", "delete", "query"]
2174 )
2175 """Ingestion key of the environment."""
2176 environment_id: Optional[str] = rest_field(
2177 name="environmentId", visibility=["read", "create", "update", "delete", "query"]
2178 )
2179 """Id of the environment created."""
2180
2181 @overload
2182 def __init__(
2183 self,
2184 *,
2185 ingestion_key: Optional[str] = None,
2186 environment_id: Optional[str] = None,
2187 ) -> None: ...
2188
2189 @overload
2190 def __init__(self, mapping: Mapping[str, Any]) -> None:
2191 """
2192 :param mapping: raw JSON to initialize the model.
2193 :type mapping: Mapping[str, Any]
2194 """
2195
2196 def __init__(self, *args: Any, **kwargs: Any) -> None:
2197 super().__init__(*args, **kwargs)
2198
2199
2200class VMInfo(_Model):
2201 """Details of VM Resource having Dynatrace OneAgent installed.
2202
2203 :ivar resource_id: Azure VM resource ID.
2204 :vartype resource_id: str
2205 :ivar version: Version of the Dynatrace agent installed on the VM.
2206 :vartype version: str
2207 :ivar monitoring_type: The monitoring mode of OneAgent. Known values are:
2208 "CLOUD_INFRASTRUCTURE", "FULL_STACK", and "DISCOVERY".
2209 :vartype monitoring_type: str or ~azure.mgmt.dynatrace.models.MonitoringType
2210 :ivar auto_update_setting: Update settings of OneAgent. Known values are: "ENABLED" and
2211 "DISABLED".
2212 :vartype auto_update_setting: str or ~azure.mgmt.dynatrace.models.AutoUpdateSetting
2213 :ivar update_status: The current update status of OneAgent. Known values are: "INCOMPATIBLE",
2214 "OUTDATED", "SCHEDULED", "SUPPRESSED", "UNKNOWN", "UP2DATE", "UPDATE_IN_PROGRESS",
2215 "UPDATE_PENDING", and "UPDATE_PROBLEM".
2216 :vartype update_status: str or ~azure.mgmt.dynatrace.models.UpdateStatus
2217 :ivar availability_state: The availability state of OneAgent. Known values are: "CRASHED",
2218 "LOST", "MONITORED", "PRE_MONITORED", "SHUTDOWN", "UNEXPECTED_SHUTDOWN", "UNKNOWN", and
2219 "UNMONITORED".
2220 :vartype availability_state: str or ~azure.mgmt.dynatrace.models.AvailabilityState
2221 :ivar log_module: Tells whether log modules are enabled or not. Known values are: "ENABLED" and
2222 "DISABLED".
2223 :vartype log_module: str or ~azure.mgmt.dynatrace.models.LogModule
2224 :ivar host_group: The name of the host group.
2225 :vartype host_group: str
2226 :ivar host_name: The name of the host.
2227 :vartype host_name: str
2228 """
2229
2230 resource_id: Optional[str] = rest_field(
2231 name="resourceId", visibility=["read", "create", "update", "delete", "query"]
2232 )
2233 """Azure VM resource ID."""
2234 version: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
2235 """Version of the Dynatrace agent installed on the VM."""
2236 monitoring_type: Optional[Union[str, "_models.MonitoringType"]] = rest_field(
2237 name="monitoringType", visibility=["read", "create", "update", "delete", "query"]
2238 )
2239 """The monitoring mode of OneAgent. Known values are: \"CLOUD_INFRASTRUCTURE\", \"FULL_STACK\",
2240 and \"DISCOVERY\"."""
2241 auto_update_setting: Optional[Union[str, "_models.AutoUpdateSetting"]] = rest_field(
2242 name="autoUpdateSetting", visibility=["read", "create", "update", "delete", "query"]
2243 )
2244 """Update settings of OneAgent. Known values are: \"ENABLED\" and \"DISABLED\"."""
2245 update_status: Optional[Union[str, "_models.UpdateStatus"]] = rest_field(
2246 name="updateStatus", visibility=["read", "create", "update", "delete", "query"]
2247 )
2248 """The current update status of OneAgent. Known values are: \"INCOMPATIBLE\", \"OUTDATED\",
2249 \"SCHEDULED\", \"SUPPRESSED\", \"UNKNOWN\", \"UP2DATE\", \"UPDATE_IN_PROGRESS\",
2250 \"UPDATE_PENDING\", and \"UPDATE_PROBLEM\"."""
2251 availability_state: Optional[Union[str, "_models.AvailabilityState"]] = rest_field(
2252 name="availabilityState", visibility=["read", "create", "update", "delete", "query"]
2253 )
2254 """The availability state of OneAgent. Known values are: \"CRASHED\", \"LOST\", \"MONITORED\",
2255 \"PRE_MONITORED\", \"SHUTDOWN\", \"UNEXPECTED_SHUTDOWN\", \"UNKNOWN\", and \"UNMONITORED\"."""
2256 log_module: Optional[Union[str, "_models.LogModule"]] = rest_field(
2257 name="logModule", visibility=["read", "create", "update", "delete", "query"]
2258 )
2259 """Tells whether log modules are enabled or not. Known values are: \"ENABLED\" and \"DISABLED\"."""
2260 host_group: Optional[str] = rest_field(name="hostGroup", visibility=["read", "create", "update", "delete", "query"])
2261 """The name of the host group."""
2262 host_name: Optional[str] = rest_field(name="hostName", visibility=["read", "create", "update", "delete", "query"])
2263 """The name of the host."""
2264
2265 @overload
2266 def __init__(
2267 self,
2268 *,
2269 resource_id: Optional[str] = None,
2270 version: Optional[str] = None,
2271 monitoring_type: Optional[Union[str, "_models.MonitoringType"]] = None,
2272 auto_update_setting: Optional[Union[str, "_models.AutoUpdateSetting"]] = None,
2273 update_status: Optional[Union[str, "_models.UpdateStatus"]] = None,
2274 availability_state: Optional[Union[str, "_models.AvailabilityState"]] = None,
2275 log_module: Optional[Union[str, "_models.LogModule"]] = None,
2276 host_group: Optional[str] = None,
2277 host_name: Optional[str] = None,
2278 ) -> None: ...
2279
2280 @overload
2281 def __init__(self, mapping: Mapping[str, Any]) -> None:
2282 """
2283 :param mapping: raw JSON to initialize the model.
2284 :type mapping: Mapping[str, Any]
2285 """
2286
2287 def __init__(self, *args: Any, **kwargs: Any) -> None:
2288 super().__init__(*args, **kwargs)