Skip to content

Commit 94e83d8

Browse files
author
SDKAuto
committed
CodeGen from PR 14839 in Azure/azure-rest-api-specs
Merge ed6f91c70ea58154e9dac807da37c2ee2e0e2eeb into 9f25bad
1 parent fd411ac commit 94e83d8

File tree

67 files changed

+472
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+472
-299
lines changed

sdk/synapse/azure-mgmt-synapse/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
4+
"commit": "f40b25be0b162133b9b9d113ed9c3afb3ad4423d",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/synapse/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
77
"readme": "specification/synapse/resource-manager/readme.md"

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_synapse_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __init__(
221221
super(SynapseManagementClient, self).__init__(self.config.credentials, self.config)
222222

223223
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
224-
self.api_version = '2021-03-01'
224+
self.api_version = '2021-05-01'
225225
self._serialize = Serializer(client_models)
226226
self._deserialize = Deserializer(client_models)
227227

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from ._models_py3 import CmdkeySetup
2323
from ._models_py3 import ComponentSetup
2424
from ._models_py3 import CreateSqlPoolRestorePointDefinition
25+
from ._models_py3 import CspWorkspaceAdminProperties
2526
from ._models_py3 import CustomerManagedKeyDetails
2627
from ._models_py3 import CustomSetupBase
2728
from ._models_py3 import DataLakeStorageAccountDetails
@@ -59,6 +60,7 @@
5960
from ._models_py3 import IntegrationRuntimeVNetProperties
6061
from ._models_py3 import IpFirewallRuleInfo
6162
from ._models_py3 import IpFirewallRuleProperties
63+
from ._models_py3 import KekIdentityProperties
6264
from ._models_py3 import Key
6365
from ._models_py3 import LibraryInfo
6466
from ._models_py3 import LibraryRequirements
@@ -177,6 +179,7 @@
177179
from ._models import CmdkeySetup
178180
from ._models import ComponentSetup
179181
from ._models import CreateSqlPoolRestorePointDefinition
182+
from ._models import CspWorkspaceAdminProperties
180183
from ._models import CustomerManagedKeyDetails
181184
from ._models import CustomSetupBase
182185
from ._models import DataLakeStorageAccountDetails
@@ -214,6 +217,7 @@
214217
from ._models import IntegrationRuntimeVNetProperties
215218
from ._models import IpFirewallRuleInfo
216219
from ._models import IpFirewallRuleProperties
220+
from ._models import KekIdentityProperties
217221
from ._models import Key
218222
from ._models import LibraryInfo
219223
from ._models import LibraryRequirements
@@ -418,6 +422,7 @@
418422
'CmdkeySetup',
419423
'ComponentSetup',
420424
'CreateSqlPoolRestorePointDefinition',
425+
'CspWorkspaceAdminProperties',
421426
'CustomerManagedKeyDetails',
422427
'CustomSetupBase',
423428
'DataLakeStorageAccountDetails',
@@ -455,6 +460,7 @@
455460
'IntegrationRuntimeVNetProperties',
456461
'IpFirewallRuleInfo',
457462
'IpFirewallRuleProperties',
463+
'KekIdentityProperties',
458464
'Key',
459465
'LibraryInfo',
460466
'LibraryRequirements',

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/models/_models.py

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ class BigDataPoolResourceInfo(TrackedResource):
332332
'Large', 'XLarge', 'XXLarge', 'XXXLarge'
333333
:type node_size: str or ~azure.mgmt.synapse.models.NodeSize
334334
:param node_size_family: The kind of nodes that the Big Data pool
335-
provides. Possible values include: 'None', 'MemoryOptimized'
335+
provides. Possible values include: 'None', 'MemoryOptimized',
336+
'HardwareAcceleratedFPGA', 'HardwareAcceleratedGPU'
336337
:type node_size_family: str or ~azure.mgmt.synapse.models.NodeSizeFamily
337338
:ivar last_succeeded_timestamp: The time when the Big Data pool was
338339
updated successfully.
@@ -575,6 +576,23 @@ def __init__(self, **kwargs):
575576
self.restore_point_label = kwargs.get('restore_point_label', None)
576577

577578

579+
class CspWorkspaceAdminProperties(Model):
580+
"""Initial workspace AAD admin properties for a CSP subscription.
581+
582+
:param initial_workspace_admin_object_id: AAD object ID of initial
583+
workspace admin
584+
:type initial_workspace_admin_object_id: str
585+
"""
586+
587+
_attribute_map = {
588+
'initial_workspace_admin_object_id': {'key': 'initialWorkspaceAdminObjectId', 'type': 'str'},
589+
}
590+
591+
def __init__(self, **kwargs):
592+
super(CspWorkspaceAdminProperties, self).__init__(**kwargs)
593+
self.initial_workspace_admin_object_id = kwargs.get('initial_workspace_admin_object_id', None)
594+
595+
578596
class CustomerManagedKeyDetails(Model):
579597
"""Details of the customer managed key associated with the workspace.
580598
@@ -585,6 +603,8 @@ class CustomerManagedKeyDetails(Model):
585603
:vartype status: str
586604
:param key: The key object of the workspace
587605
:type key: ~azure.mgmt.synapse.models.WorkspaceKeyDetails
606+
:param kek_identity: Key encryption key
607+
:type kek_identity: ~azure.mgmt.synapse.models.KekIdentityProperties
588608
"""
589609

590610
_validation = {
@@ -594,12 +614,14 @@ class CustomerManagedKeyDetails(Model):
594614
_attribute_map = {
595615
'status': {'key': 'status', 'type': 'str'},
596616
'key': {'key': 'key', 'type': 'WorkspaceKeyDetails'},
617+
'kek_identity': {'key': 'kekIdentity', 'type': 'KekIdentityProperties'},
597618
}
598619

599620
def __init__(self, **kwargs):
600621
super(CustomerManagedKeyDetails, self).__init__(**kwargs)
601622
self.status = None
602623
self.key = kwargs.get('key', None)
624+
self.kek_identity = kwargs.get('kek_identity', None)
603625

604626

605627
class DataLakeStorageAccountDetails(Model):
@@ -2329,6 +2351,27 @@ def __init__(self, **kwargs):
23292351
self.start_ip_address = kwargs.get('start_ip_address', None)
23302352

23312353

2354+
class KekIdentityProperties(Model):
2355+
"""Key encryption key properties.
2356+
2357+
:param user_assigned_identity: User assigned identity resource Id
2358+
:type user_assigned_identity: str
2359+
:param use_system_assigned_identity: Boolean specifying whether to use
2360+
system assigned identity or not
2361+
:type use_system_assigned_identity: object
2362+
"""
2363+
2364+
_attribute_map = {
2365+
'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'},
2366+
'use_system_assigned_identity': {'key': 'useSystemAssignedIdentity', 'type': 'object'},
2367+
}
2368+
2369+
def __init__(self, **kwargs):
2370+
super(KekIdentityProperties, self).__init__(**kwargs)
2371+
self.user_assigned_identity = kwargs.get('user_assigned_identity', None)
2372+
self.use_system_assigned_identity = kwargs.get('use_system_assigned_identity', None)
2373+
2374+
23322375
class Key(ProxyResource):
23332376
"""A workspace key.
23342377
@@ -6936,10 +6979,14 @@ class Workspace(TrackedResource):
69366979
~azure.mgmt.synapse.models.PurviewConfiguration
69376980
:ivar adla_resource_id: The ADLA resource ID.
69386981
:vartype adla_resource_id: str
6939-
:param public_network_access: Enable or Disable pubic network access to
6982+
:param public_network_access: Enable or Disable public network access to
69406983
workspace. Possible values include: 'Enabled', 'Disabled'
69416984
:type public_network_access: str or
69426985
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess
6986+
:param csp_workspace_admin_properties: Initial workspace AAD admin
6987+
properties for a CSP subscription
6988+
:type csp_workspace_admin_properties:
6989+
~azure.mgmt.synapse.models.CspWorkspaceAdminProperties
69436990
:param identity: Identity of the workspace
69446991
:type identity: ~azure.mgmt.synapse.models.ManagedIdentity
69456992
"""
@@ -6978,6 +7025,7 @@ class Workspace(TrackedResource):
69787025
'purview_configuration': {'key': 'properties.purviewConfiguration', 'type': 'PurviewConfiguration'},
69797026
'adla_resource_id': {'key': 'properties.adlaResourceId', 'type': 'str'},
69807027
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
7028+
'csp_workspace_admin_properties': {'key': 'properties.cspWorkspaceAdminProperties', 'type': 'CspWorkspaceAdminProperties'},
69817029
'identity': {'key': 'identity', 'type': 'ManagedIdentity'},
69827030
}
69837031

