Skip to content

Commit 86ac7db

Browse files
authored
Generated from d1ad1388e3f654de7cea6f0f62b951174b2fc578 (#3061)
change encryptedCredential type to string
1 parent a5ab9c7 commit 86ac7db

11 files changed

+350
-24
lines changed

azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@
138138
from .azure_sql_database_linked_service_py3 import AzureSqlDatabaseLinkedService
139139
from .sql_server_linked_service_py3 import SqlServerLinkedService
140140
from .azure_sql_dw_linked_service_py3 import AzureSqlDWLinkedService
141+
from .azure_table_storage_linked_service_py3 import AzureTableStorageLinkedService
142+
from .azure_blob_storage_linked_service_py3 import AzureBlobStorageLinkedService
141143
from .azure_storage_linked_service_py3 import AzureStorageLinkedService
142144
from .responsys_object_dataset_py3 import ResponsysObjectDataset
143145
from .salesforce_marketing_cloud_object_dataset_py3 import SalesforceMarketingCloudObjectDataset
@@ -471,6 +473,8 @@
471473
from .azure_sql_database_linked_service import AzureSqlDatabaseLinkedService
472474
from .sql_server_linked_service import SqlServerLinkedService
473475
from .azure_sql_dw_linked_service import AzureSqlDWLinkedService
476+
from .azure_table_storage_linked_service import AzureTableStorageLinkedService
477+
from .azure_blob_storage_linked_service import AzureBlobStorageLinkedService
474478
from .azure_storage_linked_service import AzureStorageLinkedService
475479
from .responsys_object_dataset import ResponsysObjectDataset
476480
from .salesforce_marketing_cloud_object_dataset import SalesforceMarketingCloudObjectDataset
@@ -872,6 +876,8 @@
872876
'AzureSqlDatabaseLinkedService',
873877
'SqlServerLinkedService',
874878
'AzureSqlDWLinkedService',
879+
'AzureTableStorageLinkedService',
880+
'AzureBlobStorageLinkedService',
875881
'AzureStorageLinkedService',
876882
'ResponsysObjectDataset',
877883
'SalesforceMarketingCloudObjectDataset',
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .linked_service import LinkedService
13+
14+
15+
class AzureBlobStorageLinkedService(LinkedService):
16+
"""The azure blob storage linked service.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param connect_via: The integration runtime reference.
24+
:type connect_via:
25+
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
26+
:param description: Linked service description.
27+
:type description: str
28+
:param parameters: Parameters for linked service.
29+
:type parameters: dict[str,
30+
~azure.mgmt.datafactory.models.ParameterSpecification]
31+
:param annotations: List of tags that can be used for describing the
32+
Dataset.
33+
:type annotations: list[object]
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param connection_string: The connection string. It is mutually exclusive
37+
with sasUri, serviceEndpoint property. Type: string, SecureString or
38+
AzureKeyVaultSecretReference.
39+
:type connection_string: object
40+
:param sas_uri: SAS URI of the Azure Blob Storage resource. It is mutually
41+
exclusive with connectionString, serviceEndpoint property.
42+
:type sas_uri: ~azure.mgmt.datafactory.models.SecretBase
43+
:param service_endpoint: Blob service endpoint of the Azure Blob Storage
44+
resource. It is mutually exclusive with connectionString, sasUri property.
45+
:type service_endpoint: str
46+
:param service_principal_id: The ID of the service principal used to
47+
authenticate against Azure SQL Data Warehouse. Type: string (or Expression
48+
with resultType string).
49+
:type service_principal_id: object
50+
:param service_principal_key: The key of the service principal used to
51+
authenticate against Azure SQL Data Warehouse.
52+
:type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase
53+
:param tenant: The name or ID of the tenant to which the service principal
54+
belongs. Type: string (or Expression with resultType string).
55+
:type tenant: object
56+
:param encrypted_credential: The encrypted credential used for
57+
authentication. Credentials are encrypted using the integration runtime
58+
credential manager. Type: string (or Expression with resultType string).
59+
:type encrypted_credential: str
60+
"""
61+
62+
_validation = {
63+
'type': {'required': True},
64+
}
65+
66+
_attribute_map = {
67+
'additional_properties': {'key': '', 'type': '{object}'},
68+
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
69+
'description': {'key': 'description', 'type': 'str'},
70+
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
71+
'annotations': {'key': 'annotations', 'type': '[object]'},
72+
'type': {'key': 'type', 'type': 'str'},
73+
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
74+
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
75+
'service_endpoint': {'key': 'typeProperties.serviceEndpoint', 'type': 'str'},
76+
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
77+
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
78+
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
79+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'},
80+
}
81+
82+
def __init__(self, **kwargs):
83+
super(AzureBlobStorageLinkedService, self).__init__(**kwargs)
84+
self.connection_string = kwargs.get('connection_string', None)
85+
self.sas_uri = kwargs.get('sas_uri', None)
86+
self.service_endpoint = kwargs.get('service_endpoint', None)
87+
self.service_principal_id = kwargs.get('service_principal_id', None)
88+
self.service_principal_key = kwargs.get('service_principal_key', None)
89+
self.tenant = kwargs.get('tenant', None)
90+
self.encrypted_credential = kwargs.get('encrypted_credential', None)
91+
self.type = 'AzureBlobStorage'
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .linked_service_py3 import LinkedService
13+
14+
15+
class AzureBlobStorageLinkedService(LinkedService):
16+
"""The azure blob storage linked service.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param connect_via: The integration runtime reference.
24+
:type connect_via:
25+
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
26+
:param description: Linked service description.
27+
:type description: str
28+
:param parameters: Parameters for linked service.
29+
:type parameters: dict[str,
30+
~azure.mgmt.datafactory.models.ParameterSpecification]
31+
:param annotations: List of tags that can be used for describing the
32+
Dataset.
33+
:type annotations: list[object]
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param connection_string: The connection string. It is mutually exclusive
37+
with sasUri, serviceEndpoint property. Type: string, SecureString or
38+
AzureKeyVaultSecretReference.
39+
:type connection_string: object
40+
:param sas_uri: SAS URI of the Azure Blob Storage resource. It is mutually
41+
exclusive with connectionString, serviceEndpoint property.
42+
:type sas_uri: ~azure.mgmt.datafactory.models.SecretBase
43+
:param service_endpoint: Blob service endpoint of the Azure Blob Storage
44+
resource. It is mutually exclusive with connectionString, sasUri property.
45+
:type service_endpoint: str
46+
:param service_principal_id: The ID of the service principal used to
47+
authenticate against Azure SQL Data Warehouse. Type: string (or Expression
48+
with resultType string).
49+
:type service_principal_id: object
50+
:param service_principal_key: The key of the service principal used to
51+
authenticate against Azure SQL Data Warehouse.
52+
:type service_principal_key: ~azure.mgmt.datafactory.models.SecretBase
53+
:param tenant: The name or ID of the tenant to which the service principal
54+
belongs. Type: string (or Expression with resultType string).
55+
:type tenant: object
56+
:param encrypted_credential: The encrypted credential used for
57+
authentication. Credentials are encrypted using the integration runtime
58+
credential manager. Type: string (or Expression with resultType string).
59+
:type encrypted_credential: str
60+
"""
61+
62+
_validation = {
63+
'type': {'required': True},
64+
}
65+
66+
_attribute_map = {
67+
'additional_properties': {'key': '', 'type': '{object}'},
68+
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
69+
'description': {'key': 'description', 'type': 'str'},
70+
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
71+
'annotations': {'key': 'annotations', 'type': '[object]'},
72+
'type': {'key': 'type', 'type': 'str'},
73+
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
74+
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
75+
'service_endpoint': {'key': 'typeProperties.serviceEndpoint', 'type': 'str'},
76+
'service_principal_id': {'key': 'typeProperties.servicePrincipalId', 'type': 'object'},
77+
'service_principal_key': {'key': 'typeProperties.servicePrincipalKey', 'type': 'SecretBase'},
78+
'tenant': {'key': 'typeProperties.tenant', 'type': 'object'},
79+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'},
80+
}
81+
82+
def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, sas_uri=None, service_endpoint: str=None, service_principal_id=None, service_principal_key=None, tenant=None, encrypted_credential: str=None, **kwargs) -> None:
83+
super(AzureBlobStorageLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs)
84+
self.connection_string = connection_string
85+
self.sas_uri = sas_uri
86+
self.service_endpoint = service_endpoint
87+
self.service_principal_id = service_principal_id
88+
self.service_principal_key = service_principal_key
89+
self.tenant = tenant
90+
self.encrypted_credential = encrypted_credential
91+
self.type = 'AzureBlobStorage'

azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_storage_linked_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AzureStorageLinkedService(LinkedService):
4343
:param encrypted_credential: The encrypted credential used for
4444
authentication. Credentials are encrypted using the integration runtime
4545
credential manager. Type: string (or Expression with resultType string).
46-
:type encrypted_credential: object
46+
:type encrypted_credential: str
4747
"""
4848

4949
_validation = {
@@ -59,7 +59,7 @@ class AzureStorageLinkedService(LinkedService):
5959
'type': {'key': 'type', 'type': 'str'},
6060
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
6161
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
62-
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
62+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'},
6363
}
6464

6565
def __init__(self, **kwargs):

azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_storage_linked_service_py3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AzureStorageLinkedService(LinkedService):
4343
:param encrypted_credential: The encrypted credential used for
4444
authentication. Credentials are encrypted using the integration runtime
4545
credential manager. Type: string (or Expression with resultType string).
46-
:type encrypted_credential: object
46+
:type encrypted_credential: str
4747
"""
4848

4949
_validation = {
@@ -59,10 +59,10 @@ class AzureStorageLinkedService(LinkedService):
5959
'type': {'key': 'type', 'type': 'str'},
6060
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
6161
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
62-
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
62+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'},
6363
}
6464

65-
def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, sas_uri=None, encrypted_credential=None, **kwargs) -> None:
65+
def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, sas_uri=None, encrypted_credential: str=None, **kwargs) -> None:
6666
super(AzureStorageLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs)
6767
self.connection_string = connection_string
6868
self.sas_uri = sas_uri
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .linked_service import LinkedService
13+
14+
15+
class AzureTableStorageLinkedService(LinkedService):
16+
"""The azure table storage linked service.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param connect_via: The integration runtime reference.
24+
:type connect_via:
25+
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
26+
:param description: Linked service description.
27+
:type description: str
28+
:param parameters: Parameters for linked service.
29+
:type parameters: dict[str,
30+
~azure.mgmt.datafactory.models.ParameterSpecification]
31+
:param annotations: List of tags that can be used for describing the
32+
Dataset.
33+
:type annotations: list[object]
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param connection_string: The connection string. It is mutually exclusive
37+
with sasUri property. Type: string, SecureString or
38+
AzureKeyVaultSecretReference.
39+
:type connection_string: object
40+
:param sas_uri: SAS URI of the Azure Storage resource. It is mutually
41+
exclusive with connectionString property.
42+
:type sas_uri: ~azure.mgmt.datafactory.models.SecretBase
43+
:param encrypted_credential: The encrypted credential used for
44+
authentication. Credentials are encrypted using the integration runtime
45+
credential manager. Type: string (or Expression with resultType string).
46+
:type encrypted_credential: str
47+
"""
48+
49+
_validation = {
50+
'type': {'required': True},
51+
}
52+
53+
_attribute_map = {
54+
'additional_properties': {'key': '', 'type': '{object}'},
55+
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
56+
'description': {'key': 'description', 'type': 'str'},
57+
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
58+
'annotations': {'key': 'annotations', 'type': '[object]'},
59+
'type': {'key': 'type', 'type': 'str'},
60+
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
61+
'sas_uri': {'key': 'typeProperties.sasUri', 'type': 'SecretBase'},
62+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'str'},
63+
}
64+
65+
def __init__(self, **kwargs):
66+
super(AzureTableStorageLinkedService, self).__init__(**kwargs)
67+
self.connection_string = kwargs.get('connection_string', None)
68+
self.sas_uri = kwargs.get('sas_uri', None)
69+
self.encrypted_credential = kwargs.get('encrypted_credential', None)
70+
self.type = 'AzureTableStorage'

0 commit comments

Comments
 (0)