Skip to content

Commit a7c4b24

Browse files
msyycSDKAuto
andauthored
[AutoRelease] t1-synapse-2021-04-07-18997 (Azure#17862)
* CodeGen from PR 13790 in Azure/azure-rest-api-specs t2 synapse readme config (Azure#13790) * version,CHANGELOG Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 32ef1c2 commit a7c4b24

File tree

72 files changed

+947
-513
lines changed

Some content is hidden

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

72 files changed

+947
-513
lines changed

sdk/synapse/azure-mgmt-synapse/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Release History
22

3+
## 0.8.0 (2021-04-07)
4+
5+
**Features**
6+
7+
- Model Workspace has a new parameter public_network_access
8+
- Model WorkspacePatchInfo has a new parameter public_network_access
9+
- Added operation group LibraryOperations
10+
- Added operation group LibrariesOperations
11+
312
## 0.7.0 (2021-01-28)
413

514
**Features**

sdk/synapse/azure-mgmt-synapse/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"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",
7+
"readme": "specification/synapse/resource-manager/readme.md"
8+
}

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

Lines changed: 110 additions & 100 deletions
Large diffs are not rendered by default.

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

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from ._models_py3 import Key
6363
from ._models_py3 import LibraryInfo
6464
from ._models_py3 import LibraryRequirements
65+
from ._models_py3 import LibraryResource
6566
from ._models_py3 import LinkedIntegrationRuntime
6667
from ._models_py3 import LinkedIntegrationRuntimeKeyAuthorization
6768
from ._models_py3 import LinkedIntegrationRuntimeRbacAuthorization
@@ -216,6 +217,7 @@
216217
from ._models import Key
217218
from ._models import LibraryInfo
218219
from ._models import LibraryRequirements
220+
from ._models import LibraryResource
219221
from ._models import LinkedIntegrationRuntime
220222
from ._models import LinkedIntegrationRuntimeKeyAuthorization
221223
from ._models import LinkedIntegrationRuntimeRbacAuthorization
@@ -326,6 +328,7 @@
326328
from ._paged_models import IntegrationRuntimeResourcePaged
327329
from ._paged_models import IpFirewallRuleInfoPaged
328330
from ._paged_models import KeyPaged
331+
from ._paged_models import LibraryResourcePaged
329332
from ._paged_models import PrivateEndpointConnectionForPrivateLinkHubPaged
330333
from ._paged_models import PrivateEndpointConnectionPaged
331334
from ._paged_models import PrivateLinkHubPaged
@@ -357,6 +360,20 @@
357360
NodeSize,
358361
NodeSizeFamily,
359362
ProvisioningState,
363+
IntegrationRuntimeType,
364+
IntegrationRuntimeState,
365+
DataFlowComputeType,
366+
IntegrationRuntimeSsisCatalogPricingTier,
367+
IntegrationRuntimeLicenseType,
368+
IntegrationRuntimeEntityReferenceType,
369+
IntegrationRuntimeEdition,
370+
ManagedIntegrationRuntimeNodeStatus,
371+
IntegrationRuntimeInternalChannelEncryptionMode,
372+
SelfHostedIntegrationRuntimeNodeStatus,
373+
IntegrationRuntimeUpdateResult,
374+
IntegrationRuntimeAutoUpdate,
375+
IntegrationRuntimeAuthKeyName,
376+
SsisObjectMetadataType,
360377
OperationStatus,
361378
StorageAccountType,
362379
GeoBackupPolicyState,
@@ -381,22 +398,9 @@
381398
DataMaskingFunction,
382399
SensitivityLabelUpdateKind,
383400
RecommendedSensitivityLabelUpdateKind,
384-
ResourceIdentityType,
385-
IntegrationRuntimeType,
386-
IntegrationRuntimeState,
387-
DataFlowComputeType,
388-
IntegrationRuntimeSsisCatalogPricingTier,
389-
IntegrationRuntimeLicenseType,
390-
IntegrationRuntimeEntityReferenceType,
391-
IntegrationRuntimeEdition,
392-
ManagedIntegrationRuntimeNodeStatus,
393-
IntegrationRuntimeInternalChannelEncryptionMode,
394-
SelfHostedIntegrationRuntimeNodeStatus,
395-
IntegrationRuntimeUpdateResult,
396-
IntegrationRuntimeAutoUpdate,
397-
IntegrationRuntimeAuthKeyName,
398-
SsisObjectMetadataType,
399401
ServerKeyType,
402+
WorkspacePublicNetworkAccess,
403+
ResourceIdentityType,
400404
SensitivityLabelSource,
401405
VulnerabilityAssessmentPolicyBaselineName,
402406
)
@@ -454,6 +458,7 @@
454458
'Key',
455459
'LibraryInfo',
456460
'LibraryRequirements',
461+
'LibraryResource',
457462
'LinkedIntegrationRuntime',
458463
'LinkedIntegrationRuntimeKeyAuthorization',
459464
'LinkedIntegrationRuntimeRbacAuthorization',
@@ -557,6 +562,13 @@
557562
'WorkspaceRepositoryConfiguration',
558563
'BigDataPoolResourceInfoPaged',
559564
'IpFirewallRuleInfoPaged',
565+
'IntegrationRuntimeResourcePaged',
566+
'KeyPaged',
567+
'LibraryResourcePaged',
568+
'PrivateEndpointConnectionPaged',
569+
'PrivateLinkResourcePaged',
570+
'PrivateLinkHubPaged',
571+
'PrivateEndpointConnectionForPrivateLinkHubPaged',
560572
'SqlPoolPaged',
561573
'GeoBackupPolicyPaged',
562574
'RestorePointPaged',
@@ -576,24 +588,32 @@
576588
'DataMaskingRulePaged',
577589
'WorkloadGroupPaged',
578590
'WorkloadClassifierPaged',
579-
'WorkspacePaged',
580-
'RestorableDroppedSqlPoolPaged',
581-
'IntegrationRuntimeResourcePaged',
582-
'PrivateLinkResourcePaged',
583-
'PrivateEndpointConnectionPaged',
584-
'PrivateLinkHubPaged',
585-
'PrivateEndpointConnectionForPrivateLinkHubPaged',
586591
'ServerBlobAuditingPolicyPaged',
587592
'ExtendedServerBlobAuditingPolicyPaged',
588593
'ServerSecurityAlertPolicyPaged',
589594
'ServerVulnerabilityAssessmentPaged',
590595
'EncryptionProtectorPaged',
591596
'ServerUsagePaged',
592597
'RecoverableSqlPoolPaged',
593-
'KeyPaged',
598+
'WorkspacePaged',
599+
'RestorableDroppedSqlPoolPaged',
594600
'NodeSize',
595601
'NodeSizeFamily',
596602
'ProvisioningState',
603+
'IntegrationRuntimeType',
604+
'IntegrationRuntimeState',
605+
'DataFlowComputeType',
606+
'IntegrationRuntimeSsisCatalogPricingTier',
607+
'IntegrationRuntimeLicenseType',
608+
'IntegrationRuntimeEntityReferenceType',
609+
'IntegrationRuntimeEdition',
610+
'ManagedIntegrationRuntimeNodeStatus',
611+
'IntegrationRuntimeInternalChannelEncryptionMode',
612+
'SelfHostedIntegrationRuntimeNodeStatus',
613+
'IntegrationRuntimeUpdateResult',
614+
'IntegrationRuntimeAutoUpdate',
615+
'IntegrationRuntimeAuthKeyName',
616+
'SsisObjectMetadataType',
597617
'OperationStatus',
598618
'StorageAccountType',
599619
'GeoBackupPolicyState',
@@ -618,22 +638,9 @@
618638
'DataMaskingFunction',
619639
'SensitivityLabelUpdateKind',
620640
'RecommendedSensitivityLabelUpdateKind',
621-
'ResourceIdentityType',
622-
'IntegrationRuntimeType',
623-
'IntegrationRuntimeState',
624-
'DataFlowComputeType',
625-
'IntegrationRuntimeSsisCatalogPricingTier',
626-
'IntegrationRuntimeLicenseType',
627-
'IntegrationRuntimeEntityReferenceType',
628-
'IntegrationRuntimeEdition',
629-
'ManagedIntegrationRuntimeNodeStatus',
630-
'IntegrationRuntimeInternalChannelEncryptionMode',
631-
'SelfHostedIntegrationRuntimeNodeStatus',
632-
'IntegrationRuntimeUpdateResult',
633-
'IntegrationRuntimeAutoUpdate',
634-
'IntegrationRuntimeAuthKeyName',
635-
'SsisObjectMetadataType',
636641
'ServerKeyType',
642+
'WorkspacePublicNetworkAccess',
643+
'ResourceIdentityType',
637644
'SensitivityLabelSource',
638645
'VulnerabilityAssessmentPolicyBaselineName',
639646
]

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

