Skip to content
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
1 change: 0 additions & 1 deletion azure-mgmt-sql/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-mgmt-sql/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure SQL Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-sql/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-sql/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
14 changes: 7 additions & 7 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
from .complete_database_restore_definition_py3 import CompleteDatabaseRestoreDefinition
from .managed_database_py3 import ManagedDatabase
from .managed_database_update_py3 import ManagedDatabaseUpdate
from .sensitivity_label_py3 import SensitivityLabel
from .automatic_tuning_server_options_py3 import AutomaticTuningServerOptions
from .server_automatic_tuning_py3 import ServerAutomaticTuning
from .server_dns_alias_py3 import ServerDnsAlias
Expand Down Expand Up @@ -152,6 +151,7 @@
from .tde_certificate_py3 import TdeCertificate
from .managed_instance_key_py3 import ManagedInstanceKey
from .managed_instance_encryption_protector_py3 import ManagedInstanceEncryptionProtector
from .interface_endpoint_profile_py3 import InterfaceEndpointProfile
except (SyntaxError, ImportError):
from .recoverable_database import RecoverableDatabase
from .restorable_dropped_database import RestorableDroppedDatabase
Expand Down Expand Up @@ -250,7 +250,6 @@
from .complete_database_restore_definition import CompleteDatabaseRestoreDefinition
from .managed_database import ManagedDatabase
from .managed_database_update import ManagedDatabaseUpdate
from .sensitivity_label import SensitivityLabel
from .automatic_tuning_server_options import AutomaticTuningServerOptions
from .server_automatic_tuning import ServerAutomaticTuning
from .server_dns_alias import ServerDnsAlias
Expand Down Expand Up @@ -295,6 +294,7 @@
from .tde_certificate import TdeCertificate
from .managed_instance_key import ManagedInstanceKey
from .managed_instance_encryption_protector import ManagedInstanceEncryptionProtector
from .interface_endpoint_profile import InterfaceEndpointProfile
from .recoverable_database_paged import RecoverableDatabasePaged
from .restorable_dropped_database_paged import RestorableDroppedDatabasePaged
from .server_paged import ServerPaged
Expand Down Expand Up @@ -340,7 +340,6 @@
from .job_version_paged import JobVersionPaged
from .long_term_retention_backup_paged import LongTermRetentionBackupPaged
from .managed_database_paged import ManagedDatabasePaged
from .sensitivity_label_paged import SensitivityLabelPaged
from .server_dns_alias_paged import ServerDnsAliasPaged
from .restore_point_paged import RestorePointPaged
from .database_operation_paged import DatabaseOperationPaged
Expand All @@ -350,6 +349,7 @@
from .backup_short_term_retention_policy_paged import BackupShortTermRetentionPolicyPaged
from .managed_instance_key_paged import ManagedInstanceKeyPaged
from .managed_instance_encryption_protector_paged import ManagedInstanceEncryptionProtectorPaged
from .interface_endpoint_profile_paged import InterfaceEndpointProfilePaged
from .sql_management_client_enums import (
CheckNameAvailabilityReason,
ServerConnectionType,
Expand Down Expand Up @@ -424,9 +424,9 @@
VulnerabilityAssessmentScanTriggerType,
VulnerabilityAssessmentScanState,
InstanceFailoverGroupReplicationRole,
InterfaceEndpointProfileStateType,
LongTermRetentionDatabaseState,
VulnerabilityAssessmentPolicyBaselineName,
SensitivityLabelSource,
CapabilityGroup,
)

