-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sqlvirtualmachine/resource-manager] [Do Not Merge] New Swagge…
…r 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
- Loading branch information
1 parent
84a7722
commit e903e85
Showing
68 changed files
with
4,508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 (1970-01-01) | ||
++++++++++++++++++ | ||
|
||
* Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure MyService 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 `MyService 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
18 changes: 18 additions & 0 deletions
18
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
121 changes: 121 additions & 0 deletions
121
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
] |
34 changes: 34 additions & 0 deletions
34
...lmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
34 changes: 34 additions & 0 deletions
34
...hine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
83 changes: 83 additions & 0 deletions
83
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.