Skip to content

[AutoPR mysql/resource-manager/postgresql/resource-manager] Swagger For new rdbms API change for new biz model - 0.3.0 #1918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 0 additions & 183 deletions azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/build.json

This file was deleted.

12 changes: 6 additions & 6 deletions azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@

from .proxy_resource import ProxyResource
from .tracked_resource import TrackedResource
from .storage_profile import StorageProfile
from .server_properties_for_create import ServerPropertiesForCreate
from .server_properties_for_default_create import ServerPropertiesForDefaultCreate
from .server_properties_for_restore import ServerPropertiesForRestore
from .server_properties_for_geo_restore import ServerPropertiesForGeoRestore
from .sku import Sku
from .server import Server
from .server_for_create import ServerForCreate
from .server_update_parameters import ServerUpdateParameters
from .firewall_rule import FirewallRule
from .virtual_network_rule import VirtualNetworkRule
from .database import Database
from .configuration import Configuration
from .operation_display import OperationDisplay
Expand All @@ -32,7 +33,6 @@
from .name_availability import NameAvailability
from .server_paged import ServerPaged
from .firewall_rule_paged import FirewallRulePaged
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .database_paged import DatabasePaged
from .configuration_paged import ConfigurationPaged
from .log_file_paged import LogFilePaged
Expand All @@ -41,23 +41,24 @@
ServerVersion,
SslEnforcementEnum,
ServerState,
GeoRedundantBackup,
SkuTier,
VirtualNetworkRuleState,
OperationOrigin,
)

__all__ = [
'ProxyResource',
'TrackedResource',
'StorageProfile',
'ServerPropertiesForCreate',
'ServerPropertiesForDefaultCreate',
'ServerPropertiesForRestore',
'ServerPropertiesForGeoRestore',
'Sku',
'Server',
'ServerForCreate',
'ServerUpdateParameters',
'FirewallRule',
'VirtualNetworkRule',
'Database',
'Configuration',
'OperationDisplay',
Expand All @@ -70,15 +71,14 @@
'NameAvailability',
'ServerPaged',
'FirewallRulePaged',
'VirtualNetworkRulePaged',
'DatabasePaged',
'ConfigurationPaged',
'LogFilePaged',
'PerformanceTierPropertiesPaged',
'ServerVersion',
'SslEnforcementEnum',
'ServerState',
'GeoRedundantBackup',
'SkuTier',
'VirtualNetworkRuleState',
'OperationOrigin',
]
16 changes: 9 additions & 7 deletions azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/log_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class LogFile(ProxyResource):
:type log_file_name: str
:param size_in_kb: Size of the log file.
:type size_in_kb: long
:param created_time: Creation timestamp of the log file.
:type created_time: datetime
:param last_modified_time: Last modified timestamp of the log file.
:type last_modified_time: datetime
:ivar created_time: Creation timestamp of the log file.
:vartype created_time: datetime
:ivar last_modified_time: Last modified timestamp of the log file.
:vartype last_modified_time: datetime
:param log_file_type: Type of the log file.
:type log_file_type: str
:param url: The url to download the log file from.
Expand All @@ -42,6 +42,8 @@ class LogFile(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'created_time': {'readonly': True},
'last_modified_time': {'readonly': True},
}

_attribute_map = {
Expand All @@ -56,11 +58,11 @@ class LogFile(ProxyResource):
'url': {'key': 'properties.url', 'type': 'str'},
}

def __init__(self, log_file_name=None, size_in_kb=None, created_time=None, last_modified_time=None, log_file_type=None, url=None):
def __init__(self, log_file_name=None, size_in_kb=None, log_file_type=None, url=None):
super(LogFile, self).__init__()
self.log_file_name = log_file_name
self.size_in_kb = size_in_kb
self.created_time = created_time
self.last_modified_time = last_modified_time
self.created_time = None
self.last_modified_time = None
self.log_file_type = log_file_type
self.url = url
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,17 @@ class ServerState(Enum):
disabled = "Disabled"


class SkuTier(Enum):
class GeoRedundantBackup(Enum):

basic = "Basic"
standard = "Standard"
enabled = "Enabled"
disabled = "Disabled"


class VirtualNetworkRuleState(Enum):
class SkuTier(Enum):

initializing = "Initializing"
in_progress = "InProgress"
ready = "Ready"
deleting = "Deleting"
unknown = "Unknown"
basic = "Basic"
general_purpose = "GeneralPurpose"
memory_optimized = "MemoryOptimized"


class OperationOrigin(Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class NameAvailability(Model):
}

def __init__(self, message=None, name_available=None, reason=None):
super(NameAvailability, self).__init__()
self.message = message
self.name_available = name_available
self.reason = reason
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ class NameAvailabilityRequest(Model):
}

def __init__(self, name, type=None):
super(NameAvailabilityRequest, self).__init__()
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Operation(Model):
}

def __init__(self):
super(Operation, self).__init__()
self.name = None
self.display = None
self.origin = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class OperationDisplay(Model):
}

def __init__(self):
super(OperationDisplay, self).__init__()
self.provider = None
self.resource = None
self.operation = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class OperationListResult(Model):
}

def __init__(self, value=None):
super(OperationListResult, self).__init__()
self.value = value
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ class PerformanceTierProperties(Model):

:param id: ID of the performance tier.
:type id: str
:param backup_retention_days: Backup retention in days for the performance
tier edition
:type backup_retention_days: int
:param max_backup_retention_days: Maximum Backup retention in days for the
performance tier edition
:type max_backup_retention_days: int
:param min_backup_retention_days: Minimum Backup retention in days for the
performance tier edition
:type min_backup_retention_days: int
:param max_storage_mb: Max storage allowed for a server.
:type max_storage_mb: int
:param min_storage_mb: Max storage allowed for a server.
:type min_storage_mb: int
:param service_level_objectives: Service level objectives associated with
the performance tier
:type service_level_objectives:
Expand All @@ -28,11 +35,18 @@ class PerformanceTierProperties(Model):

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'backup_retention_days': {'key': 'backupRetentionDays', 'type': 'int'},
'max_backup_retention_days': {'key': 'maxBackupRetentionDays', 'type': 'int'},
'min_backup_retention_days': {'key': 'minBackupRetentionDays', 'type': 'int'},
'max_storage_mb': {'key': 'maxStorageMB', 'type': 'int'},
'min_storage_mb': {'key': 'minStorageMB', 'type': 'int'},
'service_level_objectives': {'key': 'serviceLevelObjectives', 'type': '[PerformanceTierServiceLevelObjectives]'},
}

def __init__(self, id=None, backup_retention_days=None, service_level_objectives=None):
def __init__(self, id=None, max_backup_retention_days=None, min_backup_retention_days=None, max_storage_mb=None, min_storage_mb=None, service_level_objectives=None):
super(PerformanceTierProperties, self).__init__()
self.id = id
self.backup_retention_days = backup_retention_days
self.max_backup_retention_days = max_backup_retention_days
self.min_backup_retention_days = min_backup_retention_days
self.max_storage_mb = max_storage_mb
self.min_storage_mb = min_storage_mb
self.service_level_objectives = service_level_objectives
Loading