Skip to content

Commit

Permalink
Generated from a6e24f1e4205f46b865a197f080aaea9ec0994b0 (#2239)
Browse files Browse the repository at this point in the history
Error descriptions changed in instanceFailoverGroup swagger
  • Loading branch information
AutorestCI authored Mar 20, 2018
1 parent 7acbb70 commit 20384f2
Show file tree
Hide file tree
Showing 15 changed files with 521 additions and 983 deletions.
38 changes: 18 additions & 20 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
# --------------------------------------------------------------------------

from .resource import Resource
from .tracked_resource import TrackedResource
from .proxy_resource import ProxyResource
from .backup_long_term_retention_policy import BackupLongTermRetentionPolicy
from .backup_long_term_retention_vault import BackupLongTermRetentionVault
from .tracked_resource import TrackedResource
from .recoverable_database import RecoverableDatabase
from .restorable_dropped_database import RestorableDroppedDatabase
from .max_size_capability import MaxSizeCapability
Expand Down Expand Up @@ -90,17 +92,16 @@
from .sync_member import SyncMember
from .subscription_usage import SubscriptionUsage
from .virtual_network_rule import VirtualNetworkRule
from .long_term_retention_backup import LongTermRetentionBackup
from .backup_long_term_retention_policy import BackupLongTermRetentionPolicy
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 .database_operation import DatabaseOperation
from .elastic_pool_operation import ElasticPoolOperation
from .backup_long_term_retention_policy_paged import BackupLongTermRetentionPolicyPaged
from .backup_long_term_retention_vault_paged import BackupLongTermRetentionVaultPaged
from .recoverable_database_paged import RecoverableDatabasePaged
from .restorable_dropped_database_paged import RestorableDroppedDatabasePaged
from .server_paged import ServerPaged
Expand Down Expand Up @@ -136,12 +137,11 @@
from .sync_member_paged import SyncMemberPaged
from .subscription_usage_paged import SubscriptionUsagePaged
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .long_term_retention_backup_paged import LongTermRetentionBackupPaged
from .database_operation_paged import DatabaseOperationPaged
from .server_dns_alias_paged import ServerDnsAliasPaged
from .restore_point_paged import RestorePointPaged
from .database_operation_paged import DatabaseOperationPaged
from .elastic_pool_operation_paged import ElasticPoolOperationPaged
from .sql_management_client_enums import (
BackupLongTermRetentionPolicyState,
CapabilityStatus,
MaxSizeUnits,
PerformanceLevelUnit,
Expand Down Expand Up @@ -192,17 +192,18 @@
SyncDirection,
SyncMemberState,
VirtualNetworkRuleState,
ManagementOperationState,
AutomaticTuningServerMode,
AutomaticTuningServerReason,
RestorePointType,
ManagementOperationState,
LongTermRetentionDatabaseState,
)

__all__ = [
'Resource',
'TrackedResource',
'ProxyResource',
'BackupLongTermRetentionPolicy',
'BackupLongTermRetentionVault',
'TrackedResource',
'RecoverableDatabase',
'RestorableDroppedDatabase',
'MaxSizeCapability',
Expand Down Expand Up @@ -281,17 +282,16 @@
'SyncMember',
'SubscriptionUsage',
'VirtualNetworkRule',
'LongTermRetentionBackup',
'BackupLongTermRetentionPolicy',
'DatabaseOperation',
'ResourceMoveDefinition',
'AutomaticTuningServerOptions',
'ServerAutomaticTuning',
'ServerDnsAlias',
'ServerDnsAliasAcquisition',
'RestorePoint',
'CreateDatabaseRestorePointDefinition',
'DatabaseOperation',
'ElasticPoolOperation',
'BackupLongTermRetentionPolicyPaged',
'BackupLongTermRetentionVaultPaged',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
'ServerPaged',
Expand Down Expand Up @@ -327,11 +327,10 @@
'SyncMemberPaged',
'SubscriptionUsagePaged',
'VirtualNetworkRulePaged',
'LongTermRetentionBackupPaged',
'DatabaseOperationPaged',
'ServerDnsAliasPaged',
'RestorePointPaged',
'DatabaseOperationPaged',
'ElasticPoolOperationPaged',
'BackupLongTermRetentionPolicyState',
'CapabilityStatus',
'MaxSizeUnits',
'PerformanceLevelUnit',
Expand Down Expand Up @@ -382,9 +381,8 @@
'SyncDirection',
'SyncMemberState',
'VirtualNetworkRuleState',
'ManagementOperationState',
'AutomaticTuningServerMode',
'AutomaticTuningServerReason',
'RestorePointType',
'ManagementOperationState',
'LongTermRetentionDatabaseState',
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class BackupLongTermRetentionPolicy(ProxyResource):
"""A long term retention policy.
"""A backup long term retention policy.
Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -24,39 +24,37 @@ class BackupLongTermRetentionPolicy(ProxyResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param weekly_retention: The weekly retention policy for an LTR backup in
an ISO 8601 format.
:type weekly_retention: str
:param monthly_retention: The montly retention policy for an LTR backup in
an ISO 8601 format.
:type monthly_retention: str
:param yearly_retention: The yearly retention policy for an LTR backup in
an ISO 8601 format.
:type yearly_retention: str
:param week_of_year: The week of year to take the yearly backup in an ISO
8601 format.
:type week_of_year: int
:ivar location: The geo-location where the resource lives
:vartype location: str
:param state: The status of the backup long term retention policy.
Possible values include: 'Disabled', 'Enabled'
:type state: str or
~azure.mgmt.sql.models.BackupLongTermRetentionPolicyState
:param recovery_services_backup_policy_resource_id: The azure recovery
services backup protection policy resource id
:type recovery_services_backup_policy_resource_id: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'state': {'required': True},
'recovery_services_backup_policy_resource_id': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'weekly_retention': {'key': 'properties.weeklyRetention', 'type': 'str'},
'monthly_retention': {'key': 'properties.monthlyRetention', 'type': 'str'},
'yearly_retention': {'key': 'properties.yearlyRetention', 'type': 'str'},
'week_of_year': {'key': 'properties.weekOfYear', 'type': 'int'},
'location': {'key': 'location', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'BackupLongTermRetentionPolicyState'},
'recovery_services_backup_policy_resource_id': {'key': 'properties.recoveryServicesBackupPolicyResourceId', 'type': 'str'},
}

def __init__(self, weekly_retention=None, monthly_retention=None, yearly_retention=None, week_of_year=None):
def __init__(self, state, recovery_services_backup_policy_resource_id):
super(BackupLongTermRetentionPolicy, self).__init__()
self.weekly_retention = weekly_retention
self.monthly_retention = monthly_retention
self.yearly_retention = yearly_retention
self.week_of_year = week_of_year
self.location = None
self.state = state
self.recovery_services_backup_policy_resource_id = recovery_services_backup_policy_resource_id
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


class LongTermRetentionBackupPaged(Paged):
class BackupLongTermRetentionPolicyPaged(Paged):
"""
A paging container for iterating over a list of :class:`LongTermRetentionBackup <azure.mgmt.sql.models.LongTermRetentionBackup>` object
A paging container for iterating over a list of :class:`BackupLongTermRetentionPolicy <azure.mgmt.sql.models.BackupLongTermRetentionPolicy>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[LongTermRetentionBackup]'}
'current_page': {'key': 'value', 'type': '[BackupLongTermRetentionPolicy]'}
}

def __init__(self, *args, **kwargs):

super(LongTermRetentionBackupPaged, self).__init__(*args, **kwargs)
super(BackupLongTermRetentionPolicyPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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 BackupLongTermRetentionVault(ProxyResource):
"""A backup long term retention vault.
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
:ivar location: The geo-location where the resource lives
:vartype location: str
:param recovery_services_vault_resource_id: The azure recovery services
vault resource id
:type recovery_services_vault_resource_id: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'readonly': True},
'recovery_services_vault_resource_id': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'recovery_services_vault_resource_id': {'key': 'properties.recoveryServicesVaultResourceId', 'type': 'str'},
}

def __init__(self, recovery_services_vault_resource_id):
super(BackupLongTermRetentionVault, self).__init__()
self.location = None
self.recovery_services_vault_resource_id = recovery_services_vault_resource_id
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


class ElasticPoolOperationPaged(Paged):
class BackupLongTermRetentionVaultPaged(Paged):
"""
A paging container for iterating over a list of :class:`ElasticPoolOperation <azure.mgmt.sql.models.ElasticPoolOperation>` object
A paging container for iterating over a list of :class:`BackupLongTermRetentionVault <azure.mgmt.sql.models.BackupLongTermRetentionVault>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ElasticPoolOperation]'}
'current_page': {'key': 'value', 'type': '[BackupLongTermRetentionVault]'}
}

def __init__(self, *args, **kwargs):

super(ElasticPoolOperationPaged, self).__init__(*args, **kwargs)
super(BackupLongTermRetentionVaultPaged, self).__init__(*args, **kwargs)
114 changes: 0 additions & 114 deletions azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_operation.py

This file was deleted.

Loading

0 comments on commit 20384f2

Please sign in to comment.