Skip to content

Commit

Permalink
[AutoPR datafactory/resource-manager] [Datafactory] Add three new con…
Browse files Browse the repository at this point in the history
…nectors (#6281)

* Generated from 0ee2888c7118dfe04f56d37b3bdb491b88981fff

[Datafactory] Add Azure SQL Database Managed Instance, Dynamics CRM and Common Data Service for Apps

* Generated from e164e4233491e47b7335ed6a797b03d18445f705

Change enum type to string
  • Loading branch information
AutorestCI authored Jul 11, 2019
1 parent 0e05459 commit 3c2edb9
Show file tree
Hide file tree
Showing 34 changed files with 2,044 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,13 @@
from .oracle_linked_service_py3 import OracleLinkedService
from .file_server_linked_service_py3 import FileServerLinkedService
from .hd_insight_linked_service_py3 import HDInsightLinkedService
from .common_data_service_for_apps_linked_service_py3 import CommonDataServiceForAppsLinkedService
from .dynamics_crm_linked_service_py3 import DynamicsCrmLinkedService
from .dynamics_linked_service_py3 import DynamicsLinkedService
from .cosmos_db_linked_service_py3 import CosmosDbLinkedService
from .azure_key_vault_linked_service_py3 import AzureKeyVaultLinkedService
from .azure_batch_linked_service_py3 import AzureBatchLinkedService
from .azure_sql_mi_linked_service_py3 import AzureSqlMILinkedService
from .azure_sql_database_linked_service_py3 import AzureSqlDatabaseLinkedService
from .sql_server_linked_service_py3 import SqlServerLinkedService
from .azure_sql_dw_linked_service_py3 import AzureSqlDWLinkedService
Expand Down Expand Up @@ -250,11 +253,14 @@
from .office365_dataset_py3 import Office365Dataset
from .azure_blob_fs_dataset_py3 import AzureBlobFSDataset
from .azure_data_lake_store_dataset_py3 import AzureDataLakeStoreDataset
from .common_data_service_for_apps_entity_dataset_py3 import CommonDataServiceForAppsEntityDataset
from .dynamics_crm_entity_dataset_py3 import DynamicsCrmEntityDataset
from .dynamics_entity_dataset_py3 import DynamicsEntityDataset
from .document_db_collection_dataset_py3 import DocumentDbCollectionDataset
from .custom_dataset_py3 import CustomDataset
from .cassandra_table_dataset_py3 import CassandraTableDataset
from .azure_sql_dw_table_dataset_py3 import AzureSqlDWTableDataset
from .azure_sql_mi_table_dataset_py3 import AzureSqlMITableDataset
from .azure_sql_table_dataset_py3 import AzureSqlTableDataset
from .azure_table_dataset_py3 import AzureTableDataset
from .azure_blob_dataset_py3 import AzureBlobDataset
Expand Down Expand Up @@ -336,6 +342,7 @@
from .file_system_source_py3 import FileSystemSource
from .sql_dw_source_py3 import SqlDWSource
from .stored_procedure_parameter_py3 import StoredProcedureParameter
from .sql_mi_source_py3 import SqlMISource
from .azure_sql_source_py3 import AzureSqlSource
from .sql_server_source_py3 import SqlServerSource
from .sql_source_py3 import SqlSource
Expand All @@ -347,6 +354,8 @@
from .sap_cloud_for_customer_source_py3 import SapCloudForCustomerSource
from .salesforce_source_py3 import SalesforceSource
from .relational_source_py3 import RelationalSource
from .common_data_service_for_apps_source_py3 import CommonDataServiceForAppsSource
from .dynamics_crm_source_py3 import DynamicsCrmSource
from .dynamics_source_py3 import DynamicsSource
from .document_db_collection_source_py3 import DocumentDbCollectionSource
from .blob_source_py3 import BlobSource
Expand Down Expand Up @@ -387,6 +396,8 @@
from .cosmos_db_mongo_db_api_sink_py3 import CosmosDbMongoDbApiSink
from .salesforce_sink_py3 import SalesforceSink
from .azure_data_explorer_sink_py3 import AzureDataExplorerSink
from .common_data_service_for_apps_sink_py3 import CommonDataServiceForAppsSink
from .dynamics_crm_sink_py3 import DynamicsCrmSink
from .dynamics_sink_py3 import DynamicsSink
from .odbc_sink_py3 import OdbcSink
from .azure_search_index_sink_py3 import AzureSearchIndexSink
Expand All @@ -395,6 +406,7 @@
from .oracle_sink_py3 import OracleSink
from .polybase_settings_py3 import PolybaseSettings
from .sql_dw_sink_py3 import SqlDWSink
from .sql_mi_sink_py3 import SqlMISink
from .azure_sql_sink_py3 import AzureSqlSink
from .sql_server_sink_py3 import SqlServerSink
from .sql_sink_py3 import SqlSink
Expand Down Expand Up @@ -625,10 +637,13 @@
from .oracle_linked_service import OracleLinkedService
from .file_server_linked_service import FileServerLinkedService
from .hd_insight_linked_service import HDInsightLinkedService
from .common_data_service_for_apps_linked_service import CommonDataServiceForAppsLinkedService
from .dynamics_crm_linked_service import DynamicsCrmLinkedService
from .dynamics_linked_service import DynamicsLinkedService
from .cosmos_db_linked_service import CosmosDbLinkedService
from .azure_key_vault_linked_service import AzureKeyVaultLinkedService
from .azure_batch_linked_service import AzureBatchLinkedService
from .azure_sql_mi_linked_service import AzureSqlMILinkedService
from .azure_sql_database_linked_service import AzureSqlDatabaseLinkedService
from .sql_server_linked_service import SqlServerLinkedService
from .azure_sql_dw_linked_service import AzureSqlDWLinkedService
Expand Down Expand Up @@ -702,11 +717,14 @@
from .office365_dataset import Office365Dataset
from .azure_blob_fs_dataset import AzureBlobFSDataset
from .azure_data_lake_store_dataset import AzureDataLakeStoreDataset
from .common_data_service_for_apps_entity_dataset import CommonDataServiceForAppsEntityDataset
from .dynamics_crm_entity_dataset import DynamicsCrmEntityDataset
from .dynamics_entity_dataset import DynamicsEntityDataset
from .document_db_collection_dataset import DocumentDbCollectionDataset
from .custom_dataset import CustomDataset
from .cassandra_table_dataset import CassandraTableDataset
from .azure_sql_dw_table_dataset import AzureSqlDWTableDataset
from .azure_sql_mi_table_dataset import AzureSqlMITableDataset
from .azure_sql_table_dataset import AzureSqlTableDataset
from .azure_table_dataset import AzureTableDataset
from .azure_blob_dataset import AzureBlobDataset
Expand Down Expand Up @@ -788,6 +806,7 @@
from .file_system_source import FileSystemSource
from .sql_dw_source import SqlDWSource
from .stored_procedure_parameter import StoredProcedureParameter
from .sql_mi_source import SqlMISource
from .azure_sql_source import AzureSqlSource
from .sql_server_source import SqlServerSource
from .sql_source import SqlSource
Expand All @@ -799,6 +818,8 @@
from .sap_cloud_for_customer_source import SapCloudForCustomerSource
from .salesforce_source import SalesforceSource
from .relational_source import RelationalSource
from .common_data_service_for_apps_source import CommonDataServiceForAppsSource
from .dynamics_crm_source import DynamicsCrmSource
from .dynamics_source import DynamicsSource
from .document_db_collection_source import DocumentDbCollectionSource
from .blob_source import BlobSource
Expand Down Expand Up @@ -839,6 +860,8 @@
from .cosmos_db_mongo_db_api_sink import CosmosDbMongoDbApiSink
from .salesforce_sink import SalesforceSink
from .azure_data_explorer_sink import AzureDataExplorerSink
from .common_data_service_for_apps_sink import CommonDataServiceForAppsSink
from .dynamics_crm_sink import DynamicsCrmSink
from .dynamics_sink import DynamicsSink
from .odbc_sink import OdbcSink
from .azure_search_index_sink import AzureSearchIndexSink
Expand All @@ -847,6 +870,7 @@
from .oracle_sink import OracleSink
from .polybase_settings import PolybaseSettings
from .sql_dw_sink import SqlDWSink
from .sql_mi_sink import SqlMISink
from .azure_sql_sink import AzureSqlSink
from .sql_server_sink import SqlServerSink
from .sql_sink import SqlSink
Expand Down Expand Up @@ -962,6 +986,8 @@
TeradataAuthenticationType,
Db2AuthenticationType,
SybaseAuthenticationType,
DynamicsDeploymentType,
DynamicsAuthenticationType,
AzureFunctionActivityMethod,
WebActivityMethod,
CassandraSourceReadConsistencyLevels,
Expand Down Expand Up @@ -1150,10 +1176,13 @@
'OracleLinkedService',
'FileServerLinkedService',
'HDInsightLinkedService',
'CommonDataServiceForAppsLinkedService',
'DynamicsCrmLinkedService',
'DynamicsLinkedService',
'CosmosDbLinkedService',
'AzureKeyVaultLinkedService',
'AzureBatchLinkedService',
'AzureSqlMILinkedService',
'AzureSqlDatabaseLinkedService',
'SqlServerLinkedService',
'AzureSqlDWLinkedService',
Expand Down Expand Up @@ -1227,11 +1256,14 @@
'Office365Dataset',
'AzureBlobFSDataset',
'AzureDataLakeStoreDataset',
'CommonDataServiceForAppsEntityDataset',
'DynamicsCrmEntityDataset',
'DynamicsEntityDataset',
'DocumentDbCollectionDataset',
'CustomDataset',
'CassandraTableDataset',
'AzureSqlDWTableDataset',
'AzureSqlMITableDataset',
'AzureSqlTableDataset',
'AzureTableDataset',
'AzureBlobDataset',
Expand Down Expand Up @@ -1313,6 +1345,7 @@
'FileSystemSource',
'SqlDWSource',
'StoredProcedureParameter',
'SqlMISource',
'AzureSqlSource',
'SqlServerSource',
'SqlSource',
Expand All @@ -1324,6 +1357,8 @@
'SapCloudForCustomerSource',
'SalesforceSource',
'RelationalSource',
'CommonDataServiceForAppsSource',
'DynamicsCrmSource',
'DynamicsSource',
'DocumentDbCollectionSource',
'BlobSource',
Expand Down Expand Up @@ -1364,6 +1399,8 @@
'CosmosDbMongoDbApiSink',
'SalesforceSink',
'AzureDataExplorerSink',
'CommonDataServiceForAppsSink',
'DynamicsCrmSink',
'DynamicsSink',
'OdbcSink',
'AzureSearchIndexSink',
Expand All @@ -1372,6 +1409,7 @@
'OracleSink',
'PolybaseSettings',
'SqlDWSink',
'SqlMISink',
'AzureSqlSink',
'SqlServerSink',
'SqlSink',
Expand Down Expand Up @@ -1486,6 +1524,8 @@
'TeradataAuthenticationType',
'Db2AuthenticationType',
'SybaseAuthenticationType',
'DynamicsDeploymentType',
'DynamicsAuthenticationType',
'AzureFunctionActivityMethod',
'WebActivityMethod',
'CassandraSourceReadConsistencyLevels',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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 .linked_service import LinkedService


class AzureSqlMILinkedService(LinkedService):
"""Azure SQL Managed Instance linked service.
All required parameters must be populated in order to send to Azure.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param connect_via: The integration runtime reference.
:type connect_via:
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
:param description: Linked service description.
:type description: str
:param parameters: Parameters for linked service.
:type parameters: dict[str,
~azure.mgmt.datafactory.models.ParameterSpecification]
:param annotations: List of tags that can be used for describing the
linked service.
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param password: The Azure key vault secret reference of password in
connection string.
:type password:
~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Managed Instance. Type: string (or
Expression with resultType string).
:type service_principal_id: object
:param service_principal_key: The key of the service principal used to
authenticate against Azure SQL Managed Instance.
:type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase
:param tenant: The name or ID of the tenant to which the service principal
belongs. Type: string (or Expression with resultType string).
:type tenant: 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).
:type encrypted_credential: object
"""

_validation = {
'type': {'required': True},
'connection_string': {'required': True},
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
'description': {'key': 'description', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'password': {'key': 'typeProperties.password', 'type': 'AzureKeyVaultSecretReference'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

def __init__(self, **kwargs):
super(AzureSqlMILinkedService, self).__init__(**kwargs)
self.connection_string = kwargs.get('connection_string', None)
self.password = kwargs.get('password', None)
self.service_principal_id = kwargs.get('service_principal_id', None)
self.service_principal_key = kwargs.get('service_principal_key', None)
self.tenant = kwargs.get('tenant', None)
self.encrypted_credential = kwargs.get('encrypted_credential', None)
self.type = 'AzureSqlMI'
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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 .linked_service_py3 import LinkedService


class AzureSqlMILinkedService(LinkedService):
"""Azure SQL Managed Instance linked service.
All required parameters must be populated in order to send to Azure.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param connect_via: The integration runtime reference.
:type connect_via:
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
:param description: Linked service description.
:type description: str
:param parameters: Parameters for linked service.
:type parameters: dict[str,
~azure.mgmt.datafactory.models.ParameterSpecification]
:param annotations: List of tags that can be used for describing the
linked service.
:type annotations: list[object]
:param type: Required. Constant filled by server.
:type type: str
:param connection_string: Required. The connection string. Type: string,
SecureString or AzureKeyVaultSecretReference.
:type connection_string: object
:param password: The Azure key vault secret reference of password in
connection string.
:type password:
~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference
:param service_principal_id: The ID of the service principal used to
authenticate against Azure SQL Managed Instance. Type: string (or
Expression with resultType string).
:type service_principal_id: object
:param service_principal_key: The key of the service principal used to
authenticate against Azure SQL Managed Instance.
:type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase
:param tenant: The name or ID of the tenant to which the service principal
belongs. Type: string (or Expression with resultType string).
:type tenant: 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).
:type encrypted_credential: object
"""

_validation = {
'type': {'required': True},
'connection_string': {'required': True},
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
'description': {'key': 'description', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
'annotations': {'key': 'annotations', 'type': '[object]'},
'type': {'key': 'type', 'type': 'str'},
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
'password': {'key': 'typeProperties.password', 'type': 'AzureKeyVaultSecretReference'},
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
}

def __init__(self, *, connection_string, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, password=None, service_principal_id=None, service_principal_key=None, tenant=None, encrypted_credential=None, **kwargs) -> None:
super(AzureSqlMILinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs)
self.connection_string = connection_string
self.password = password
self.service_principal_id = service_principal_id
self.service_principal_key = service_principal_key
self.tenant = tenant
self.encrypted_credential = encrypted_credential
self.type = 'AzureSqlMI'
Loading

0 comments on commit 3c2edb9

Please sign in to comment.