-
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.
- Loading branch information
1 parent
80265c4
commit e053c92
Showing
14 changed files
with
949 additions
and
38 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
57 changes: 57 additions & 0 deletions
57
azure-mgmt-sql/azure/mgmt/sql/models/automatic_tuning_options.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,57 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class AutomaticTuningOptions(Model): | ||
"""Automatic tuning properties for individual advisors. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param desired_state: Automatic tuning option desired state. Possible | ||
values include: 'Off', 'On', 'Default' | ||
:type desired_state: str or | ||
~azure.mgmt.sql.models.AutomaticTuningOptionModeDesired | ||
:ivar actual_state: Automatic tuning option actual state. Possible values | ||
include: 'Off', 'On' | ||
:vartype actual_state: str or | ||
~azure.mgmt.sql.models.AutomaticTuningOptionModeActual | ||
:ivar reason_code: Reason code if desired and actual state are different. | ||
:vartype reason_code: int | ||
:ivar reason_desc: Reason description if desired and actual state are | ||
different. Possible values include: 'Default', 'Disabled', | ||
'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', | ||
'QueryStoreReadOnly', 'NotSupported' | ||
:vartype reason_desc: str or | ||
~azure.mgmt.sql.models.AutomaticTuningDisabledReason | ||
""" | ||
|
||
_validation = { | ||
'actual_state': {'readonly': True}, | ||
'reason_code': {'readonly': True}, | ||
'reason_desc': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'desired_state': {'key': 'desiredState', 'type': 'AutomaticTuningOptionModeDesired'}, | ||
'actual_state': {'key': 'actualState', 'type': 'AutomaticTuningOptionModeActual'}, | ||
'reason_code': {'key': 'reasonCode', 'type': 'int'}, | ||
'reason_desc': {'key': 'reasonDesc', 'type': 'AutomaticTuningDisabledReason'}, | ||
} | ||
|
||
def __init__(self, desired_state=None): | ||
super(AutomaticTuningOptions, self).__init__() | ||
self.desired_state = desired_state | ||
self.actual_state = None | ||
self.reason_code = None | ||
self.reason_desc = None |
56 changes: 56 additions & 0 deletions
56
azure-mgmt-sql/azure/mgmt/sql/models/automatic_tuning_server_options.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,56 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class AutomaticTuningServerOptions(Model): | ||
"""Automatic tuning properties for individual advisors. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param desired_state: Automatic tuning option desired state. Possible | ||
values include: 'Off', 'On', 'Default' | ||
:type desired_state: str or | ||
~azure.mgmt.sql.models.AutomaticTuningOptionModeDesired | ||
:ivar actual_state: Automatic tuning option actual state. Possible values | ||
include: 'Off', 'On' | ||
:vartype actual_state: str or | ||
~azure.mgmt.sql.models.AutomaticTuningOptionModeActual | ||
:ivar reason_code: Reason code if desired and actual state are different. | ||
:vartype reason_code: int | ||
:ivar reason_desc: Reason description if desired and actual state are | ||
different. Possible values include: 'Default', 'Disabled', | ||
'AutoConfigured' | ||
:vartype reason_desc: str or | ||
~azure.mgmt.sql.models.AutomaticTuningServerReason | ||
""" | ||
|
||
_validation = { | ||
'actual_state': {'readonly': True}, | ||
'reason_code': {'readonly': True}, | ||
'reason_desc': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'desired_state': {'key': 'desiredState', 'type': 'AutomaticTuningOptionModeDesired'}, | ||
'actual_state': {'key': 'actualState', 'type': 'AutomaticTuningOptionModeActual'}, | ||
'reason_code': {'key': 'reasonCode', 'type': 'int'}, | ||
'reason_desc': {'key': 'reasonDesc', 'type': 'AutomaticTuningServerReason'}, | ||
} | ||
|
||
def __init__(self, desired_state=None): | ||
super(AutomaticTuningServerOptions, self).__init__() | ||
self.desired_state = desired_state | ||
self.actual_state = None | ||
self.reason_code = None | ||
self.reason_desc = None |
33 changes: 33 additions & 0 deletions
33
azure-mgmt-sql/azure/mgmt/sql/models/create_database_restore_point_definition.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,33 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class CreateDatabaseRestorePointDefinition(Model): | ||
"""Contains the information necessary to perform a create database restore | ||
point operation. | ||
:param restore_point_label: The restore point label to apply | ||
:type restore_point_label: str | ||
""" | ||
|
||
_validation = { | ||
'restore_point_label': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'restore_point_label': {'key': 'restorePointLabel', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, restore_point_label): | ||
super(CreateDatabaseRestorePointDefinition, self).__init__() | ||
self.restore_point_label = restore_point_label |
57 changes: 57 additions & 0 deletions
57
azure-mgmt-sql/azure/mgmt/sql/models/database_automatic_tuning.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,57 @@ | ||
# 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 .proxy_resource import ProxyResource | ||
|
||
|
||
class DatabaseAutomaticTuning(ProxyResource): | ||
"""Database-level Automatic Tuning. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param desired_state: Automatic tuning desired state. Possible values | ||
include: 'Inherit', 'Custom', 'Auto', 'Unspecified' | ||
:type desired_state: str or ~azure.mgmt.sql.models.AutomaticTuningMode | ||
:ivar actual_state: Automatic tuning actual state. Possible values | ||
include: 'Inherit', 'Custom', 'Auto', 'Unspecified' | ||
:vartype actual_state: str or ~azure.mgmt.sql.models.AutomaticTuningMode | ||
:param options: Automatic tuning options definition. | ||
:type options: dict[str, ~azure.mgmt.sql.models.AutomaticTuningOptions] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'actual_state': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'desired_state': {'key': 'properties.desiredState', 'type': 'AutomaticTuningMode'}, | ||
'actual_state': {'key': 'properties.actualState', 'type': 'AutomaticTuningMode'}, | ||
'options': {'key': 'properties.options', 'type': '{AutomaticTuningOptions}'}, | ||
} | ||
|
||
def __init__(self, desired_state=None, options=None): | ||
super(DatabaseAutomaticTuning, self).__init__() | ||
self.desired_state = desired_state | ||
self.actual_state = None | ||
self.options = options |
Oops, something went wrong.