From 5e9d38b7329d555bdd2f806a6cd228439db679c6 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 28 Feb 2018 11:07:34 -0800 Subject: [PATCH] [AutoPR sql/resource-manager] [DO NOT MERGE]update swaggers for azure elastic pool operation (#2052) * Extract databases, elastic pools, and check name availability from sql.core.json (#1829) * Generated from 5a6fe19cfbfc33daf461404f3e77978e398bec49 Extract checkNameAvailability.json from sql.core.json * Generated from b1f5dd6f842a458a6c117a2a5da68a7f5d895d77 Fixed cross-file references * Update version.py * Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/1950 * Generated from dbaf4f1b4a6a05888680e3b210813b8f2a1d98db (#1951) Py version for SQL build * Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/1950 * Generated from d2120e21ed90c81cfc47b30f813b1f3c0356e3ec Update the cancel operations swagger on database and pool, and corresponding examples --- .../azure/mgmt/sql/models/database_operation.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/database_operation.py b/azure-mgmt-sql/azure/mgmt/sql/models/database_operation.py index bb748f8757b9..e33ba1c29bcc 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/database_operation.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/database_operation.py @@ -48,6 +48,13 @@ class DatabaseOperation(ProxyResource): :vartype error_severity: int :ivar is_user_error: Whether or not the error is a user error. :vartype is_user_error: bool + :ivar estimated_completion_time: The estimated completion time of the + operation. + :vartype estimated_completion_time: datetime + :ivar description: The operation description. + :vartype description: str + :ivar is_cancellable: Whether the operation can be cancelled. + :vartype is_cancellable: bool """ _validation = { @@ -65,6 +72,9 @@ class DatabaseOperation(ProxyResource): 'error_description': {'readonly': True}, 'error_severity': {'readonly': True}, 'is_user_error': {'readonly': True}, + 'estimated_completion_time': {'readonly': True}, + 'description': {'readonly': True}, + 'is_cancellable': {'readonly': True}, } _attribute_map = { @@ -82,6 +92,9 @@ class DatabaseOperation(ProxyResource): 'error_description': {'key': 'properties.errorDescription', 'type': 'str'}, 'error_severity': {'key': 'properties.errorSeverity', 'type': 'int'}, 'is_user_error': {'key': 'properties.isUserError', 'type': 'bool'}, + 'estimated_completion_time': {'key': 'properties.estimatedCompletionTime', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'is_cancellable': {'key': 'properties.isCancellable', 'type': 'bool'}, } def __init__(self): @@ -97,3 +110,6 @@ def __init__(self): self.error_description = None self.error_severity = None self.is_user_error = None + self.estimated_completion_time = None + self.description = None + self.is_cancellable = None