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
4 changes: 2 additions & 2 deletions sdk/sql/azure-mgmt-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "a87d4d8ae70c7603c35a911f27efd774bd0d9ff8",
"commit": "89230a9063c81d13fdc00619dc20b4ebcdfcae82",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/sql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/sql/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
DatabaseSqlVulnerabilityAssessmentsSettingsOperations operations
:vartype database_sql_vulnerability_assessments_settings:
azure.mgmt.sql.operations.DatabaseSqlVulnerabilityAssessmentsSettingsOperations
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.sql.operations.ServersOperations
:ivar failover_groups: FailoverGroupsOperations operations
:vartype failover_groups: azure.mgmt.sql.operations.FailoverGroupsOperations
:ivar instance_pools: InstancePoolsOperations operations
Expand All @@ -594,8 +596,6 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:ivar long_term_retention_policies: LongTermRetentionPoliciesOperations operations
:vartype long_term_retention_policies:
azure.mgmt.sql.operations.LongTermRetentionPoliciesOperations
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.sql.operations.ServersOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
Expand Down Expand Up @@ -1019,6 +1019,7 @@ def __init__(
self.database_sql_vulnerability_assessments_settings = DatabaseSqlVulnerabilityAssessmentsSettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize)
self.failover_groups = FailoverGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.instance_pools = InstancePoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
Expand All @@ -1027,7 +1028,6 @@ def __init__(
self.long_term_retention_policies = LongTermRetentionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "4.0.0b14"
VERSION = "0.9.0"
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,8 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
DatabaseSqlVulnerabilityAssessmentsSettingsOperations operations
:vartype database_sql_vulnerability_assessments_settings:
azure.mgmt.sql.aio.operations.DatabaseSqlVulnerabilityAssessmentsSettingsOperations
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
:ivar failover_groups: FailoverGroupsOperations operations
:vartype failover_groups: azure.mgmt.sql.aio.operations.FailoverGroupsOperations
:ivar instance_pools: InstancePoolsOperations operations
Expand All @@ -600,8 +602,6 @@ class SqlManagementClient: # pylint: disable=client-accepts-api-version-keyword
:ivar long_term_retention_policies: LongTermRetentionPoliciesOperations operations
:vartype long_term_retention_policies:
azure.mgmt.sql.aio.operations.LongTermRetentionPoliciesOperations
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
Expand Down Expand Up @@ -1025,6 +1025,7 @@ def __init__(
self.database_sql_vulnerability_assessments_settings = DatabaseSqlVulnerabilityAssessmentsSettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize)
self.failover_groups = FailoverGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.instance_pools = InstancePoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
Expand All @@ -1033,7 +1034,6 @@ def __init__(
self.long_term_retention_policies = LongTermRetentionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@
from ._database_sql_vulnerability_assessments_settings_operations import (
DatabaseSqlVulnerabilityAssessmentsSettingsOperations,
)
from ._servers_operations import ServersOperations
from ._failover_groups_operations import FailoverGroupsOperations
from ._instance_pools_operations import InstancePoolsOperations
from ._long_term_retention_backups_operations import LongTermRetentionBackupsOperations
from ._long_term_retention_policies_operations import LongTermRetentionPoliciesOperations
from ._servers_operations import ServersOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down Expand Up @@ -337,11 +337,11 @@
"DatabaseSqlVulnerabilityAssessmentScanResultOperations",
"DatabaseSqlVulnerabilityAssessmentScansOperations",
"DatabaseSqlVulnerabilityAssessmentsSettingsOperations",
"ServersOperations",
"FailoverGroupsOperations",
"InstancePoolsOperations",
"LongTermRetentionBackupsOperations",
"LongTermRetentionPoliciesOperations",
"ServersOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -245,8 +244,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -343,8 +341,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -415,8 +412,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = self._deserialize("LongTermRetentionBackup", pipeline_response)

Expand Down Expand Up @@ -474,8 +470,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

if cls:
return cls(pipeline_response, None, {})
Expand Down Expand Up @@ -864,8 +859,7 @@ async def _copy_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand Down Expand Up @@ -1112,8 +1106,7 @@ async def _update_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand Down Expand Up @@ -1386,8 +1379,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -1485,8 +1477,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -1588,8 +1579,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -1665,8 +1655,7 @@ async def get_by_resource_group(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = self._deserialize("LongTermRetentionBackup", pipeline_response)

Expand Down Expand Up @@ -1726,8 +1715,7 @@ async def _delete_by_resource_group_initial( # pylint: disable=inconsistent-ret

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

if cls:
return cls(pipeline_response, None, {})
Expand Down Expand Up @@ -2138,8 +2126,7 @@ async def _copy_by_resource_group_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand Down Expand Up @@ -2401,8 +2388,7 @@ async def _update_by_resource_group_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -206,8 +205,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = self._deserialize("LongTermRetentionPolicy", pipeline_response)

Expand Down Expand Up @@ -278,8 +276,7 @@ async def _create_or_update_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand All @@ -306,7 +303,7 @@ async def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.LongTermRetentionPolicy]:
"""Set or update a database's long term retention policy.
"""Sets a database's long term retention policy.

:param resource_group_name: The name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal. Required.
Expand Down Expand Up @@ -348,7 +345,7 @@ async def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.LongTermRetentionPolicy]:
"""Set or update a database's long term retention policy.
"""Sets a database's long term retention policy.

:param resource_group_name: The name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal. Required.
Expand Down Expand Up @@ -388,7 +385,7 @@ async def begin_create_or_update(
parameters: Union[_models.LongTermRetentionPolicy, IO],
**kwargs: Any
) -> AsyncLROPoller[_models.LongTermRetentionPolicy]:
"""Set or update a database's long term retention policy.
"""Sets a database's long term retention policy.

:param resource_group_name: The name of the resource group that contains the resource. You can
obtain this value from the Azure Resource Manager API or the portal. Required.
Expand Down
Loading