-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] Added support for dropped databases on …
…Managed Instance (#4103) * Generated from b69193acc6a531e053151c7ba4aaffb07cb218a0 Added support for dropped databases on Managed Instance * Generated from 676178334abdb40ac47516783d789272008e8488 Adding support for dropped databases on Managed Instance
- Loading branch information
1 parent
565455e
commit 202afff
Showing
8 changed files
with
777 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
azure-mgmt-sql/azure/mgmt/sql/models/restorable_dropped_managed_database.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# 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 .tracked_resource import TrackedResource | ||
|
||
|
||
class RestorableDroppedManagedDatabase(TrackedResource): | ||
"""A restorable dropped managed database 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 location: Required. Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:ivar database_name: The name of the database. | ||
:vartype database_name: str | ||
:ivar creation_date: The creation date of the database (ISO8601 format). | ||
:vartype creation_date: datetime | ||
:ivar deletion_date: The deletion date of the database (ISO8601 format). | ||
:vartype deletion_date: datetime | ||
:ivar earliest_restore_date: The earliest restore date of the database | ||
(ISO8601 format). | ||
:vartype earliest_restore_date: datetime | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'location': {'required': True}, | ||
'database_name': {'readonly': True}, | ||
'creation_date': {'readonly': True}, | ||
'deletion_date': {'readonly': True}, | ||
'earliest_restore_date': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'database_name': {'key': 'properties.databaseName', 'type': 'str'}, | ||
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, | ||
'deletion_date': {'key': 'properties.deletionDate', 'type': 'iso-8601'}, | ||
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(RestorableDroppedManagedDatabase, self).__init__(**kwargs) | ||
self.database_name = None | ||
self.creation_date = None | ||
self.deletion_date = None | ||
self.earliest_restore_date = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-sql/azure/mgmt/sql/models/restorable_dropped_managed_database_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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 msrest.paging import Paged | ||
|
||
|
||
class RestorableDroppedManagedDatabasePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`RestorableDroppedManagedDatabase <azure.mgmt.sql.models.RestorableDroppedManagedDatabase>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[RestorableDroppedManagedDatabase]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(RestorableDroppedManagedDatabasePaged, self).__init__(*args, **kwargs) |
72 changes: 72 additions & 0 deletions
72
azure-mgmt-sql/azure/mgmt/sql/models/restorable_dropped_managed_database_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# 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 .tracked_resource_py3 import TrackedResource | ||
|
||
|
||
class RestorableDroppedManagedDatabase(TrackedResource): | ||
"""A restorable dropped managed database 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 location: Required. Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:ivar database_name: The name of the database. | ||
:vartype database_name: str | ||
:ivar creation_date: The creation date of the database (ISO8601 format). | ||
:vartype creation_date: datetime | ||
:ivar deletion_date: The deletion date of the database (ISO8601 format). | ||
:vartype deletion_date: datetime | ||
:ivar earliest_restore_date: The earliest restore date of the database | ||
(ISO8601 format). | ||
:vartype earliest_restore_date: datetime | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'location': {'required': True}, | ||
'database_name': {'readonly': True}, | ||
'creation_date': {'readonly': True}, | ||
'deletion_date': {'readonly': True}, | ||
'earliest_restore_date': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'database_name': {'key': 'properties.databaseName', 'type': 'str'}, | ||
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, | ||
'deletion_date': {'key': 'properties.deletionDate', 'type': 'iso-8601'}, | ||
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, | ||
} | ||
|
||
def __init__(self, *, location: str, tags=None, **kwargs) -> None: | ||
super(RestorableDroppedManagedDatabase, self).__init__(location=location, tags=tags, **kwargs) | ||
self.database_name = None | ||
self.creation_date = None | ||
self.deletion_date = None | ||
self.earliest_restore_date = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.