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 azure-mgmt-rdbms] Set publicNetworkAccess to read only in MySQL Flexible Server swagger #13688

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 @@ -24,8 +24,8 @@
from .operations import ServerAdministratorsOperations
from .operations import LocationBasedPerformanceTierOperations
from .operations import CheckNameAvailabilityOperations
from .operations import ServerSecurityAlertPoliciesOperations
from .operations import Operations
from .operations import ServerSecurityAlertPoliciesOperations
from .operations import QueryTextsOperations
from .operations import TopQueryStatisticsOperations
from .operations import WaitStatisticsOperations
Expand Down Expand Up @@ -65,10 +65,10 @@ class MySQLManagementClient(MySQLManagementClientOperationsMixin, SDKClient):
:vartype location_based_performance_tier: azure.mgmt.rdbms.mysql.operations.LocationBasedPerformanceTierOperations
:ivar check_name_availability: CheckNameAvailability operations
:vartype check_name_availability: azure.mgmt.rdbms.mysql.operations.CheckNameAvailabilityOperations
:ivar server_security_alert_policies: ServerSecurityAlertPolicies operations
:vartype server_security_alert_policies: azure.mgmt.rdbms.mysql.operations.ServerSecurityAlertPoliciesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.mysql.operations.Operations
:ivar server_security_alert_policies: ServerSecurityAlertPolicies operations
:vartype server_security_alert_policies: azure.mgmt.rdbms.mysql.operations.ServerSecurityAlertPoliciesOperations
:ivar query_texts: QueryTexts operations
:vartype query_texts: azure.mgmt.rdbms.mysql.operations.QueryTextsOperations
:ivar top_query_statistics: TopQueryStatistics operations
Expand Down Expand Up @@ -128,10 +128,10 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.check_name_availability = CheckNameAvailabilityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.query_texts = QueryTextsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.top_query_statistics = TopQueryStatisticsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from ._models_py3 import ServerPropertiesForRestore
from ._models_py3 import ServerSecurityAlertPolicy
from ._models_py3 import ServerUpdateParameters
from ._models_py3 import ServerUpgradeParameters
from ._models_py3 import Sku
from ._models_py3 import StorageProfile
from ._models_py3 import TagsObject
Expand Down Expand Up @@ -103,6 +104,7 @@
from ._models import ServerPropertiesForRestore
from ._models import ServerSecurityAlertPolicy
from ._models import ServerUpdateParameters
from ._models import ServerUpgradeParameters
from ._models import Sku
from ._models import StorageProfile
from ._models import TagsObject
Expand Down Expand Up @@ -189,6 +191,7 @@
'ServerPropertiesForRestore',
'ServerSecurityAlertPolicy',
'ServerUpdateParameters',
'ServerUpgradeParameters',
'Sku',
'StorageProfile',
'TagsObject',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, **kwargs):
class CloudError(Model):
"""An error response from the Batch service.

:param error:
:param error: Error message
:type error: ~azure.mgmt.rdbms.mysql.models.ErrorResponse
"""

Expand Down Expand Up @@ -1979,11 +1979,29 @@ def __init__(self, **kwargs):
self.tags = kwargs.get('tags', None)


class ServerUpgradeParameters(Model):
"""ServerUpgradeParameters.

:param target_server_version: Represents an server storage profile.
:type target_server_version: str
"""

