Skip to content

Commit

Permalink
[AutoPR mysql/resource-manager/postgresql/resource-manager] [Don't Me…
Browse files Browse the repository at this point in the history
…rge, Service roll out 2/20/2018] Swagger For new rdbms API change for new biz model (#1918)

[AutoPR mysql/resource-manager/postgresql/resource-manager] Swagger For new rdbms API change for new biz model - 0.3.0
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 27, 2018
1 parent f896c05 commit 5ecbcc0
Show file tree
Hide file tree
Showing 76 changed files with 1,456 additions and 2,269 deletions.
5 changes: 5 additions & 0 deletions azure-mgmt-rdbms/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.3.0 (2018-02-26)
++++++++++++++++++

* New pricing model release

0.2.0rc1 (2017-10-16)
+++++++++++++++++++++

Expand Down
12 changes: 8 additions & 4 deletions azure-mgmt-rdbms/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure RDBMS Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down Expand Up @@ -36,9 +36,13 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `RDBMS Management
<https://azure-sdk-for-python.readthedocs.org/en/latest/sample_azure-mgmt-rdbms.html>`__
on readthedocs.org.
For code examples, see `PostgreSQL
<https://docs.microsoft.com/python/api/overview/azure/postgresql>`__
on docs.microsoft.com.

For code examples, see `MySQL
<https://docs.microsoft.com/python/api/overview/azure/mysql>`__
on docs.microsoft.com.


Provide Feedback
Expand Down
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
Loading

0 comments on commit 5ecbcc0

Please sign in to comment.