@@ -7000,6 +7048,7 @@ def __init__(self, **kwargs):
70007048
self.purview_configuration = kwargs.get('purview_configuration', None)
70017049
self.adla_resource_id = None
70027050
self.public_network_access = kwargs.get('public_network_access', None)
7051+
self.csp_workspace_admin_properties = kwargs.get('csp_workspace_admin_properties', None)
70037052
self.identity = kwargs.get('identity', None)
70047053

70057054

@@ -7097,7 +7146,7 @@ class WorkspacePatchInfo(Model):
70977146
:vartype provisioning_state: str
70987147
:param encryption: The encryption details of the workspace
70997148
:type encryption: ~azure.mgmt.synapse.models.EncryptionDetails
7100-
:param public_network_access: Enable or Disable pubic network access to
7149+
:param public_network_access: Enable or Disable public network access to
71017150
workspace. Possible values include: 'Enabled', 'Disabled'
71027151
:type public_network_access: str or
71037152
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess

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

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ class BigDataPoolResourceInfo(TrackedResource):
332332
'Large', 'XLarge', 'XXLarge', 'XXXLarge'
333333
:type node_size: str or ~azure.mgmt.synapse.models.NodeSize
334334
:param node_size_family: The kind of nodes that the Big Data pool
335-
provides. Possible values include: 'None', 'MemoryOptimized'
335+
provides. Possible values include: 'None', 'MemoryOptimized',
336+
'HardwareAcceleratedFPGA', 'HardwareAcceleratedGPU'
336337
:type node_size_family: str or ~azure.mgmt.synapse.models.NodeSizeFamily
337338
:ivar last_succeeded_timestamp: The time when the Big Data pool was
338339
updated successfully.
@@ -575,6 +576,23 @@ def __init__(self, *, restore_point_label: str, **kwargs) -> None:
575576
self.restore_point_label = restore_point_label
576577

