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
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
17 changes: 7 additions & 10 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@
from .instance_failover_group_py3 import InstanceFailoverGroup
from .backup_short_term_retention_policy_py3 import BackupShortTermRetentionPolicy
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 @@ -293,8 +292,7 @@
from .instance_failover_group import InstanceFailoverGroup
from .backup_short_term_retention_policy import BackupShortTermRetentionPolicy
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 @@ -348,8 +346,7 @@
from .vulnerability_assessment_scan_record_paged import VulnerabilityAssessmentScanRecordPaged
from .instance_failover_group_paged import InstanceFailoverGroupPaged
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,6 +421,7 @@
VulnerabilityAssessmentScanTriggerType,
VulnerabilityAssessmentScanState,
InstanceFailoverGroupReplicationRole,
InterfaceEndpointProfileStateType,
LongTermRetentionDatabaseState,
VulnerabilityAssessmentPolicyBaselineName,
SensitivityLabelSource,
Expand Down Expand Up @@ -571,8 +569,7 @@
'InstanceFailoverGroup',
'BackupShortTermRetentionPolicy',
'TdeCertificate',
'ManagedInstanceKey',
'ManagedInstanceEncryptionProtector',
'InterfaceEndpointProfile',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
'ServerPaged',
Expand Down Expand Up @@ -626,8 +623,7 @@
'VulnerabilityAssessmentScanRecordPaged',
'InstanceFailoverGroupPaged',
'BackupShortTermRetentionPolicyPaged',
'ManagedInstanceKeyPaged',
'ManagedInstanceEncryptionProtectorPaged',
'InterfaceEndpointProfilePaged',
'CheckNameAvailabilityReason',
'ServerConnectionType',
'SecurityAlertPolicyState',
Expand Down Expand Up @@ -701,6 +697,7 @@
'VulnerabilityAssessmentScanTriggerType',
'VulnerabilityAssessmentScanState',
'InstanceFailoverGroupReplicationRole',
'InterfaceEndpointProfileStateType',
'LongTermRetentionDatabaseState',
'VulnerabilityAssessmentPolicyBaselineName',
'SensitivityLabelSource',
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 ManagedInstanceKeyPaged(Paged):
class InterfaceEndpointProfilePaged(Paged):
"""
A paging container for iterating over a list of :class:`ManagedInstanceKey <azure.mgmt.sql.models.ManagedInstanceKey>` 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': '[ManagedInstanceKey]'}
'current_page': {'key': 'value', 'type': '[InterfaceEndpointProfile]'}
}

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

super(ManagedInstanceKeyPaged, 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

This file was deleted.

This file was deleted.

This file was deleted.

Loading