Lines changed: 83 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,6 +2454,73 @@ def __init__(self, **kwargs):
24542454
self.filename = kwargs.get('filename', None)
24552455

24562456

2457+
class LibraryResource(SubResource):
2458+
"""Library response details.
2459+
2460+
Variables are only populated by the server, and will be ignored when
2461+
sending a request.
2462+
2463+
:ivar id: Fully qualified resource ID for the resource. Ex -
2464+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
2465+
:vartype id: str
2466+
:ivar name: The name of the resource
2467+
:vartype name: str
2468+
:ivar type: The type of the resource. E.g.
2469+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
2470+
:vartype type: str
2471+
:ivar etag: Resource Etag.
2472+
:vartype etag: str
2473+
:param library_resource_name: Name of the library.
2474+
:type library_resource_name: str
2475+
:param path: Storage blob path of library.
2476+
:type path: str
2477+
:param container_name: Storage blob container name.
2478+
:type container_name: str
2479+
:ivar uploaded_timestamp: The last update time of the library.
2480+
:vartype uploaded_timestamp: datetime
2481+
:param library_resource_type: Type of the library.
2482+
:type library_resource_type: str
2483+
:ivar provisioning_status: Provisioning status of the library/package.
2484+
:vartype provisioning_status: str
2485+
:ivar creator_id: Creator Id of the library/package.
2486+
:vartype creator_id: str
2487+
"""
2488+
2489+
_validation = {
2490+
'id': {'readonly': True},
2491+
'name': {'readonly': True},
2492+
'type': {'readonly': True},
2493+
'etag': {'readonly': True},
2494+
'uploaded_timestamp': {'readonly': True},
2495+
'provisioning_status': {'readonly': True},
2496+
'creator_id': {'readonly': True},
2497+
}
2498+
2499+
_attribute_map = {
2500+
'id': {'key': 'id', 'type': 'str'},
2501+
'name': {'key': 'name', 'type': 'str'},
2502+
'type': {'key': 'type', 'type': 'str'},
2503+
'etag': {'key': 'etag', 'type': 'str'},
2504+
'library_resource_name': {'key': 'properties.name', 'type': 'str'},
2505+
'path': {'key': 'properties.path', 'type': 'str'},
2506+
'container_name': {'key': 'properties.containerName', 'type': 'str'},
2507+
'uploaded_timestamp': {'key': 'properties.uploadedTimestamp', 'type': 'iso-8601'},
2508+
'library_resource_type': {'key': 'properties.type', 'type': 'str'},
2509+
'provisioning_status': {'key': 'properties.provisioningStatus', 'type': 'str'},
2510+
'creator_id': {'key': 'properties.creatorId', 'type': 'str'},
2511+
}
2512+
2513+
def __init__(self, **kwargs):
2514+
super(LibraryResource, self).__init__(**kwargs)
2515+
self.library_resource_name = kwargs.get('library_resource_name', None)
2516+
self.path = kwargs.get('path', None)
2517+
self.container_name = kwargs.get('container_name', None)
2518+
self.uploaded_timestamp = None
2519+
self.library_resource_type = kwargs.get('library_resource_type', None)
2520+
self.provisioning_status = None
2521+
self.creator_id = None
2522+
2523+
24572524
class LinkedIntegrationRuntime(Model):
24582525
"""The linked integration runtime information.
24592526
@@ -5111,7 +5178,7 @@ class SqlPool(TrackedResource):
51115178
:param status: Resource status
51125179
:type status: str
51135180
:param restore_point_in_time: Snapshot time to restore
5114-
:type restore_point_in_time: str
5181+
:type restore_point_in_time: datetime
51155182
:param create_mode: What is this?
51165183
:type create_mode: str
51175184
:param creation_date: Date the SQL pool was created
@@ -5142,7 +5209,7 @@ class SqlPool(TrackedResource):
51425209
'recoverable_database_id': {'key': 'properties.recoverableDatabaseId', 'type': 'str'},
51435210
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
51445211
'status': {'key': 'properties.status', 'type': 'str'},
5145-
'restore_point_in_time': {'key': 'properties.restorePointInTime', 'type': 'str'},
5212+
'restore_point_in_time': {'key': 'properties.restorePointInTime', 'type': 'iso-8601'},
51465213
'create_mode': {'key': 'properties.createMode', 'type': 'str'},
51475214
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
51485215
'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'},
@@ -5565,7 +5632,7 @@ class SqlPoolPatchInfo(Model):
55655632
:param status: Resource status
55665633
:type status: str
55675634
:param restore_point_in_time: Snapshot time to restore
5568-
:type restore_point_in_time: str
5635+
:type restore_point_in_time: datetime
55695636
:param create_mode: What is this?
55705637
:type create_mode: str
55715638
:param creation_date: Date the SQL pool was created
@@ -5586,7 +5653,7 @@ class SqlPoolPatchInfo(Model):
55865653
'recoverable_database_id': {'key': 'properties.recoverableDatabaseId', 'type': 'str'},
55875654
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
55885655
'status': {'key': 'properties.status', 'type': 'str'},
5589-
'restore_point_in_time': {'key': 'properties.restorePointInTime', 'type': 'str'},
5656+
'restore_point_in_time': {'key': 'properties.restorePointInTime', 'type': 'iso-8601'},
55905657
'create_mode': {'key': 'properties.createMode', 'type': 'str'},
55915658
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
55925659
'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'},
@@ -6869,6 +6936,10 @@ class Workspace(TrackedResource):
68696936
~azure.mgmt.synapse.models.PurviewConfiguration
68706937
:ivar adla_resource_id: The ADLA resource ID.
68716938
:vartype adla_resource_id: str
6939+
:param public_network_access: Enable or Disable pubic network access to
6940+
workspace. Possible values include: 'Enabled', 'Disabled'
6941+
:type public_network_access: str or
6942+
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess
68726943
:param identity: Identity of the workspace
68736944
:type identity: ~azure.mgmt.synapse.models.ManagedIdentity
68746945
"""
@@ -6906,6 +6977,7 @@ class Workspace(TrackedResource):
69066977
'workspace_repository_configuration': {'key': 'properties.workspaceRepositoryConfiguration', 'type': 'WorkspaceRepositoryConfiguration'},
69076978
'purview_configuration': {'key': 'properties.purviewConfiguration', 'type': 'PurviewConfiguration'},
69086979
'adla_resource_id': {'key': 'properties.adlaResourceId', 'type': 'str'},
6980+
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
69096981
'identity': {'key': 'identity', 'type': 'ManagedIdentity'},
69106982
}
69116983

