diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py index 987622ae0455..0a5ec4b52c56 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py @@ -1293,6 +1293,7 @@ from ._paged_models import PipelineResourcePaged from ._paged_models import TriggerResourcePaged from ._data_factory_management_client_enums import ( + FactoryIdentityType, GlobalParameterType, PublicNetworkAccess, IntegrationRuntimeState, @@ -1334,6 +1335,8 @@ SybaseAuthenticationType, DynamicsDeploymentType, DynamicsAuthenticationType, + CosmosDbServicePrincipalCredentialType, + CosmosDbConnectionMode, OrcCompressionCodec, AvroCompressionCodec, TumblingWindowFrequency, @@ -2023,6 +2026,7 @@ 'DataFlowDebugSessionInfoPaged', 'ManagedVirtualNetworkResourcePaged', 'ManagedPrivateEndpointResourcePaged', + 'FactoryIdentityType', 'GlobalParameterType', 'PublicNetworkAccess', 'IntegrationRuntimeState', @@ -2064,6 +2068,8 @@ 'SybaseAuthenticationType', 'DynamicsDeploymentType', 'DynamicsAuthenticationType', + 'CosmosDbServicePrincipalCredentialType', + 'CosmosDbConnectionMode', 'OrcCompressionCodec', 'AvroCompressionCodec', 'TumblingWindowFrequency', diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py index da122b92c18c..84de50ffbe43 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py @@ -12,6 +12,13 @@ from enum import Enum +class FactoryIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned,UserAssigned" + + class GlobalParameterType(str, Enum): object_enum = "Object" @@ -245,6 +252,7 @@ class SftpAuthenticationType(str, Enum): basic = "Basic" ssh_public_key = "SshPublicKey" + multi_factor = "MultiFactor" class FtpAuthenticationType(str, Enum): @@ -321,6 +329,18 @@ class DynamicsAuthenticationType(str, Enum): aad_service_principal = "AADServicePrincipal" +class CosmosDbServicePrincipalCredentialType(str, Enum): + + service_principal_key = "ServicePrincipalKey" + service_principal_cert = "ServicePrincipalCert" + + +class CosmosDbConnectionMode(str, Enum): + + gateway = "Gateway" + direct = "Direct" + + class OrcCompressionCodec(str, Enum): none = "none" diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py index 42896972d1f1..456dcef61b21 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models.py @@ -2716,6 +2716,11 @@ class AzureBlobStorageLinkedService(LinkedService): AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :type azure_cloud_type: object + :param account_kind: Specify the kind of your storage account. Allowed + values are: Storage (general purpose v1), StorageV2 (general purpose v2), + BlobStorage, or BlockBlobStorage. Type: string (or Expression with + resultType string). + :type account_kind: str :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). @@ -2742,6 +2747,7 @@ class AzureBlobStorageLinkedService(LinkedService): 'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, + 'account_kind': {'key': 'typeProperties.accountKind', 'type': 'str'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'}, } @@ -2756,6 +2762,7 @@ def __init__(self, **kwargs): self.service_principal_key = kwargs.get('service_principal_key', None) self.tenant = kwargs.get('tenant', None) self.azure_cloud_type = kwargs.get('azure_cloud_type', None) + self.account_kind = kwargs.get('account_kind', None) self.encrypted_credential = kwargs.get('encrypted_credential', None) self.type = 'AzureBlobStorage' @@ -3611,28 +3618,25 @@ class AzureDataExplorerLinkedService(LinkedService): https://..kusto.windows.net. Type: string (or Expression with resultType string) :type endpoint: object - :param service_principal_id: Required. The ID of the service principal - used to authenticate against Azure Data Explorer. Type: string (or - Expression with resultType string). + :param service_principal_id: The ID of the service principal used to + authenticate against Azure Data Explorer. Type: string (or Expression with + resultType string). :type service_principal_id: object - :param service_principal_key: Required. The key of the service principal - used to authenticate against Kusto. + :param service_principal_key: The key of the service principal used to + authenticate against Kusto. :type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :param database: Required. Database name for connection. Type: string (or Expression with resultType string). :type database: object - :param tenant: Required. The name or ID of the tenant to which the service - principal belongs. Type: string (or Expression with resultType string). + :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 """ _validation = { 'type': {'required': True}, 'endpoint': {'required': True}, - 'service_principal_id': {'required': True}, - 'service_principal_key': {'required': True}, 'database': {'required': True}, - 'tenant': {'required': True}, } _attribute_map = { @@ -8947,6 +8951,39 @@ class CosmosDbLinkedService(LinkedService): :param account_key: The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. :type account_key: ~azure.mgmt.datafactory.models.SecretBase + :param service_principal_id: The client ID of the application in Azure + Active Directory used for Server-To-Server authentication. Type: string + (or Expression with resultType string). + :type service_principal_id: object + :param service_principal_credential_type: The service principal credential + type to use in Server-To-Server authentication. 'ServicePrincipalKey' for + key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string). Possible values include: + 'ServicePrincipalKey', 'ServicePrincipalCert' + :type service_principal_credential_type: str or + ~azure.mgmt.datafactory.models.CosmosDbServicePrincipalCredentialType + :param service_principal_credential: The credential of the service + principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or + AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be + AzureKeyVaultSecretReference. + :type service_principal_credential: + ~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 azure_cloud_type: Indicates the azure cloud type of the service + principle auth. Allowed values are AzurePublic, AzureChina, + AzureUsGovernment, AzureGermany. Default value is the data factory + regions’ cloud type. Type: string (or Expression with resultType string). + :type azure_cloud_type: object + :param connection_mode: The connection mode used to access CosmosDB + account. Type: string (or Expression with resultType string). Possible + values include: 'Gateway', 'Direct' + :type connection_mode: str or + ~azure.mgmt.datafactory.models.CosmosDbConnectionMode :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). @@ -8968,6 +9005,12 @@ class CosmosDbLinkedService(LinkedService): 'account_endpoint': {'key': 'typeProperties.accountEndpoint', 'type': 'object'}, 'database': {'key': 'typeProperties.database', 'type': 'object'}, 'account_key': {'key': 'typeProperties.accountKey', 'type': 'SecretBase'}, + 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, + 'service_principal_credential_type': {'key': 'typeProperties.servicePrincipalCredentialType', 'type': 'str'}, + 'service_principal_credential': {'key': 'typeProperties.servicePrincipalCredential', 'type': 'SecretBase'}, + 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, + 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, + 'connection_mode': {'key': 'typeProperties.connectionMode', 'type': 'str'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, } @@ -8977,6 +9020,12 @@ def __init__(self, **kwargs): self.account_endpoint = kwargs.get('account_endpoint', None) self.database = kwargs.get('database', None) self.account_key = kwargs.get('account_key', None) + self.service_principal_id = kwargs.get('service_principal_id', None) + self.service_principal_credential_type = kwargs.get('service_principal_credential_type', None) + self.service_principal_credential = kwargs.get('service_principal_credential', None) + self.tenant = kwargs.get('tenant', None) + self.azure_cloud_type = kwargs.get('azure_cloud_type', None) + self.connection_mode = kwargs.get('connection_mode', None) self.encrypted_credential = kwargs.get('encrypted_credential', None) self.type = 'CosmosDb' @@ -14195,8 +14244,9 @@ class FactoryIdentity(Model): All required parameters must be populated in order to send to Azure. - :ivar type: Required. The identity type. Default value: "SystemAssigned" . - :vartype type: str + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + :type type: str or ~azure.mgmt.datafactory.models.FactoryIdentityType :ivar principal_id: The principal id of the identity. :vartype principal_id: str :ivar tenant_id: The client tenant id of the identity. @@ -14207,7 +14257,7 @@ class FactoryIdentity(Model): """ _validation = { - 'type': {'required': True, 'constant': True}, + 'type': {'required': True}, 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, } @@ -14219,10 +14269,9 @@ class FactoryIdentity(Model): 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{object}'}, } - type = "SystemAssigned" - def __init__(self, **kwargs): super(FactoryIdentity, self).__init__(**kwargs) + self.type = kwargs.get('type', None) self.principal_id = None self.tenant_id = None self.user_assigned_identities = kwargs.get('user_assigned_identities', None) @@ -17643,6 +17692,10 @@ class HttpLinkedService(LinkedService): :param password: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param embedded_cert_data: Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or @@ -17681,6 +17734,7 @@ class HttpLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'embedded_cert_data': {'key': 'typeProperties.embeddedCertData', 'type': 'object'}, 'cert_thumbprint': {'key': 'typeProperties.certThumbprint', 'type': 'object'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, @@ -17693,6 +17747,7 @@ def __init__(self, **kwargs): self.authentication_type = kwargs.get('authentication_type', None) self.user_name = kwargs.get('user_name', None) self.password = kwargs.get('password', None) + self.auth_headers = kwargs.get('auth_headers', None) self.embedded_cert_data = kwargs.get('embedded_cert_data', None) self.cert_thumbprint = kwargs.get('cert_thumbprint', None) self.encrypted_credential = kwargs.get('encrypted_credential', None) @@ -22629,6 +22684,10 @@ class ODataLinkedService(LinkedService): :type user_name: object :param password: Password of the OData service. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param tenant: Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). @@ -22688,6 +22747,7 @@ class ODataLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, @@ -22705,6 +22765,7 @@ def __init__(self, **kwargs): self.authentication_type = kwargs.get('authentication_type', None) self.user_name = kwargs.get('user_name', None) self.password = kwargs.get('password', None) + self.auth_headers = kwargs.get('auth_headers', None) self.tenant = kwargs.get('tenant', None) self.service_principal_id = kwargs.get('service_principal_id', None) self.azure_cloud_type = kwargs.get('azure_cloud_type', None) @@ -26582,6 +26643,10 @@ class RestServiceLinkedService(LinkedService): :type user_name: object :param password: The password used in Basic authentication type. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param service_principal_id: The application's client ID used in AadServicePrincipal authentication type. :type service_principal_id: object @@ -26624,6 +26689,7 @@ class RestServiceLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, 'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, @@ -26639,6 +26705,7 @@ def __init__(self, **kwargs): self.authentication_type = kwargs.get('authentication_type', None) self.user_name = kwargs.get('user_name', None) self.password = kwargs.get('password', None) + self.auth_headers = kwargs.get('auth_headers', 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) @@ -30015,7 +30082,8 @@ class SftpServerLinkedService(LinkedService): resultType integer), minimum: 0. :type port: object :param authentication_type: The authentication type to be used to connect - to the FTP server. Possible values include: 'Basic', 'SshPublicKey' + to the FTP server. Possible values include: 'Basic', 'SshPublicKey', + 'MultiFactor' :type authentication_type: str or ~azure.mgmt.datafactory.models.SftpAuthenticationType :param user_name: The username used to log on to the SFTP server. Type: @@ -34723,14 +34791,16 @@ class WebActivityAuthentication(Model): for ServicePrincipal :type pfx: ~azure.mgmt.datafactory.models.SecretBase :param username: Web activity authentication user name for basic - authentication or ClientID when used for ServicePrincipal - :type username: str + authentication or ClientID when used for ServicePrincipal. Type: string + (or Expression with resultType string). + :type username: object :param password: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal :type password: ~azure.mgmt.datafactory.models.SecretBase :param resource: Resource for which Azure Auth token will be requested - when using MSI Authentication. - :type resource: str + when using MSI Authentication. Type: string (or Expression with resultType + string). + :type resource: object :param user_tenant: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression with resultType string). @@ -34744,9 +34814,9 @@ class WebActivityAuthentication(Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'pfx': {'key': 'pfx', 'type': 'SecretBase'}, - 'username': {'key': 'username', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'object'}, 'password': {'key': 'password', 'type': 'SecretBase'}, - 'resource': {'key': 'resource', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, 'user_tenant': {'key': 'userTenant', 'type': 'object'}, } diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py index f4386d2b9084..6e56007ee25e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py @@ -2716,6 +2716,11 @@ class AzureBlobStorageLinkedService(LinkedService): AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :type azure_cloud_type: object + :param account_kind: Specify the kind of your storage account. Allowed + values are: Storage (general purpose v1), StorageV2 (general purpose v2), + BlobStorage, or BlockBlobStorage. Type: string (or Expression with + resultType string). + :type account_kind: str :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). @@ -2742,10 +2747,11 @@ class AzureBlobStorageLinkedService(LinkedService): 'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, + 'account_kind': {'key': 'typeProperties.accountKind', 'type': 'str'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'}, } - def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, account_key=None, sas_uri=None, sas_token=None, service_endpoint: str=None, service_principal_id=None, service_principal_key=None, tenant=None, azure_cloud_type=None, encrypted_credential: str=None, **kwargs) -> None: + def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, account_key=None, sas_uri=None, sas_token=None, service_endpoint: str=None, service_principal_id=None, service_principal_key=None, tenant=None, azure_cloud_type=None, account_kind: str=None, encrypted_credential: str=None, **kwargs) -> None: super(AzureBlobStorageLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.connection_string = connection_string self.account_key = account_key @@ -2756,6 +2762,7 @@ def __init__(self, *, additional_properties=None, connect_via=None, description: self.service_principal_key = service_principal_key self.tenant = tenant self.azure_cloud_type = azure_cloud_type + self.account_kind = account_kind self.encrypted_credential = encrypted_credential self.type = 'AzureBlobStorage' @@ -3611,28 +3618,25 @@ class AzureDataExplorerLinkedService(LinkedService): https://..kusto.windows.net. Type: string (or Expression with resultType string) :type endpoint: object - :param service_principal_id: Required. The ID of the service principal - used to authenticate against Azure Data Explorer. Type: string (or - Expression with resultType string). + :param service_principal_id: The ID of the service principal used to + authenticate against Azure Data Explorer. Type: string (or Expression with + resultType string). :type service_principal_id: object - :param service_principal_key: Required. The key of the service principal - used to authenticate against Kusto. + :param service_principal_key: The key of the service principal used to + authenticate against Kusto. :type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :param database: Required. Database name for connection. Type: string (or Expression with resultType string). :type database: object - :param tenant: Required. The name or ID of the tenant to which the service - principal belongs. Type: string (or Expression with resultType string). + :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 """ _validation = { 'type': {'required': True}, 'endpoint': {'required': True}, - 'service_principal_id': {'required': True}, - 'service_principal_key': {'required': True}, 'database': {'required': True}, - 'tenant': {'required': True}, } _attribute_map = { @@ -3649,7 +3653,7 @@ class AzureDataExplorerLinkedService(LinkedService): 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, } - def __init__(self, *, endpoint, service_principal_id, service_principal_key, database, tenant, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, **kwargs) -> None: + def __init__(self, *, endpoint, database, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, service_principal_id=None, service_principal_key=None, tenant=None, **kwargs) -> None: super(AzureDataExplorerLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.endpoint = endpoint self.service_principal_id = service_principal_id @@ -8947,6 +8951,39 @@ class CosmosDbLinkedService(LinkedService): :param account_key: The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. :type account_key: ~azure.mgmt.datafactory.models.SecretBase + :param service_principal_id: The client ID of the application in Azure + Active Directory used for Server-To-Server authentication. Type: string + (or Expression with resultType string). + :type service_principal_id: object + :param service_principal_credential_type: The service principal credential + type to use in Server-To-Server authentication. 'ServicePrincipalKey' for + key/secret, 'ServicePrincipalCert' for certificate. Type: string (or + Expression with resultType string). Possible values include: + 'ServicePrincipalKey', 'ServicePrincipalCert' + :type service_principal_credential_type: str or + ~azure.mgmt.datafactory.models.CosmosDbServicePrincipalCredentialType + :param service_principal_credential: The credential of the service + principal object in Azure Active Directory. If + servicePrincipalCredentialType is 'ServicePrincipalKey', + servicePrincipalCredential can be SecureString or + AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + 'ServicePrincipalCert', servicePrincipalCredential can only be + AzureKeyVaultSecretReference. + :type service_principal_credential: + ~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 azure_cloud_type: Indicates the azure cloud type of the service + principle auth. Allowed values are AzurePublic, AzureChina, + AzureUsGovernment, AzureGermany. Default value is the data factory + regions’ cloud type. Type: string (or Expression with resultType string). + :type azure_cloud_type: object + :param connection_mode: The connection mode used to access CosmosDB + account. Type: string (or Expression with resultType string). Possible + values include: 'Gateway', 'Direct' + :type connection_mode: str or + ~azure.mgmt.datafactory.models.CosmosDbConnectionMode :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). @@ -8968,15 +9005,27 @@ class CosmosDbLinkedService(LinkedService): 'account_endpoint': {'key': 'typeProperties.accountEndpoint', 'type': 'object'}, 'database': {'key': 'typeProperties.database', 'type': 'object'}, 'account_key': {'key': 'typeProperties.accountKey', 'type': 'SecretBase'}, + 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, + 'service_principal_credential_type': {'key': 'typeProperties.servicePrincipalCredentialType', 'type': 'str'}, + 'service_principal_credential': {'key': 'typeProperties.servicePrincipalCredential', 'type': 'SecretBase'}, + 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, + 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, + 'connection_mode': {'key': 'typeProperties.connectionMode', 'type': 'str'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, } - def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, account_endpoint=None, database=None, account_key=None, encrypted_credential=None, **kwargs) -> None: + def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, account_endpoint=None, database=None, account_key=None, service_principal_id=None, service_principal_credential_type=None, service_principal_credential=None, tenant=None, azure_cloud_type=None, connection_mode=None, encrypted_credential=None, **kwargs) -> None: super(CosmosDbLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.connection_string = connection_string self.account_endpoint = account_endpoint self.database = database self.account_key = account_key + self.service_principal_id = service_principal_id + self.service_principal_credential_type = service_principal_credential_type + self.service_principal_credential = service_principal_credential + self.tenant = tenant + self.azure_cloud_type = azure_cloud_type + self.connection_mode = connection_mode self.encrypted_credential = encrypted_credential self.type = 'CosmosDb' @@ -14195,8 +14244,9 @@ class FactoryIdentity(Model): All required parameters must be populated in order to send to Azure. - :ivar type: Required. The identity type. Default value: "SystemAssigned" . - :vartype type: str + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' + :type type: str or ~azure.mgmt.datafactory.models.FactoryIdentityType :ivar principal_id: The principal id of the identity. :vartype principal_id: str :ivar tenant_id: The client tenant id of the identity. @@ -14207,7 +14257,7 @@ class FactoryIdentity(Model): """ _validation = { - 'type': {'required': True, 'constant': True}, + 'type': {'required': True}, 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, } @@ -14219,10 +14269,9 @@ class FactoryIdentity(Model): 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{object}'}, } - type = "SystemAssigned" - - def __init__(self, *, user_assigned_identities=None, **kwargs) -> None: + def __init__(self, *, type, user_assigned_identities=None, **kwargs) -> None: super(FactoryIdentity, self).__init__(**kwargs) + self.type = type self.principal_id = None self.tenant_id = None self.user_assigned_identities = user_assigned_identities @@ -17643,6 +17692,10 @@ class HttpLinkedService(LinkedService): :param password: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param embedded_cert_data: Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or @@ -17681,18 +17734,20 @@ class HttpLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'embedded_cert_data': {'key': 'typeProperties.embeddedCertData', 'type': 'object'}, 'cert_thumbprint': {'key': 'typeProperties.certThumbprint', 'type': 'object'}, 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, 'enable_server_certificate_validation': {'key': 'typeProperties.enableServerCertificateValidation', 'type': 'object'}, } - def __init__(self, *, url, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, authentication_type=None, user_name=None, password=None, embedded_cert_data=None, cert_thumbprint=None, encrypted_credential=None, enable_server_certificate_validation=None, **kwargs) -> None: + def __init__(self, *, url, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, authentication_type=None, user_name=None, password=None, auth_headers=None, embedded_cert_data=None, cert_thumbprint=None, encrypted_credential=None, enable_server_certificate_validation=None, **kwargs) -> None: super(HttpLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.url = url self.authentication_type = authentication_type self.user_name = user_name self.password = password + self.auth_headers = auth_headers self.embedded_cert_data = embedded_cert_data self.cert_thumbprint = cert_thumbprint self.encrypted_credential = encrypted_credential @@ -22629,6 +22684,10 @@ class ODataLinkedService(LinkedService): :type user_name: object :param password: Password of the OData service. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param tenant: Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). @@ -22688,6 +22747,7 @@ class ODataLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, 'azure_cloud_type': {'key': 'typeProperties.azureCloudType', 'type': 'object'}, @@ -22699,12 +22759,13 @@ class ODataLinkedService(LinkedService): 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, } - def __init__(self, *, url, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, authentication_type=None, user_name=None, password=None, tenant=None, service_principal_id=None, azure_cloud_type=None, aad_resource_id=None, aad_service_principal_credential_type=None, service_principal_key=None, service_principal_embedded_cert=None, service_principal_embedded_cert_password=None, encrypted_credential=None, **kwargs) -> None: + def __init__(self, *, url, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, authentication_type=None, user_name=None, password=None, auth_headers=None, tenant=None, service_principal_id=None, azure_cloud_type=None, aad_resource_id=None, aad_service_principal_credential_type=None, service_principal_key=None, service_principal_embedded_cert=None, service_principal_embedded_cert_password=None, encrypted_credential=None, **kwargs) -> None: super(ODataLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.url = url self.authentication_type = authentication_type self.user_name = user_name self.password = password + self.auth_headers = auth_headers self.tenant = tenant self.service_principal_id = service_principal_id self.azure_cloud_type = azure_cloud_type @@ -26582,6 +26643,10 @@ class RestServiceLinkedService(LinkedService): :type user_name: object :param password: The password used in Basic authentication type. :type password: ~azure.mgmt.datafactory.models.SecretBase + :param auth_headers: The additional HTTP headers in the request to RESTful + API used for authorization. Type: object (or Expression with resultType + object). + :type auth_headers: object :param service_principal_id: The application's client ID used in AadServicePrincipal authentication type. :type service_principal_id: object @@ -26624,6 +26689,7 @@ class RestServiceLinkedService(LinkedService): 'authentication_type': {'key': 'typeProperties.authenticationType', 'type': 'str'}, 'user_name': {'key': 'typeProperties.userName', 'type': 'object'}, 'password': {'key': 'typeProperties.password', 'type': 'SecretBase'}, + 'auth_headers': {'key': 'typeProperties.authHeaders', 'type': 'object'}, 'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'}, 'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'}, 'tenant': {'key': 'typeProperties.tenant', 'type': 'object'}, @@ -26632,13 +26698,14 @@ class RestServiceLinkedService(LinkedService): 'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'}, } - def __init__(self, *, url, authentication_type, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, enable_server_certificate_validation=None, user_name=None, password=None, service_principal_id=None, service_principal_key=None, tenant=None, azure_cloud_type=None, aad_resource_id=None, encrypted_credential=None, **kwargs) -> None: + def __init__(self, *, url, authentication_type, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, enable_server_certificate_validation=None, user_name=None, password=None, auth_headers=None, service_principal_id=None, service_principal_key=None, tenant=None, azure_cloud_type=None, aad_resource_id=None, encrypted_credential=None, **kwargs) -> None: super(RestServiceLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs) self.url = url self.enable_server_certificate_validation = enable_server_certificate_validation self.authentication_type = authentication_type self.user_name = user_name self.password = password + self.auth_headers = auth_headers self.service_principal_id = service_principal_id self.service_principal_key = service_principal_key self.tenant = tenant @@ -30015,7 +30082,8 @@ class SftpServerLinkedService(LinkedService): resultType integer), minimum: 0. :type port: object :param authentication_type: The authentication type to be used to connect - to the FTP server. Possible values include: 'Basic', 'SshPublicKey' + to the FTP server. Possible values include: 'Basic', 'SshPublicKey', + 'MultiFactor' :type authentication_type: str or ~azure.mgmt.datafactory.models.SftpAuthenticationType :param user_name: The username used to log on to the SFTP server. Type: @@ -34723,14 +34791,16 @@ class WebActivityAuthentication(Model): for ServicePrincipal :type pfx: ~azure.mgmt.datafactory.models.SecretBase :param username: Web activity authentication user name for basic - authentication or ClientID when used for ServicePrincipal - :type username: str + authentication or ClientID when used for ServicePrincipal. Type: string + (or Expression with resultType string). + :type username: object :param password: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal :type password: ~azure.mgmt.datafactory.models.SecretBase :param resource: Resource for which Azure Auth token will be requested - when using MSI Authentication. - :type resource: str + when using MSI Authentication. Type: string (or Expression with resultType + string). + :type resource: object :param user_tenant: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression with resultType string). @@ -34744,13 +34814,13 @@ class WebActivityAuthentication(Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'pfx': {'key': 'pfx', 'type': 'SecretBase'}, - 'username': {'key': 'username', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'object'}, 'password': {'key': 'password', 'type': 'SecretBase'}, - 'resource': {'key': 'resource', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, 'user_tenant': {'key': 'userTenant', 'type': 'object'}, } - def __init__(self, *, type: str, pfx=None, username: str=None, password=None, resource: str=None, user_tenant=None, **kwargs) -> None: + def __init__(self, *, type: str, pfx=None, username=None, password=None, resource=None, user_tenant=None, **kwargs) -> None: super(WebActivityAuthentication, self).__init__(**kwargs) self.type = type self.pfx = pfx