1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
# 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 ImportExtensionRequest(Model):
"""Import database parameters.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: The name of the extension.
:type name: str
:param type: The type of the extension.
:type type: str
:param storage_key_type: Required. The type of the storage key to use.
Possible values include: 'StorageAccessKey', 'SharedAccessKey'
:type storage_key_type: str or ~azure.mgmt.sql.models.StorageKeyType
:param storage_key: Required. The storage key to use. If storage key type
is SharedAccessKey, it must be preceded with a "?."
:type storage_key: str
:param storage_uri: Required. The storage uri to use.
:type storage_uri: str
:param administrator_login: Required. The name of the SQL administrator.
:type administrator_login: str
:param administrator_login_password: Required. The password of the SQL
administrator.
:type administrator_login_password: str
:param authentication_type: The authentication type. Possible values
include: 'SQL', 'ADPassword'. Default value: "SQL" .
:type authentication_type: str or
~azure.mgmt.sql.models.AuthenticationType
:ivar operation_mode: Required. The type of import operation being
performed. This is always Import. Default value: "Import" .
:vartype operation_mode: str
"""
_validation = {
'storage_key_type': {'required': True},
'storage_key': {'required': True},
'storage_uri': {'required': True},
'administrator_login': {'required': True},
'administrator_login_password': {'required': True},
'operation_mode': {'required': True, 'constant': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'storage_key_type': {'key': 'properties.storageKeyType', 'type': 'StorageKeyType'},
'storage_key': {'key': 'properties.storageKey', 'type': 'str'},
'storage_uri': {'key': 'properties.storageUri', 'type': 'str'},
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'},
'authentication_type': {'key': 'properties.authenticationType', 'type': 'AuthenticationType'},
'operation_mode': {'key': 'properties.operationMode', 'type': 'str'},
}
operation_mode = "Import"
def __init__(self, **kwargs):
super(ImportExtensionRequest, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
self.storage_key_type = kwargs.get('storage_key_type', None)
self.storage_key = kwargs.get('storage_key', None)
self.storage_uri = kwargs.get('storage_uri', None)
self.administrator_login = kwargs.get('administrator_login', None)
self.administrator_login_password = kwargs.get('administrator_login_password', None)
self.authentication_type = kwargs.get('authentication_type', "SQL")
|