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
Prev Previous commit
Next Next commit
Generated from a3c2bff7ee233f1de44032b1fccc27450874c77f
Add example for column mapping
  • Loading branch information
AutorestCI committed Apr 24, 2018
commit bc4c5ae7965cf50fdcac925e58410fb16435270b
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -58,7 +58,7 @@ def __init__(
self.subscription_id = subscription_id


class DataFactoryManagementClient(object):
class DataFactoryManagementClient(SDKClient):
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services.

:ivar config: Configuration for client.
Expand Down Expand Up @@ -97,7 +97,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = DataFactoryManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(DataFactoryManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-09-01-preview'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AzureKeyVaultSecretReference(SecretBase):
}

def __init__(self, *, store, secret_name, secret_version=None, **kwargs) -> None:
super(AzureKeyVaultSecretReference, self).__init__(, **kwargs)
super(AzureKeyVaultSecretReference, self).__init__(**kwargs)
self.store = store
self.secret_name = secret_name
self.secret_version = secret_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzureMySqlLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -53,7 +54,7 @@ class AzureMySqlLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzureMySqlLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -53,7 +54,7 @@ class AzureMySqlLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzurePostgreSqlLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: An ODBC connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: An ODBC connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -52,7 +53,7 @@ class AzurePostgreSqlLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzurePostgreSqlLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: An ODBC connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: An ODBC connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -52,7 +53,7 @@ class AzurePostgreSqlLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzureSqlDatabaseLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Database. Type: string (or Expression with
resultType string).
Expand Down Expand Up @@ -63,7 +64,7 @@ class AzureSqlDatabaseLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class AzureSqlDatabaseLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Database. Type: string (or Expression with
resultType string).
Expand Down Expand Up @@ -63,7 +64,7 @@ class AzureSqlDatabaseLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class AzureSqlDWLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference. Type: string, SecureString
or AzureKeyVaultSecretReference.
:type connection_string: object
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Data Warehouse. Type: string (or Expression
with resultType string).
Expand Down Expand Up @@ -63,7 +65,7 @@ class AzureSqlDWLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ class AzureSqlDWLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference. Type: string, SecureString
or AzureKeyVaultSecretReference.
:type connection_string: object
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Data Warehouse. Type: string (or Expression
with resultType string).
Expand Down Expand Up @@ -63,7 +65,7 @@ class AzureSqlDWLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class AzureStorageLinkedService(LinkedService):
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: The connection string. It is mutually exclusive
with sasUri property.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
with sasUri property. Type: string, SecureString or
AzureKeyVaultSecretReference.
:type connection_string: object
:param sas_uri: SAS URI of the Azure Storage resource. It is mutually
exclusive with connectionString property.
:type sas_uri: ~azure.mgmt.datafactory.models.SecretBase
Expand All @@ -56,7 +57,7 @@ class AzureStorageLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class AzureStorageLinkedService(LinkedService):
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: The connection string. It is mutually exclusive
with sasUri property.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
with sasUri property. Type: string, SecureString or
AzureKeyVaultSecretReference.
:type connection_string: object
:param sas_uri: SAS URI of the Azure Storage resource. It is mutually
exclusive with connectionString property.
:type sas_uri: ~azure.mgmt.datafactory.models.SecretBase
Expand All @@ -56,7 +57,7 @@ class AzureStorageLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class CosmosDbLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -53,7 +54,7 @@ class CosmosDbLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class CosmosDbLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -53,7 +54,7 @@ class CosmosDbLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class CouchbaseLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: An ODBC connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: An ODBC connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -52,7 +53,7 @@ class CouchbaseLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class CouchbaseLinkedService(LinkedService):
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: An ODBC connection string.
:type connection_string: ~azure.mgmt.datafactory.models.SecretBase
:param connection_string: An ODBC connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param encrypted_credential: The encrypted credential used for
authentication. Credentials are encrypted using the integration runtime
credential manager. Type: string (or Expression with resultType string).
Expand All @@ -52,7 +53,7 @@ class CouchbaseLinkedService(LinkedService):
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'SecretBase'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ class DatasetResource(SubResource):
}

def __init__(self, *, properties, **kwargs) -> None:
super(DatasetResource, self).__init__(, **kwargs)
super(DatasetResource, self).__init__(**kwargs)
self.properties = properties
Loading