577578

579+
class CspWorkspaceAdminProperties(Model):
580+
"""Initial workspace AAD admin properties for a CSP subscription.
581+
582+
:param initial_workspace_admin_object_id: AAD object ID of initial
583+
workspace admin
584+
:type initial_workspace_admin_object_id: str
585+
"""
586+
587+
_attribute_map = {
588+
'initial_workspace_admin_object_id': {'key': 'initialWorkspaceAdminObjectId', 'type': 'str'},
589+
}
590+
591+
def __init__(self, *, initial_workspace_admin_object_id: str=None, **kwargs) -> None:
592+
super(CspWorkspaceAdminProperties, self).__init__(**kwargs)
593+
self.initial_workspace_admin_object_id = initial_workspace_admin_object_id
594+
595+
578596
class CustomerManagedKeyDetails(Model):
579597
"""Details of the customer managed key associated with the workspace.
580598
@@ -585,6 +603,8 @@ class CustomerManagedKeyDetails(Model):
585603
:vartype status: str
586604
:param key: The key object of the workspace
587605
:type key: ~azure.mgmt.synapse.models.WorkspaceKeyDetails
606+
:param kek_identity: Key encryption key
607+
:type kek_identity: ~azure.mgmt.synapse.models.KekIdentityProperties
588608
"""
589609

