Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR track2_azure-mgmt-alertsmanagement] [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2021-04-01 #17358

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.action_rules = ActionRulesOperations(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"chosen_version": "",
"total_api_version_list": ["2019-05-05-preview", "2019-06-01"],
"client": {
"name": "AlertsManagementClient",
"filename": "_alerts_management_client",
"description": "AlertsManagement Client.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": false,
"client_side_validation": true
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential, # type: \"AsyncTokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id"
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null
},
"operation_groups": {
"action_rules": "ActionRulesOperations",
"operations": "Operations",
"alerts": "AlertsOperations",
"smart_groups": "SmartGroupsOperations",
"smart_detector_alert_rules": "SmartDetectorAlertRulesOperations"
},
"operation_mixins": {
},
"sync_imports": "None",
"async_imports": "None"
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.action_rules = ActionRulesOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ class AzureResource(msrest.serialization.Model):
:param location: The resource location.
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -533,7 +533,7 @@ class AzureResource(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(
Expand Down Expand Up @@ -562,7 +562,7 @@ class AlertRule(AzureResource):
:param location: The resource location.
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
:param description: The alert rule description.
:type description: str
:param state: The alert rule state. Possible values include: "Enabled", "Disabled".
Expand Down Expand Up @@ -594,7 +594,7 @@ class AlertRule(AzureResource):
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'severity': {'key': 'properties.severity', 'type': 'str'},
Expand Down Expand Up @@ -632,7 +632,7 @@ class AlertRulePatchObject(msrest.serialization.Model):
:ivar name: The resource name.
:vartype name: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
:param description: The alert rule description.
:type description: str
:param state: The alert rule state. Possible values include: "Enabled", "Disabled".
Expand All @@ -659,7 +659,7 @@ class AlertRulePatchObject(msrest.serialization.Model):
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'severity': {'key': 'properties.severity', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ class AzureResource(msrest.serialization.Model):
:param location: The resource location.
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -579,14 +579,14 @@ class AzureResource(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(
self,
*,
location: Optional[str] = "global",
tags: Optional[object] = None,
tags: Optional[Dict[str, str]] = None,
**kwargs
):
super(AzureResource, self).__init__(**kwargs)
Expand All @@ -611,7 +611,7 @@ class AlertRule(AzureResource):
:param location: The resource location.
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
:param description: The alert rule description.
:type description: str
:param state: The alert rule state. Possible values include: "Enabled", "Disabled".
Expand Down Expand Up @@ -643,7 +643,7 @@ class AlertRule(AzureResource):
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'severity': {'key': 'properties.severity', 'type': 'str'},
Expand All @@ -658,7 +658,7 @@ def __init__(
self,
*,
location: Optional[str] = "global",
tags: Optional[object] = None,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
state: Optional[Union[str, "AlertRuleState"]] = None,
severity: Optional[Union[str, "Severity"]] = None,
Expand Down Expand Up @@ -692,7 +692,7 @@ class AlertRulePatchObject(msrest.serialization.Model):
:ivar name: The resource name.
:vartype name: str
:param tags: A set of tags. The resource tags.
:type tags: object
:type tags: dict[str, str]
:param description: The alert rule description.
:type description: str
:param state: The alert rule state. Possible values include: "Enabled", "Disabled".
Expand All @@ -719,7 +719,7 @@ class AlertRulePatchObject(msrest.serialization.Model):
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'severity': {'key': 'properties.severity', 'type': 'str'},
Expand All @@ -731,7 +731,7 @@ class AlertRulePatchObject(msrest.serialization.Model):
def __init__(
self,
*,
tags: Optional[object] = None,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
state: Optional[Union[str, "AlertRuleState"]] = None,
severity: Optional[Union[str, "Severity"]] = None,
Expand Down