Expand Down Expand Up @@ -528,7 +528,6 @@
'CompleteDatabaseRestoreDefinition',
'ManagedDatabase',
'ManagedDatabaseUpdate',
'SensitivityLabel',
'AutomaticTuningServerOptions',
'ServerAutomaticTuning',
'ServerDnsAlias',
Expand Down Expand Up @@ -573,6 +572,7 @@
'TdeCertificate',
'ManagedInstanceKey',
'ManagedInstanceEncryptionProtector',
'InterfaceEndpointProfile',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
'ServerPaged',
Expand Down Expand Up @@ -618,7 +618,6 @@
'JobVersionPaged',
'LongTermRetentionBackupPaged',
'ManagedDatabasePaged',
'SensitivityLabelPaged',
'ServerDnsAliasPaged',
'RestorePointPaged',
'DatabaseOperationPaged',
Expand All @@ -628,6 +627,7 @@
'BackupShortTermRetentionPolicyPaged',
'ManagedInstanceKeyPaged',
'ManagedInstanceEncryptionProtectorPaged',
'InterfaceEndpointProfilePaged',
'CheckNameAvailabilityReason',
'ServerConnectionType',
'SecurityAlertPolicyState',
Expand Down Expand Up @@ -701,8 +701,8 @@
'VulnerabilityAssessmentScanTriggerType',
'VulnerabilityAssessmentScanState',
'InstanceFailoverGroupReplicationRole',
'InterfaceEndpointProfileStateType',
'LongTermRetentionDatabaseState',
'VulnerabilityAssessmentPolicyBaselineName',
'SensitivityLabelSource',
'CapabilityGroup',
]
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
64 changes: 64 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/interface_endpoint_profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_resource import ProxyResource


class InterfaceEndpointProfile(ProxyResource):
"""A interface endpoint profile resource.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param virtual_network_subnet_id: Required. The ARM resource id of the
virtual network subnet.
:type virtual_network_subnet_id: str
:ivar private_ip: The Private ip associated with the interface endpoint
profile
:vartype private_ip: str
:ivar state: State of the interface endpoint profile. Possible values
include: 'Initializing', 'InProgress', 'Ready', 'Failed', 'Deleting',
'Unknown'
:vartype state: str or
~azure.mgmt.sql.models.InterfaceEndpointProfileStateType
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'virtual_network_subnet_id': {'required': True},
'private_ip': {'readonly': True},
'state': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'},
'private_ip': {'key': 'properties.privateIp', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
}

def __init__(self, **kwargs):
super(InterfaceEndpointProfile, self).__init__(**kwargs)
self.virtual_network_subnet_id = kwargs.get('virtual_network_subnet_id', None)
self.private_ip = None
self.state = None
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


class SensitivityLabelPaged(Paged):
class InterfaceEndpointProfilePaged(Paged):
"""
A paging container for iterating over a list of :class:`SensitivityLabel <azure.mgmt.sql.models.SensitivityLabel>` object
A paging container for iterating over a list of :class:`InterfaceEndpointProfile <azure.mgmt.sql.models.InterfaceEndpointProfile>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[SensitivityLabel]'}
'current_page': {'key': 'value', 'type': '[InterfaceEndpointProfile]'}
}

def __init__(self, *args, **kwargs):

super(SensitivityLabelPaged, self).__init__(*args, **kwargs)
super(InterfaceEndpointProfilePaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_resource_py3 import ProxyResource


class InterfaceEndpointProfile(ProxyResource):
"""A interface endpoint profile resource.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param virtual_network_subnet_id: Required. The ARM resource id of the
virtual network subnet.
:type virtual_network_subnet_id: str
:ivar private_ip: The Private ip associated with the interface endpoint
profile
:vartype private_ip: str
:ivar state: State of the interface endpoint profile. Possible values
include: 'Initializing', 'InProgress', 'Ready', 'Failed', 'Deleting',
'Unknown'
:vartype state: str or
~azure.mgmt.sql.models.InterfaceEndpointProfileStateType
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'virtual_network_subnet_id': {'required': True},
'private_ip': {'readonly': True},
'state': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'},
'private_ip': {'key': 'properties.privateIp', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
}

def __init__(self, *, virtual_network_subnet_id: str, **kwargs) -> None:
super(InterfaceEndpointProfile, self).__init__(**kwargs)
self.virtual_network_subnet_id = virtual_network_subnet_id
self.private_ip = None
self.state = None
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
Loading