590610
_validation = {
@@ -594,12 +614,14 @@ class CustomerManagedKeyDetails(Model):
594614
_attribute_map = {
595615
'status': {'key': 'status', 'type': 'str'},
596616
'key': {'key': 'key', 'type': 'WorkspaceKeyDetails'},
617+
'kek_identity': {'key': 'kekIdentity', 'type': 'KekIdentityProperties'},
597618
}
598619

599-
def __init__(self, *, key=None, **kwargs) -> None:
620+
def __init__(self, *, key=None, kek_identity=None, **kwargs) -> None:
600621
super(CustomerManagedKeyDetails, self).__init__(**kwargs)
601622
self.status = None
602623
self.key = key
624+
self.kek_identity = kek_identity
603625

604626

605627
class DataLakeStorageAccountDetails(Model):
@@ -2329,6 +2351,27 @@ def __init__(self, *, end_ip_address: str=None, start_ip_address: str=None, **kw
23292351
self.start_ip_address = start_ip_address
23302352

23312353

2354+
class KekIdentityProperties(Model):
2355+
"""Key encryption key properties.
2356+
2357+
:param user_assigned_identity: User assigned identity resource Id
2358+
:type user_assigned_identity: str
2359+
:param use_system_assigned_identity: Boolean specifying whether to use
2360+
system assigned identity or not
2361+
:type use_system_assigned_identity: object
2362+
"""
2363+
2364+
_attribute_map = {
2365+
'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'},
2366+
'use_system_assigned_identity': {'key': 'useSystemAssignedIdentity', 'type': 'object'},
2367+
}
2368+
2369+
def __init__(self, *, user_assigned_identity: str=None, use_system_assigned_identity=None, **kwargs) -> None:
2370+
super(KekIdentityProperties, self).__init__(**kwargs)
2371+
self.user_assigned_identity = user_assigned_identity
2372+
self.use_system_assigned_identity = use_system_assigned_identity
2373+
2374+
23322375
class Key(ProxyResource):
23332376
"""A workspace key.
23342377
@@ -6936,10 +6979,14 @@ class Workspace(TrackedResource):
69366979
~azure.mgmt.synapse.models.PurviewConfiguration
69376980
:ivar adla_resource_id: The ADLA resource ID.
69386981
:vartype adla_resource_id: str
6939-
:param public_network_access: Enable or Disable pubic network access to
6982+
:param public_network_access: Enable or Disable public network access to
69406983
workspace. Possible values include: 'Enabled', 'Disabled'
69416984
:type public_network_access: str or
69426985
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess
6986+
:param csp_workspace_admin_properties: Initial workspace AAD admin
6987+
properties for a CSP subscription
6988+
:type csp_workspace_admin_properties:
6989+
~azure.mgmt.synapse.models.CspWorkspaceAdminProperties
69436990
:param identity: Identity of the workspace
69446991
:type identity: ~azure.mgmt.synapse.models.ManagedIdentity
69456992
"""
@@ -6978,10 +7025,11 @@ class Workspace(TrackedResource):
69787025
'purview_configuration': {'key': 'properties.purviewConfiguration', 'type': 'PurviewConfiguration'},
69797026
'adla_resource_id': {'key': 'properties.adlaResourceId', 'type': 'str'},
69807027
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
7028+
'csp_workspace_admin_properties': {'key': 'properties.cspWorkspaceAdminProperties', 'type': 'CspWorkspaceAdminProperties'},
69817029
'identity': {'key': 'identity', 'type': 'ManagedIdentity'},
69827030
}
69837031

6984-
def __init__(self, *, location: str, tags=None, default_data_lake_storage=None, sql_administrator_login_password: str=None, managed_resource_group_name: str=None, sql_administrator_login: str=None, virtual_network_profile=None, connectivity_endpoints=None, managed_virtual_network: str=None, private_endpoint_connections=None, encryption=None, managed_virtual_network_settings=None, workspace_repository_configuration=None, purview_configuration=None, public_network_access=None, identity=None, **kwargs) -> None:
7032+
def __init__(self, *, location: str, tags=None, default_data_lake_storage=None, sql_administrator_login_password: str=None, managed_resource_group_name: str=None, sql_administrator_login: str=None, virtual_network_profile=None, connectivity_endpoints=None, managed_virtual_network: str=None, private_endpoint_connections=None, encryption=None, managed_virtual_network_settings=None, workspace_repository_configuration=None, purview_configuration=None, public_network_access=None, csp_workspace_admin_properties=None, identity=None, **kwargs) -> None:
69857033
super(Workspace, self).__init__(tags=tags, location=location, **kwargs)
69867034
self.default_data_lake_storage = default_data_lake_storage
69877035
self.sql_administrator_login_password = sql_administrator_login_password
@@ -7000,6 +7048,7 @@ def __init__(self, *, location: str, tags=None, default_data_lake_storage=None,
70007048
self.purview_configuration = purview_configuration
70017049
self.adla_resource_id = None
70027050
self.public_network_access = public_network_access
7051+
self.csp_workspace_admin_properties = csp_workspace_admin_properties
70037052
self.identity = identity
70047053

70057054

@@ -7097,7 +7146,7 @@ class WorkspacePatchInfo(Model):
70977146
:vartype provisioning_state: str
70987147
:param encryption: The encryption details of the workspace
70997148
:type encryption: ~azure.mgmt.synapse.models.EncryptionDetails
7100-
:param public_network_access: Enable or Disable pubic network access to
7149+
:param public_network_access: Enable or Disable public network access to
71017150
workspace. Possible values include: 'Enabled', 'Disabled'
71027151
:type public_network_access: str or
71037152
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/models/_synapse_management_client_enums.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class NodeSizeFamily(str, Enum):
2727

2828
none = "None"
2929
memory_optimized = "MemoryOptimized"
30+
hardware_accelerated_fpga = "HardwareAcceleratedFPGA"
31+
hardware_accelerated_gpu = "HardwareAcceleratedGPU"
3032

3133

3234
class ProvisioningState(str, Enum):

0 commit comments

Comments
 (0)