@@ -6927,6 +6999,7 @@ def __init__(self, **kwargs):
69276999
self.workspace_repository_configuration = kwargs.get('workspace_repository_configuration', None)
69287000
self.purview_configuration = kwargs.get('purview_configuration', None)
69297001
self.adla_resource_id = None
7002+
self.public_network_access = kwargs.get('public_network_access', None)
69307003
self.identity = kwargs.get('identity', None)
69317004

69327005

@@ -7024,6 +7097,10 @@ class WorkspacePatchInfo(Model):
70247097
:vartype provisioning_state: str
70257098
:param encryption: The encryption details of the workspace
70267099
:type encryption: ~azure.mgmt.synapse.models.EncryptionDetails
7100+
:param public_network_access: Enable or Disable pubic network access to
7101+
workspace. Possible values include: 'Enabled', 'Disabled'
7102+
:type public_network_access: str or
7103+
~azure.mgmt.synapse.models.WorkspacePublicNetworkAccess
70277104
"""
70287105

70297106
_validation = {
@@ -7039,6 +7116,7 @@ class WorkspacePatchInfo(Model):
70397116
'purview_configuration': {'key': 'properties.purviewConfiguration', 'type': 'PurviewConfiguration'},
70407117
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
70417118
'encryption': {'key': 'properties.encryption', 'type': 'EncryptionDetails'},
7119+
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
70427120
}
70437121

70447122
def __init__(self, **kwargs):
@@ -7051,6 +7129,7 @@ def __init__(self, **kwargs):
70517129
self.purview_configuration = kwargs.get('purview_configuration', None)
70527130
self.provisioning_state = None
70537131
self.encryption = kwargs.get('encryption', None)
7132+
self.public_network_access = kwargs.get('public_network_access', None)
70547133

70557134

70567135
class WorkspaceRepositoryConfiguration(Model):

0 commit comments

Comments
 (0)