Skip to content

Commit

Permalink
[AutoPR sql/resource-manager] [DO NOT MERGE]update swaggers for azure…
Browse files Browse the repository at this point in the history
… 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 #1950

* Generated from dbaf4f1b4a6a05888680e3b210813b8f2a1d98db (#1951)

Py version for SQL build

* Rebuild by #1950

* Generated from d2120e21ed90c81cfc47b30f813b1f3c0356e3ec

Update the cancel operations swagger on database and pool, and corresponding examples
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 28, 2018
1 parent 53172f4 commit e92a084
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/database_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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):
Expand All @@ -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

0 comments on commit e92a084

Please sign in to comment.