-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] mariadb/resource-manager (#3980)
* Generated from 17ec7c2490ebb4fbbd1b3f459afb8fd3b7ff6f74 (#3951) typo: mariadb/resource-manager/Microsoft.DBforMariaDB - allowd -> allowed - Trim trailing spaces * [AutoPR mariadb/resource-manager] Update MariaDB default API version to 2018-06-01 (#4460) * Generated from 6dc88857bdcf5ba185555564f857c9d389297e44 Update MariaDB default API version to 2018-06-01 * Packaging update of azure-mgmt-rdbms * Packaging update of azure-mgmt-rdbms * RDBMS 1.7.0
- Loading branch information
1 parent
2beb99d
commit 26eb888
Showing
26 changed files
with
383 additions
and
29 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
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
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
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
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
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
51 changes: 51 additions & 0 deletions
51
azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/server_properties_for_replica.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,51 @@ | ||
# 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 .server_properties_for_create import ServerPropertiesForCreate | ||
|
||
|
||
class ServerPropertiesForReplica(ServerPropertiesForCreate): | ||
"""The properties to create a new replica. | ||
All required parameters must be populated in order to send to Azure. | ||
:param version: Server version. Possible values include: '5.6', '5.7' | ||
:type version: str or ~azure.mgmt.rdbms.mariadb.models.ServerVersion | ||
:param ssl_enforcement: Enable ssl enforcement or not when connect to | ||
server. Possible values include: 'Enabled', 'Disabled' | ||
:type ssl_enforcement: str or | ||
~azure.mgmt.rdbms.mariadb.models.SslEnforcementEnum | ||
:param storage_profile: Storage profile of a server. | ||
:type storage_profile: ~azure.mgmt.rdbms.mariadb.models.StorageProfile | ||
:param create_mode: Required. Constant filled by server. | ||
:type create_mode: str | ||
:param source_server_id: Required. The master server id to create replica | ||
from. | ||
:type source_server_id: str | ||
""" | ||
|
||
_validation = { | ||
'create_mode': {'required': True}, | ||
'source_server_id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'version': {'key': 'version', 'type': 'str'}, | ||
'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'SslEnforcementEnum'}, | ||
'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, | ||
'create_mode': {'key': 'createMode', 'type': 'str'}, | ||
'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ServerPropertiesForReplica, self).__init__(**kwargs) | ||
self.source_server_id = kwargs.get('source_server_id', None) | ||
self.create_mode = 'Replica' |
51 changes: 51 additions & 0 deletions
51
azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/server_properties_for_replica_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,51 @@ | ||
# 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 .server_properties_for_create_py3 import ServerPropertiesForCreate | ||
|
||
|
||
class ServerPropertiesForReplica(ServerPropertiesForCreate): | ||
"""The properties to create a new replica. | ||
All required parameters must be populated in order to send to Azure. | ||
:param version: Server version. Possible values include: '5.6', '5.7' | ||
:type version: str or ~azure.mgmt.rdbms.mariadb.models.ServerVersion | ||
:param ssl_enforcement: Enable ssl enforcement or not when connect to | ||
server. Possible values include: 'Enabled', 'Disabled' | ||
:type ssl_enforcement: str or | ||
~azure.mgmt.rdbms.mariadb.models.SslEnforcementEnum | ||
:param storage_profile: Storage profile of a server. | ||
:type storage_profile: ~azure.mgmt.rdbms.mariadb.models.StorageProfile | ||
:param create_mode: Required. Constant filled by server. | ||
:type create_mode: str | ||
:param source_server_id: Required. The master server id to create replica | ||
from. | ||
:type source_server_id: str | ||
""" | ||
|
||
_validation = { | ||
'create_mode': {'required': True}, | ||
'source_server_id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'version': {'key': 'version', 'type': 'str'}, | ||
'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'SslEnforcementEnum'}, | ||
'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, | ||
'create_mode': {'key': 'createMode', 'type': 'str'}, | ||
'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, source_server_id: str, version=None, ssl_enforcement=None, storage_profile=None, **kwargs) -> None: | ||
super(ServerPropertiesForReplica, self).__init__(version=version, ssl_enforcement=ssl_enforcement, storage_profile=storage_profile, **kwargs) | ||
self.source_server_id = source_server_id | ||
self.create_mode = 'Replica' |
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
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
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
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
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
Oops, something went wrong.