Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Generated from 5e8b28090177ca4a22ae577fdecc8f4bae4ebcd0
Addressing code review comments, adding readme file
  • Loading branch information
AutorestCI committed Nov 5, 2018
commit d43f5e523afa1cc4d0caf240144c932fd0ab9575
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,125 @@
# 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 .domainless_profile_py3 import DomainlessProfile
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_telemetry_settings_py3 import AutoTelemetrySettings
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 .domainless_profile import DomainlessProfile
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_telemetry_settings import AutoTelemetrySettings
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,
BackupScheduleType,
FullBackupFrequencyType,
ConnectivityType,
SqlWorkloadType,
DiskConfigurationType,
)

__all__ = [
'PrivateIPAddress',
'LoadBalancerConfiguration',
'Resource',
'ProxyResource',
'AvailabilityGroupListener',
'OperationDisplay',
'Operation',
'WSFCDomainProfile',
'DomainlessProfile',
'TrackedResource',
'SqlVirtualMachineGroup',
'SqlVirtualMachineGroupUpdate',
'ResourceIdentity',
'WSFCDomainCredentials',
'AutoTelemetrySettings',
'AutoPatchingSettings',
'AutoBackupSettings',
'KeyVaultCredentialSettings',
'SQLConnectivityUpdateSettings',
'SQLWorkloadTypeUpdateSettings',
'SQLStorageUpdateSettings',
'AdditionalFeaturesServerConfigurations',
'ServerConfigurationsManagementSettings',
'SqlVirtualMachine',
'SqlVirtualMachineUpdate',
'AvailabilityGroupListenerPaged',
'OperationPaged',
'SqlVirtualMachineGroupPaged',
'SqlVirtualMachinePaged',
'OperationOrigin',
'SqlImageSku',
'ScaleType',
'ClusterManagerType',
'ClusterConfiguration',
'IdentityType',
'SqlServerLicenseType',
'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,80 @@
# 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):
"""Auto backup settings.

: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.
: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: Full backup frequency. Possible values
include: 'Daily', 'Weekly'
:type full_backup_frequency: str or
~azure.mgmt.sqlvirtualmachine.models.FullBackupFrequencyType
:param full_backup_start_time: Full backup startup time.
:type full_backup_start_time: int
:param full_backup_window_hours: Full backup window hours.
:type full_backup_window_hours: int
:param log_backup_frequency: Log backup frequency.
: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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# 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):
"""Auto backup settings.

: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.
: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: Full backup frequency. Possible values
include: 'Daily', 'Weekly'
:type full_backup_frequency: str or
~azure.mgmt.sqlvirtualmachine.models.FullBackupFrequencyType
:param full_backup_start_time: Full backup startup time.
:type full_backup_start_time: int
:param full_backup_window_hours: Full backup window hours.
:type full_backup_window_hours: int
:param log_backup_frequency: Log backup frequency.
: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, *, enable: bool=None, enable_encryption: bool=None, retention_period: int=None, storage_account_url: str=None, storage_access_key: str=None, password: str=None, backup_system_dbs: bool=None, backup_schedule_type=None, full_backup_frequency=None, full_backup_start_time: int=None, full_backup_window_hours: int=None, log_backup_frequency: int=None, **kwargs) -> None:
super(AutoBackupSettings, self).__init__(**kwargs)
self.enable = enable
self.enable_encryption = enable_encryption
self.retention_period = retention_period
self.storage_account_url = storage_account_url
self.storage_access_key = storage_access_key
self.password = password
self.backup_system_dbs = backup_system_dbs
self.backup_schedule_type = backup_schedule_type
self.full_backup_frequency = full_backup_frequency
self.full_backup_start_time = full_backup_start_time
self.full_backup_window_hours = full_backup_window_hours
self.log_backup_frequency = log_backup_frequency
Loading