Skip to content

Commit

Permalink
[AutoPR] sqlvirtualmachine/resource-manager (#3810)
Browse files Browse the repository at this point in the history
* [AutoPR sqlvirtualmachine/resource-manager] [Do Not Merge] New Swagger specification for Microsoft.SqlVirtualMachine Resource Provider.  (#3748)

* Generated from 5e8b28090177ca4a22ae577fdecc8f4bae4ebcd0

Addressing code review comments, adding readme file

* Packaging update of azure-mgmt-sqlvirtualmachine

* Generated from f2820727481088045e25bda0ffe17cd71e304d2c

Addressing code review comments

* Generated from 5fb1ee8844dbe6df07569a955405beda98f63e59

Addressing comments

* Packaging

* Packaging update of azure-mgmt-sqlvirtualmachine

* Update version.py
  • Loading branch information
AutorestCI authored and lmazuel committed Nov 27, 2018
1 parent ed3ffa1 commit ec18d0b
Show file tree
Hide file tree
Showing 68 changed files with 4,508 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azure-mgmt-sqlvirtualmachine/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.1.0 (2018-11-27)
++++++++++++++++++

* Initial Release
4 changes: 4 additions & 0 deletions azure-mgmt-sqlvirtualmachine/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

49 changes: 49 additions & 0 deletions azure-mgmt-sqlvirtualmachine/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure SQL Virtual Machine 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.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

For code examples, see `SQL Virtual Machine Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.
1 change: 1 addition & 0 deletions azure-mgmt-sqlvirtualmachine/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions azure-mgmt-sqlvirtualmachine/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .sql_virtual_machine_management_client import SqlVirtualMachineManagementClient
from .version import VERSION

__all__ = ['SqlVirtualMachineManagementClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# 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.
# --------------------------------------------------------------------------

try:
from .private_ip_address_py3 import PrivateIPAddress
from .load_balancer_configuration_py3 import LoadBalancerConfiguration
from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource
from .availability_group_listener_py3 import AvailabilityGroupListener
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .wsfc_domain_profile_py3 import WsfcDomainProfile
from .tracked_resource_py3 import TrackedResource
from .sql_virtual_machine_group_py3 import SqlVirtualMachineGroup
from .sql_virtual_machine_group_update_py3 import SqlVirtualMachineGroupUpdate
from .resource_identity_py3 import ResourceIdentity
from .wsfc_domain_credentials_py3 import WsfcDomainCredentials
from .auto_patching_settings_py3 import AutoPatchingSettings
from .auto_backup_settings_py3 import AutoBackupSettings
from .key_vault_credential_settings_py3 import KeyVaultCredentialSettings
from .sql_connectivity_update_settings_py3 import SqlConnectivityUpdateSettings
from .sql_workload_type_update_settings_py3 import SqlWorkloadTypeUpdateSettings
from .sql_storage_update_settings_py3 import SqlStorageUpdateSettings
from .additional_features_server_configurations_py3 import AdditionalFeaturesServerConfigurations
from .server_configurations_management_settings_py3 import ServerConfigurationsManagementSettings
from .sql_virtual_machine_py3 import SqlVirtualMachine
from .sql_virtual_machine_update_py3 import SqlVirtualMachineUpdate
except (SyntaxError, ImportError):
from .private_ip_address import PrivateIPAddress
from .load_balancer_configuration import LoadBalancerConfiguration
from .resource import Resource
from .proxy_resource import ProxyResource
from .availability_group_listener import AvailabilityGroupListener
from .operation_display import OperationDisplay
from .operation import Operation
from .wsfc_domain_profile import WsfcDomainProfile
from .tracked_resource import TrackedResource
from .sql_virtual_machine_group import SqlVirtualMachineGroup
from .sql_virtual_machine_group_update import SqlVirtualMachineGroupUpdate
from .resource_identity import ResourceIdentity
from .wsfc_domain_credentials import WsfcDomainCredentials
from .auto_patching_settings import AutoPatchingSettings
from .auto_backup_settings import AutoBackupSettings
from .key_vault_credential_settings import KeyVaultCredentialSettings
from .sql_connectivity_update_settings import SqlConnectivityUpdateSettings
from .sql_workload_type_update_settings import SqlWorkloadTypeUpdateSettings
from .sql_storage_update_settings import SqlStorageUpdateSettings
from .additional_features_server_configurations import AdditionalFeaturesServerConfigurations
from .server_configurations_management_settings import ServerConfigurationsManagementSettings
from .sql_virtual_machine import SqlVirtualMachine
from .sql_virtual_machine_update import SqlVirtualMachineUpdate
from .availability_group_listener_paged import AvailabilityGroupListenerPaged
from .operation_paged import OperationPaged
from .sql_virtual_machine_group_paged import SqlVirtualMachineGroupPaged
from .sql_virtual_machine_paged import SqlVirtualMachinePaged
from .sql_virtual_machine_management_client_enums import (
OperationOrigin,
SqlImageSku,
ScaleType,
ClusterManagerType,
ClusterConfiguration,
IdentityType,
SqlServerLicenseType,
DayOfWeek,
BackupScheduleType,
FullBackupFrequencyType,
ConnectivityType,
SqlWorkloadType,
DiskConfigurationType,
)

__all__ = [
'PrivateIPAddress',
'LoadBalancerConfiguration',
'Resource',
'ProxyResource',
'AvailabilityGroupListener',
'OperationDisplay',
'Operation',
'WsfcDomainProfile',
'TrackedResource',
'SqlVirtualMachineGroup',
'SqlVirtualMachineGroupUpdate',
'ResourceIdentity',
'WsfcDomainCredentials',
'AutoPatchingSettings',
'AutoBackupSettings',
'KeyVaultCredentialSettings',
'SqlConnectivityUpdateSettings',
'SqlWorkloadTypeUpdateSettings',
'SqlStorageUpdateSettings',
'AdditionalFeaturesServerConfigurations',
'ServerConfigurationsManagementSettings',
'SqlVirtualMachine',
'SqlVirtualMachineUpdate',
'AvailabilityGroupListenerPaged',
'OperationPaged',
'SqlVirtualMachineGroupPaged',
'SqlVirtualMachinePaged',
'OperationOrigin',
'SqlImageSku',
'ScaleType',
'ClusterManagerType',
'ClusterConfiguration',
'IdentityType',
'SqlServerLicenseType',
'DayOfWeek',
'BackupScheduleType',
'FullBackupFrequencyType',
'ConnectivityType',
'SqlWorkloadType',
'DiskConfigurationType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 AdditionalFeaturesServerConfigurations(Model):
"""Additional SQL Server feature settings.
:param is_rservices_enabled: Enable or disable R services (SQL 2016
onwards).
:type is_rservices_enabled: bool
:param backup_permissions_for_azure_backup_svc: Enable or disable Azure
Backup service.
:type backup_permissions_for_azure_backup_svc: bool
"""

_attribute_map = {
'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'},
'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs)
self.is_rservices_enabled = kwargs.get('is_rservices_enabled', None)
self.backup_permissions_for_azure_backup_svc = kwargs.get('backup_permissions_for_azure_backup_svc', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 AdditionalFeaturesServerConfigurations(Model):
"""Additional SQL Server feature settings.
:param is_rservices_enabled: Enable or disable R services (SQL 2016
onwards).
:type is_rservices_enabled: bool
:param backup_permissions_for_azure_backup_svc: Enable or disable Azure
Backup service.
:type backup_permissions_for_azure_backup_svc: bool
"""

_attribute_map = {
'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'},
'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'},
}

def __init__(self, *, is_rservices_enabled: bool=None, backup_permissions_for_azure_backup_svc: bool=None, **kwargs) -> None:
super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs)
self.is_rservices_enabled = is_rservices_enabled
self.backup_permissions_for_azure_backup_svc = backup_permissions_for_azure_backup_svc
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# 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 AutoBackupSettings(Model):
"""Configure backups for databases in your SQL virtual machine.
:param enable: Enable or disable autobackup on SQL virtual machine.
:type enable: bool
:param enable_encryption: Enable or disable encryption for backup on SQL
virtual machine.
:type enable_encryption: bool
:param retention_period: Retention period of backup: 1-30 days.
:type retention_period: int
:param storage_account_url: Storage account url where backup will be taken
to.
:type storage_account_url: str
:param storage_access_key: Storage account key where backup will be taken
to.
:type storage_access_key: str
:param password: Password for encryption on backup.
:type password: str
:param backup_system_dbs: Include or exclude system databases from auto
backup.
:type backup_system_dbs: bool
:param backup_schedule_type: Backup schedule type. Possible values
include: 'Manual', 'Automated'
:type backup_schedule_type: str or
~azure.mgmt.sqlvirtualmachine.models.BackupScheduleType
:param full_backup_frequency: Frequency of full backups. In both cases,
full backups begin during the next scheduled time window. Possible values
include: 'Daily', 'Weekly'
:type full_backup_frequency: str or
~azure.mgmt.sqlvirtualmachine.models.FullBackupFrequencyType
:param full_backup_start_time: Start time of a given day during which full
backups can take place. 0-23 hours.
:type full_backup_start_time: int
:param full_backup_window_hours: Duration of the time window of a given
day during which full backups can take place. 1-23 hours.
:type full_backup_window_hours: int
:param log_backup_frequency: Frequency of log backups. 5-60 minutes.
:type log_backup_frequency: int
"""

_attribute_map = {
'enable': {'key': 'enable', 'type': 'bool'},
'enable_encryption': {'key': 'enableEncryption', 'type': 'bool'},
'retention_period': {'key': 'retentionPeriod', 'type': 'int'},
'storage_account_url': {'key': 'storageAccountUrl', 'type': 'str'},
'storage_access_key': {'key': 'storageAccessKey', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'backup_system_dbs': {'key': 'backupSystemDbs', 'type': 'bool'},
'backup_schedule_type': {'key': 'backupScheduleType', 'type': 'str'},
'full_backup_frequency': {'key': 'fullBackupFrequency', 'type': 'str'},
'full_backup_start_time': {'key': 'fullBackupStartTime', 'type': 'int'},
'full_backup_window_hours': {'key': 'fullBackupWindowHours', 'type': 'int'},
'log_backup_frequency': {'key': 'logBackupFrequency', 'type': 'int'},
}

def __init__(self, **kwargs):
super(AutoBackupSettings, self).__init__(**kwargs)
self.enable = kwargs.get('enable', None)
self.enable_encryption = kwargs.get('enable_encryption', None)
self.retention_period = kwargs.get('retention_period', None)
self.storage_account_url = kwargs.get('storage_account_url', None)
self.storage_access_key = kwargs.get('storage_access_key', None)
self.password = kwargs.get('password', None)
self.backup_system_dbs = kwargs.get('backup_system_dbs', None)
self.backup_schedule_type = kwargs.get('backup_schedule_type', None)
self.full_backup_frequency = kwargs.get('full_backup_frequency', None)
self.full_backup_start_time = kwargs.get('full_backup_start_time', None)
self.full_backup_window_hours = kwargs.get('full_backup_window_hours', None)
self.log_backup_frequency = kwargs.get('log_backup_frequency', None)
Loading

0 comments on commit ec18d0b

Please sign in to comment.