Skip to content
Merged
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 @@ -36,7 +36,8 @@ class DatabaseSecurityAlertPolicy(ProxyResource):
:type state: str or ~azure.mgmt.sql.models.SecurityAlertPolicyState
:param disabled_alerts: Specifies the semicolon-separated list of alerts
that are disabled, or empty string to disable no alerts. Possible values:
Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Usage_Anomaly.
Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly;
Data_Exfiltration; Unsafe_Action.
:type disabled_alerts: str
:param email_addresses: Specifies the semicolon-separated list of e-mail
addresses to which the alert is sent.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class DatabaseSecurityAlertPolicy(ProxyResource):
:type state: str or ~azure.mgmt.sql.models.SecurityAlertPolicyState
:param disabled_alerts: Specifies the semicolon-separated list of alerts
that are disabled, or empty string to disable no alerts. Possible values:
Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Usage_Anomaly.
Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly;
Data_Exfiltration; Unsafe_Action.
:type disabled_alerts: str
:param email_addresses: Specifies the semicolon-separated list of e-mail
addresses to which the alert is sent.
Expand Down
15 changes: 15 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ class ManagedInstance(TrackedResource):
:type v_cores: int
:param storage_size_in_gb: The maximum storage size in GB.
:type storage_size_in_gb: int
:ivar collation: Collation of the managed instance.
:vartype collation: str
:ivar dns_zone: The Dns Zone that the managed instance is in.
:vartype dns_zone: str
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
"""

_validation = {
Expand All @@ -65,6 +72,8 @@ class ManagedInstance(TrackedResource):
'location': {'required': True},
'fully_qualified_domain_name': {'readonly': True},
'state': {'readonly': True},
'collation': {'readonly': True},
'dns_zone': {'readonly': True},
}

_attribute_map = {
Expand All @@ -83,6 +92,9 @@ class ManagedInstance(TrackedResource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'v_cores': {'key': 'properties.vCores', 'type': 'int'},
'storage_size_in_gb': {'key': 'properties.storageSizeInGB', 'type': 'int'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -97,3 +109,6 @@ def __init__(self, **kwargs):
self.license_type = kwargs.get('license_type', None)
self.v_cores = kwargs.get('v_cores', None)
self.storage_size_in_gb = kwargs.get('storage_size_in_gb', None)
self.collation = None
self.dns_zone = None
self.dns_zone_partner = kwargs.get('dns_zone_partner', None)
17 changes: 16 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ class ManagedInstance(TrackedResource):
:type v_cores: int
:param storage_size_in_gb: The maximum storage size in GB.
:type storage_size_in_gb: int
:ivar collation: Collation of the managed instance.
:vartype collation: str
:ivar dns_zone: The Dns Zone that the managed instance is in.
:vartype dns_zone: str
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
"""

_validation = {
Expand All @@ -65,6 +72,8 @@ class ManagedInstance(TrackedResource):
'location': {'required': True},
'fully_qualified_domain_name': {'readonly': True},
'state': {'readonly': True},
'collation': {'readonly': True},
'dns_zone': {'readonly': True},
}

_attribute_map = {
Expand All @@ -83,9 +92,12 @@ class ManagedInstance(TrackedResource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'v_cores': {'key': 'properties.vCores', 'type': 'int'},
'storage_size_in_gb': {'key': 'properties.storageSizeInGB', 'type': 'int'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
}

def __init__(self, *, location: str, tags=None, identity=None, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, identity=None, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, dns_zone_partner: str=None, **kwargs) -> None:
super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.sku = sku
Expand All @@ -97,3 +109,6 @@ def __init__(self, *, location: str, tags=None, identity=None, sku=None, adminis
self.license_type = license_type
self.v_cores = v_cores
self.storage_size_in_gb = storage_size_in_gb
self.collation = None
self.dns_zone = None
self.dns_zone_partner = dns_zone_partner
15 changes: 15 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,22 @@ class ManagedInstanceUpdate(Model):
:type v_cores: int
:param storage_size_in_gb: The maximum storage size in GB.
:type storage_size_in_gb: int
:ivar collation: Collation of the managed instance.
:vartype collation: str
:ivar dns_zone: The Dns Zone that the managed instance is in.
:vartype dns_zone: str
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
:param tags: Resource tags.
:type tags: dict[str, str]
"""

_validation = {
'fully_qualified_domain_name': {'readonly': True},
'state': {'readonly': True},
'collation': {'readonly': True},
'dns_zone': {'readonly': True},
}

_attribute_map = {
Expand All @@ -60,6 +69,9 @@ class ManagedInstanceUpdate(Model):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'v_cores': {'key': 'properties.vCores', 'type': 'int'},
'storage_size_in_gb': {'key': 'properties.storageSizeInGB', 'type': 'int'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -74,4 +86,7 @@ def __init__(self, **kwargs):
self.license_type = kwargs.get('license_type', None)
self.v_cores = kwargs.get('v_cores', None)
self.storage_size_in_gb = kwargs.get('storage_size_in_gb', None)
self.collation = None
self.dns_zone = None
self.dns_zone_partner = kwargs.get('dns_zone_partner', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,22 @@ class ManagedInstanceUpdate(Model):
:type v_cores: int
:param storage_size_in_gb: The maximum storage size in GB.
:type storage_size_in_gb: int
:ivar collation: Collation of the managed instance.
:vartype collation: str
:ivar dns_zone: The Dns Zone that the managed instance is in.
:vartype dns_zone: str
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
:param tags: Resource tags.
:type tags: dict[str, str]
"""

_validation = {
'fully_qualified_domain_name': {'readonly': True},
'state': {'readonly': True},
'collation': {'readonly': True},
'dns_zone': {'readonly': True},
}

_attribute_map = {
Expand All @@ -60,10 +69,13 @@ class ManagedInstanceUpdate(Model):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'v_cores': {'key': 'properties.vCores', 'type': 'int'},
'storage_size_in_gb': {'key': 'properties.storageSizeInGB', 'type': 'int'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, tags=None, **kwargs) -> None:
def __init__(self, *, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, dns_zone_partner: str=None, tags=None, **kwargs) -> None:
super(ManagedInstanceUpdate, self).__init__(**kwargs)
self.sku = sku
self.fully_qualified_domain_name = None
Expand All @@ -74,4 +86,7 @@ def __init__(self, *, sku=None, administrator_login: str=None, administrator_log
self.license_type = license_type
self.v_cores = v_cores
self.storage_size_in_gb = storage_size_in_gb
self.collation = None
self.dns_zone = None
self.dns_zone_partner = dns_zone_partner
self.tags = tags
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ServerSecurityAlertPolicy(ProxyResource):
:type state: str or ~azure.mgmt.sql.models.SecurityAlertPolicyState
:param disabled_alerts: Specifies an array of alerts that are disabled.
Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
Access_Anomaly
Access_Anomaly, Data_Exfiltration, Unsafe_Action
:type disabled_alerts: list[str]
:param email_addresses: Specifies an array of e-mail addresses to which
the alert is sent.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ServerSecurityAlertPolicy(ProxyResource):
:type state: str or ~azure.mgmt.sql.models.SecurityAlertPolicyState
:param disabled_alerts: Specifies an array of alerts that are disabled.
Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
Access_Anomaly
Access_Anomaly, Data_Exfiltration, Unsafe_Action
:type disabled_alerts: list[str]
:param email_addresses: Specifies an array of e-mail addresses to which
the alert is sent.
Expand Down