Skip to content

Commit d278783

Browse files
author
SDKAuto
committed
CodeGen from PR 28572 in Azure/azure-rest-api-specs
Merge 6e54f92b83f66e11b0fa5c22c85eae9ee1a3294f into 1710ec7f391adbf27ec7071d63553f0f476637bc
1 parent 2669c52 commit d278783

File tree

4 files changed

+50
-12
lines changed

4 files changed

+50
-12
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "9716e0c05a8c278ea44d8aa3f3b8ece46fb62ba2",
2+
"commit": "44d5fffda451dbf7d5a58a0440b5c7faa5d9de48",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
66
"@autorest/[email protected]",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
1010
"readme": "specification/datafactory/resource-manager/readme.md"
1111
}

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "1.0.0"

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ class ScriptActivityParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
809809

810810

811811
class ScriptType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
812-
"""The type of the query. Type: string."""
812+
"""The type of the ScriptActivityScriptBlock."""
813813

814814
QUERY = "Query"
815815
NON_QUERY = "NonQuery"

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7266,6 +7266,17 @@ class AzureDatabricksLinkedService(LinkedService): # pylint: disable=too-many-i
72667266
:ivar policy_id: The policy id for limiting the ability to configure clusters based on a user
72677267
defined set of rules. Type: string (or Expression with resultType string).
72687268
:vartype policy_id: JSON
7269+
:ivar new_cluster_attributes: A set of optional, user-specified cluster attributes key-value
7270+
pairs.
7271+
:vartype new_cluster_attributes: dict[str, JSON]
7272+
:ivar cluster_option: Cluster option (Fixed / Autoscaling / Single Node) to enables the cluster
7273+
nodes to be fixed or automatically scale between the minimum and maximum number of nodes, based
7274+
on load. Single node clusters consists of a driver but no workers. Type: string (or Expression
7275+
with resultType string).
7276+
:vartype cluster_option: JSON
7277+
:ivar data_security_mode: Access mode for data secured in unity catalog. Type: string (or
7278+
Expression with resultType string).
7279+
:vartype data_security_mode: JSON
72697280
:ivar credential: The credential reference containing authentication information.
72707281
:vartype credential: ~azure.mgmt.datafactory.models.CredentialReference
72717282
"""
@@ -7300,6 +7311,9 @@ class AzureDatabricksLinkedService(LinkedService): # pylint: disable=too-many-i
73007311
"new_cluster_enable_elastic_disk": {"key": "typeProperties.newClusterEnableElasticDisk", "type": "object"},
73017312
"encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"},
73027313
"policy_id": {"key": "typeProperties.policyId", "type": "object"},
7314+
"new_cluster_attributes": {"key": "typeProperties.newClusterAttributes", "type": "{object}"},
7315+
"cluster_option": {"key": "typeProperties.clusterOption", "type": "object"},
7316+
"data_security_mode": {"key": "typeProperties.dataSecurityMode", "type": "object"},
73037317
"credential": {"key": "typeProperties.credential", "type": "CredentialReference"},
73047318
}
73057319

@@ -7329,6 +7343,9 @@ def __init__( # pylint: disable=too-many-locals
73297343
new_cluster_enable_elastic_disk: Optional[JSON] = None,
73307344
encrypted_credential: Optional[str] = None,
73317345
policy_id: Optional[JSON] = None,
7346+
new_cluster_attributes: Optional[Dict[str, JSON]] = None,
7347+
cluster_option: Optional[JSON] = None,
7348+
data_security_mode: Optional[JSON] = None,
73327349
credential: Optional["_models.CredentialReference"] = None,
73337350
**kwargs: Any
73347351
) -> None:
@@ -7408,6 +7425,17 @@ def __init__( # pylint: disable=too-many-locals
74087425
:keyword policy_id: The policy id for limiting the ability to configure clusters based on a
74097426
user defined set of rules. Type: string (or Expression with resultType string).
74107427
:paramtype policy_id: JSON
7428+
:keyword new_cluster_attributes: A set of optional, user-specified cluster attributes key-value
7429+
pairs.
7430+
:paramtype new_cluster_attributes: dict[str, JSON]
7431+
:keyword cluster_option: Cluster option (Fixed / Autoscaling / Single Node) to enables the
7432+
cluster nodes to be fixed or automatically scale between the minimum and maximum number of
7433+
nodes, based on load. Single node clusters consists of a driver but no workers. Type: string
7434+
(or Expression with resultType string).
7435+
:paramtype cluster_option: JSON
7436+
:keyword data_security_mode: Access mode for data secured in unity catalog. Type: string (or
7437+
Expression with resultType string).
7438+
:paramtype data_security_mode: JSON
74117439
:keyword credential: The credential reference containing authentication information.
74127440
:paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference
74137441
"""
@@ -7438,6 +7466,9 @@ def __init__( # pylint: disable=too-many-locals
74387466
self.new_cluster_enable_elastic_disk = new_cluster_enable_elastic_disk
74397467
self.encrypted_credential = encrypted_credential
74407468
self.policy_id = policy_id
7469+
self.new_cluster_attributes = new_cluster_attributes
7470+
self.cluster_option = cluster_option
7471+
self.data_security_mode = data_security_mode
74417472
self.credential = credential
74427473

74437474

@@ -38765,6 +38796,8 @@ class ManagedIdentityCredential(Credential):
3876538796
:vartype description: str
3876638797
:ivar annotations: List of tags that can be used for describing the Credential.
3876738798
:vartype annotations: list[JSON]
38799+
:ivar resource_id: The resource id of user assigned managed identity.
38800+
:vartype resource_id: str
3876838801
"""
3876938802

3877038803
_validation = {
@@ -38776,6 +38809,7 @@ class ManagedIdentityCredential(Credential):
3877638809
"type": {"key": "type", "type": "str"},
3877738810
"description": {"key": "description", "type": "str"},
3877838811
"annotations": {"key": "annotations", "type": "[object]"},
38812+
"resource_id": {"key": "typeProperties.resourceId", "type": "str"},
3877938813
}
3878038814

3878138815
def __init__(
@@ -38784,6 +38818,7 @@ def __init__(
3878438818
additional_properties: Optional[Dict[str, JSON]] = None,
3878538819
description: Optional[str] = None,
3878638820
annotations: Optional[List[JSON]] = None,
38821+
resource_id: Optional[str] = None,
3878738822
**kwargs: Any
3878838823
) -> None:
3878938824
"""
@@ -38794,11 +38829,14 @@ def __init__(
3879438829
:paramtype description: str
3879538830
:keyword annotations: List of tags that can be used for describing the Credential.
3879638831
:paramtype annotations: list[JSON]
38832+
:keyword resource_id: The resource id of user assigned managed identity.
38833+
:paramtype resource_id: str
3879738834
"""
3879838835
super().__init__(
3879938836
additional_properties=additional_properties, description=description, annotations=annotations, **kwargs
3880038837
)
3880138838
self.type: str = "ManagedIdentity"
38839+
self.resource_id = resource_id
3880238840

3880338841

3880438842
class ManagedIdentityCredentialResource(CredentialResource):
@@ -57548,9 +57586,9 @@ class ScriptActivityScriptBlock(_serialization.Model):
5754857586

5754957587
:ivar text: The query text. Type: string (or Expression with resultType string). Required.
5755057588
:vartype text: JSON
57551-
:ivar type: The type of the query. Type: string. Required. Known values are: "Query" and
57552-
"NonQuery".
57553-
:vartype type: str or ~azure.mgmt.datafactory.models.ScriptType
57589+
:ivar type: The type of the query. Please refer to the ScriptType for valid options. Type:
57590+
string (or Expression with resultType string). Required.
57591+
:vartype type: JSON
5755457592
:ivar parameters: Array of script parameters. Type: array.
5755557593
:vartype parameters: list[~azure.mgmt.datafactory.models.ScriptActivityParameter]
5755657594
"""
@@ -57562,24 +57600,24 @@ class ScriptActivityScriptBlock(_serialization.Model):
5756257600

5756357601
_attribute_map = {
5756457602
"text": {"key": "text", "type": "object"},
57565-
"type": {"key": "type", "type": "str"},
57603+
"type": {"key": "type", "type": "object"},
5756657604
"parameters": {"key": "parameters", "type": "[ScriptActivityParameter]"},
5756757605
}
5756857606

5756957607
def __init__(
5757057608
self,
5757157609
*,
5757257610
text: JSON,
57573-
type: Union[str, "_models.ScriptType"],
57611+
type: JSON,
5757457612
parameters: Optional[List["_models.ScriptActivityParameter"]] = None,
5757557613
**kwargs: Any
5757657614
) -> None:
5757757615
"""
5757857616
:keyword text: The query text. Type: string (or Expression with resultType string). Required.
5757957617
:paramtype text: JSON
57580-
:keyword type: The type of the query. Type: string. Required. Known values are: "Query" and
57581-
"NonQuery".
57582-
:paramtype type: str or ~azure.mgmt.datafactory.models.ScriptType
57618+
:keyword type: The type of the query. Please refer to the ScriptType for valid options. Type:
57619+
string (or Expression with resultType string). Required.
57620+
:paramtype type: JSON
5758357621
:keyword parameters: Array of script parameters. Type: array.
5758457622
:paramtype parameters: list[~azure.mgmt.datafactory.models.ScriptActivityParameter]
5758557623
"""

0 commit comments

Comments
 (0)