Skip to content

Commit

Permalink
Rebuild by #1950
Browse files Browse the repository at this point in the history
  • Loading branch information
AutorestCI committed Feb 28, 2018
1 parent 80265c4 commit e053c92
Show file tree
Hide file tree
Showing 14 changed files with 949 additions and 38 deletions.
34 changes: 28 additions & 6 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from .backup_long_term_retention_policy import BackupLongTermRetentionPolicy
from .backup_long_term_retention_vault import BackupLongTermRetentionVault
from .tracked_resource import TrackedResource
from .restore_point import RestorePoint
from .recoverable_database import RecoverableDatabase
from .restorable_dropped_database import RestorableDroppedDatabase
from .max_size_capability import MaxSizeCapability
Expand Down Expand Up @@ -64,6 +63,8 @@
from .server_usage import ServerUsage
from .database_usage import DatabaseUsage
from .database_blob_auditing_policy import DatabaseBlobAuditingPolicy
from .automatic_tuning_options import AutomaticTuningOptions
from .database_automatic_tuning import DatabaseAutomaticTuning
from .encryption_protector import EncryptionProtector
from .failover_group_read_write_endpoint import FailoverGroupReadWriteEndpoint
from .failover_group_read_only_endpoint import FailoverGroupReadOnlyEndpoint
Expand Down Expand Up @@ -93,11 +94,14 @@
from .virtual_network_rule import VirtualNetworkRule
from .database_operation import DatabaseOperation
from .resource_move_definition import ResourceMoveDefinition
from .automatic_tuning_server_options import AutomaticTuningServerOptions
from .server_automatic_tuning import ServerAutomaticTuning
from .server_dns_alias import ServerDnsAlias
from .server_dns_alias_acquisition import ServerDnsAliasAcquisition
from .restore_point import RestorePoint
from .create_database_restore_point_definition import CreateDatabaseRestorePointDefinition
from .backup_long_term_retention_policy_paged import BackupLongTermRetentionPolicyPaged
from .backup_long_term_retention_vault_paged import BackupLongTermRetentionVaultPaged
from .restore_point_paged import RestorePointPaged
from .recoverable_database_paged import RecoverableDatabasePaged
from .restorable_dropped_database_paged import RestorableDroppedDatabasePaged
from .server_paged import ServerPaged
Expand Down Expand Up @@ -135,9 +139,9 @@
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .database_operation_paged import DatabaseOperationPaged
from .server_dns_alias_paged import ServerDnsAliasPaged
from .restore_point_paged import RestorePointPaged
from .sql_management_client_enums import (
BackupLongTermRetentionPolicyState,
RestorePointType,
CapabilityStatus,
MaxSizeUnits,
PerformanceLevelUnit,
Expand Down Expand Up @@ -170,6 +174,10 @@
ReplicationRole,
ReplicationState,
BlobAuditingPolicyState,
AutomaticTuningMode,
AutomaticTuningOptionModeDesired,
AutomaticTuningOptionModeActual,
AutomaticTuningDisabledReason,
ServerKeyType,
ReadWriteEndpointFailoverPolicy,
ReadOnlyEndpointFailoverPolicy,
Expand All @@ -185,6 +193,9 @@
SyncMemberState,
VirtualNetworkRuleState,
ManagementOperationState,
AutomaticTuningServerMode,
AutomaticTuningServerReason,
RestorePointType,
)

__all__ = [
Expand All @@ -193,7 +204,6 @@
'BackupLongTermRetentionPolicy',
'BackupLongTermRetentionVault',
'TrackedResource',
'RestorePoint',
'RecoverableDatabase',
'RestorableDroppedDatabase',
'MaxSizeCapability',
Expand Down Expand Up @@ -243,6 +253,8 @@
'ServerUsage',
'DatabaseUsage',
'DatabaseBlobAuditingPolicy',
'AutomaticTuningOptions',
'DatabaseAutomaticTuning',
'EncryptionProtector',
'FailoverGroupReadWriteEndpoint',
'FailoverGroupReadOnlyEndpoint',
Expand Down Expand Up @@ -272,11 +284,14 @@
'VirtualNetworkRule',
'DatabaseOperation',
'ResourceMoveDefinition',
'AutomaticTuningServerOptions',
'ServerAutomaticTuning',
'ServerDnsAlias',
'ServerDnsAliasAcquisition',
'RestorePoint',
'CreateDatabaseRestorePointDefinition',
'BackupLongTermRetentionPolicyPaged',
'BackupLongTermRetentionVaultPaged',
'RestorePointPaged',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
'ServerPaged',
Expand Down Expand Up @@ -314,8 +329,8 @@
'VirtualNetworkRulePaged',
'DatabaseOperationPaged',
'ServerDnsAliasPaged',
'RestorePointPaged',
'BackupLongTermRetentionPolicyState',
'RestorePointType',
'CapabilityStatus',
'MaxSizeUnits',
'PerformanceLevelUnit',
Expand Down Expand Up @@ -348,6 +363,10 @@
'ReplicationRole',
'ReplicationState',
'BlobAuditingPolicyState',
'AutomaticTuningMode',
'AutomaticTuningOptionModeDesired',
'AutomaticTuningOptionModeActual',
'AutomaticTuningDisabledReason',
'ServerKeyType',
'ReadWriteEndpointFailoverPolicy',
'ReadOnlyEndpointFailoverPolicy',
Expand All @@ -363,4 +382,7 @@
'SyncMemberState',
'VirtualNetworkRuleState',
'ManagementOperationState',
'AutomaticTuningServerMode',
'AutomaticTuningServerReason',
'RestorePointType',
]
57 changes: 57 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/automatic_tuning_options.py
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
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
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 azure-mgmt-sql/azure/mgmt/sql/models/database_automatic_tuning.py
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
Loading

0 comments on commit e053c92

Please sign in to comment.