_attribute_map = {
'target_server_version': {'key': 'properties.targetServerVersion', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ServerUpgradeParameters, self).__init__(**kwargs)
self.target_server_version = kwargs.get('target_server_version', None)


class Sku(Model):
"""Billing information related properties of a server.

:param name: The name of the sku, typically, tier + family + cores, e.g.
B_Gen4_1, GP_Gen5_8.
All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the sku, typically, tier + family +
cores, e.g. B_Gen4_1, GP_Gen5_8.
:type name: str
:param tier: The tier of the particular SKU, e.g. Basic. Possible values
include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'
Expand All @@ -1998,6 +2016,7 @@ class Sku(Model):
"""

_validation = {
'name': {'required': True},
'capacity': {'minimum': 0},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, **kwargs) -> None:
class CloudError(Model):
"""An error response from the Batch service.

:param error:
:param error: Error message
:type error: ~azure.mgmt.rdbms.mysql.models.ErrorResponse
"""

Expand Down Expand Up @@ -1979,11 +1979,29 @@ def __init__(self, *, identity=None, sku=None, storage_profile=None, administrat
self.tags = tags


class ServerUpgradeParameters(Model):
"""ServerUpgradeParameters.

:param target_server_version: Represents an server storage profile.
:type target_server_version: str
"""

_attribute_map = {
'target_server_version': {'key': 'properties.targetServerVersion', 'type': 'str'},
}

def __init__(self, *, target_server_version: str=None, **kwargs) -> None:
super(ServerUpgradeParameters, self).__init__(**kwargs)
self.target_server_version = target_server_version


class Sku(Model):
"""Billing information related properties of a server.

:param name: The name of the sku, typically, tier + family + cores, e.g.
B_Gen4_1, GP_Gen5_8.
All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the sku, typically, tier + family +
cores, e.g. B_Gen4_1, GP_Gen5_8.
:type name: str
:param tier: The tier of the particular SKU, e.g. Basic. Possible values
include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'
Expand All @@ -1998,6 +2016,7 @@ class Sku(Model):
"""

_validation = {
'name': {'required': True},
'capacity': {'minimum': 0},
}

Expand All @@ -2009,7 +2028,7 @@ class Sku(Model):
'family': {'key': 'family', 'type': 'str'},
}

def __init__(self, *, name: str=None, tier=None, capacity: int=None, size: str=None, family: str=None, **kwargs) -> None:
def __init__(self, *, name: str, tier=None, capacity: int=None, size: str=None, family: str=None, **kwargs) -> None:
super(Sku, self).__init__(**kwargs)
self.name = name
self.tier = tier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class MinimalTlsVersionEnum(str, Enum):

class InfrastructureEncryption(str, Enum):

enabled = "Enabled"
disabled = "Disabled"
enabled = "Enabled" #: Default value for single layer of encryption for data at rest.
disabled = "Disabled" #: Additional (2nd) layer of encryption for data at rest


class PublicNetworkAccessEnum(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from ._server_administrators_operations import ServerAdministratorsOperations
from ._location_based_performance_tier_operations import LocationBasedPerformanceTierOperations
from ._check_name_availability_operations import CheckNameAvailabilityOperations
from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
from ._operations import Operations
from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
from ._query_texts_operations import QueryTextsOperations
from ._top_query_statistics_operations import TopQueryStatisticsOperations
from ._wait_statistics_operations import WaitStatisticsOperations
Expand All @@ -44,8 +44,8 @@
'ServerAdministratorsOperations',
'LocationBasedPerformanceTierOperations',
'CheckNameAvailabilityOperations',
'ServerSecurityAlertPoliciesOperations',
'Operations',
'ServerSecurityAlertPoliciesOperations',
'QueryTextsOperations',
'TopQueryStatisticsOperations',
'WaitStatisticsOperations',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ def execute(
return client_raw_response

return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability'}
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability'}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}'}

def get(
self, resource_group_name, server_name, configuration_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -214,7 +214,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}'}
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}'}

def list_by_server(
self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -287,4 +287,4 @@ def internal_paging(next_link=None):
deserialized = models.ConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations'}
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations'}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'}


def _delete_initial(
Expand Down Expand Up @@ -235,7 +235,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'}
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'}

def get(
self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -300,7 +300,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'}
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'}

def list_by_server(
self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -373,4 +373,4 @@ def internal_paging(next_link=None):
deserialized = models.DatabasePaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases'}
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases'}
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}


def _delete_initial(
Expand Down Expand Up @@ -237,7 +237,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}

def get(
self, resource_group_name, server_name, firewall_rule_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -302,7 +302,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'}

def list_by_server(
self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -375,4 +375,4 @@ def internal_paging(next_link=None):
deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules'}
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules'}
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ def internal_paging(next_link=None):
deserialized = models.PerformanceTierPropertiesPaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers'}
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/locations/{locationName}/performanceTiers'}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def internal_paging(next_link=None):
deserialized = models.LogFilePaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles'}
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/logFiles'}
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ def list(
return client_raw_response

return deserialized
list.metadata = {'url': '/providers/Microsoft.DBforMySQL/operations'}
list.metadata = {'url': '/providers/Microsoft.DBForMySQL/operations'}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def internal_paging(next_link=None):
deserialized = models.ServerPaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/replicas'}
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/replicas'}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'}
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'}


def _create_or_update_initial(
Expand Down Expand Up @@ -208,7 +208,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'}


def _delete_initial(
Expand Down Expand Up @@ -288,7 +288,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'}
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'}

def list(
self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -361,4 +361,4 @@ def internal_paging(next_link=None):
deserialized = models.ServerAdministratorResourcePaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/administrators'}
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/administrators'}
Loading