Skip to content

Commit 0dd1efa

Browse files
author
SDKAuto
committed
CodeGen from PR 15602 in Azure/azure-rest-api-specs
Merge 157d7a7535ce48a107776afeb4b36d898cb95e8b into 60d6c39
1 parent 1bed1fd commit 0dd1efa

File tree

141 files changed

+3793
-1424
lines changed

Some content is hidden

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

141 files changed

+3793
-1424
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.0.6369",
3-
"use": "@autorest/[email protected]",
4-
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "f66ce854deff8d80fd8554cdfa7a18ddf8b053f9",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/synapse/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.2 --version=3.0.6369",
9+
"autorest_command": "autorest specification/synapse/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected].2 --version=3.4.5",
710
"readme": "specification/synapse/resource-manager/readme.md"
811
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-03-01"
51+
self.api_version = "2021-06-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
5454
self._configure(**kwargs)

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-03-01",
3-
"total_api_version_list": ["2021-03-01"],
2+
"chosen_version": "2021-06-01-preview",
3+
"total_api_version_list": ["2021-06-01-preview"],
44
"client": {
55
"name": "SynapseManagementClient",
66
"filename": "_synapse_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -158,12 +158,9 @@
158158
"workspace_aad_admins": "WorkspaceAadAdminsOperations",
159159
"workspace_sql_aad_admins": "WorkspaceSqlAadAdminsOperations",
160160
"workspace_managed_identity_sql_control_settings": "WorkspaceManagedIdentitySqlControlSettingsOperations",
161-
"restorable_dropped_sql_pools": "RestorableDroppedSqlPoolsOperations"
162-
},
163-
"operation_mixins": {
164-
"sync_imports": "None",
165-
"async_imports": "None",
166-
"operations": {
167-
}
161+
"restorable_dropped_sql_pools": "RestorableDroppedSqlPoolsOperations",
162+
"spark_configuration": "SparkConfigurationOperations",
163+
"spark_configurations": "SparkConfigurationsOperations",
164+
"azure_ad_only_authentications": "AzureADOnlyAuthenticationsOperations"
168165
}
169166
}

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import SynapseManagementClientConfiguration
2122
from .operations import BigDataPoolsOperations
@@ -79,6 +80,9 @@
7980
from .operations import WorkspaceSqlAadAdminsOperations
8081
from .operations import WorkspaceManagedIdentitySqlControlSettingsOperations
8182
from .operations import RestorableDroppedSqlPoolsOperations
83+
from .operations import SparkConfigurationOperations
84+
from .operations import SparkConfigurationsOperations
85+
from .operations import AzureADOnlyAuthenticationsOperations
8286
from . import models
8387

8488

@@ -207,6 +211,12 @@ class SynapseManagementClient(object):
207211
:vartype workspace_managed_identity_sql_control_settings: azure.mgmt.synapse.operations.WorkspaceManagedIdentitySqlControlSettingsOperations
208212
:ivar restorable_dropped_sql_pools: RestorableDroppedSqlPoolsOperations operations
209213
:vartype restorable_dropped_sql_pools: azure.mgmt.synapse.operations.RestorableDroppedSqlPoolsOperations
214+
:ivar spark_configuration: SparkConfigurationOperations operations
215+
:vartype spark_configuration: azure.mgmt.synapse.operations.SparkConfigurationOperations
216+
:ivar spark_configurations: SparkConfigurationsOperations operations
217+
:vartype spark_configurations: azure.mgmt.synapse.operations.SparkConfigurationsOperations
218+
:ivar azure_ad_only_authentications: AzureADOnlyAuthenticationsOperations operations
219+
:vartype azure_ad_only_authentications: azure.mgmt.synapse.operations.AzureADOnlyAuthenticationsOperations
210220
:param credential: Credential needed for the client to connect to Azure.
211221
:type credential: ~azure.core.credentials.TokenCredential
212222
:param subscription_id: The ID of the target subscription.
@@ -355,6 +365,30 @@ def __init__(
355365
self._client, self._config, self._serialize, self._deserialize)
356366
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
357367
self._client, self._config, self._serialize, self._deserialize)
368+
self.spark_configuration = SparkConfigurationOperations(
369+
self._client, self._config, self._serialize, self._deserialize)
370+
self.spark_configurations = SparkConfigurationsOperations(
371+
self._client, self._config, self._serialize, self._deserialize)
372+
self.azure_ad_only_authentications = AzureADOnlyAuthenticationsOperations(
373+
self._client, self._config, self._serialize, self._deserialize)
374+
375+
def _send_request(self, http_request, **kwargs):
376+
# type: (HttpRequest, Any) -> HttpResponse
377+
"""Runs the network request through the client's chained policies.
378+
379+
:param http_request: The network request you want to make. Required.
380+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
381+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
382+
:return: The response of your network call. Does not do error handling on your response.
383+
:rtype: ~azure.core.pipeline.transport.HttpResponse
384+
"""
385+
path_format_arguments = {
386+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
387+
}
388+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
389+
stream = kwargs.pop("stream", True)
390+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
391+
return pipeline_response.http_response
358392

359393
def close(self):
360394
# type: () -> None

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_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 = "2.0.0"
9+
VERSION = "1.0.0b1"

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-03-01"
48+
self.api_version = "2021-06-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -77,6 +78,9 @@
7778
from .operations import WorkspaceSqlAadAdminsOperations
7879
from .operations import WorkspaceManagedIdentitySqlControlSettingsOperations
7980
from .operations import RestorableDroppedSqlPoolsOperations
81+
from .operations import SparkConfigurationOperations
82+
from .operations import SparkConfigurationsOperations
83+
from .operations import AzureADOnlyAuthenticationsOperations
8084
from .. import models
8185

8286

@@ -205,6 +209,12 @@ class SynapseManagementClient(object):
205209
:vartype workspace_managed_identity_sql_control_settings: azure.mgmt.synapse.aio.operations.WorkspaceManagedIdentitySqlControlSettingsOperations
206210
:ivar restorable_dropped_sql_pools: RestorableDroppedSqlPoolsOperations operations
207211
:vartype restorable_dropped_sql_pools: azure.mgmt.synapse.aio.operations.RestorableDroppedSqlPoolsOperations
212+
:ivar spark_configuration: SparkConfigurationOperations operations
213+
:vartype spark_configuration: azure.mgmt.synapse.aio.operations.SparkConfigurationOperations
214+
:ivar spark_configurations: SparkConfigurationsOperations operations
215+
:vartype spark_configurations: azure.mgmt.synapse.aio.operations.SparkConfigurationsOperations
216+
:ivar azure_ad_only_authentications: AzureADOnlyAuthenticationsOperations operations
217+
:vartype azure_ad_only_authentications: azure.mgmt.synapse.aio.operations.AzureADOnlyAuthenticationsOperations
208218
:param credential: Credential needed for the client to connect to Azure.
209219
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
210220
:param subscription_id: The ID of the target subscription.
@@ -352,6 +362,29 @@ def __init__(
352362
self._client, self._config, self._serialize, self._deserialize)
353363
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
354364
self._client, self._config, self._serialize, self._deserialize)
365+
self.spark_configuration = SparkConfigurationOperations(
366+
self._client, self._config, self._serialize, self._deserialize)
367+
self.spark_configurations = SparkConfigurationsOperations(
368+
self._client, self._config, self._serialize, self._deserialize)
369+
self.azure_ad_only_authentications = AzureADOnlyAuthenticationsOperations(
370+
self._client, self._config, self._serialize, self._deserialize)
371+
372+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
373+
"""Runs the network request through the client's chained policies.
374+
375+
:param http_request: The network request you want to make. Required.
376+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
377+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
378+
:return: The response of your network call. Does not do error handling on your response.
379+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
380+
"""
381+
path_format_arguments = {
382+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
383+
}
384+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
385+
stream = kwargs.pop("stream", True)
386+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
387+
return pipeline_response.http_response
355388

356389
async def close(self) -> None:
357390
await self._client.close()

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
from ._workspace_sql_aad_admins_operations import WorkspaceSqlAadAdminsOperations
6868
from ._workspace_managed_identity_sql_control_settings_operations import WorkspaceManagedIdentitySqlControlSettingsOperations
6969
from ._restorable_dropped_sql_pools_operations import RestorableDroppedSqlPoolsOperations
70+
from ._spark_configuration_operations import SparkConfigurationOperations
71+
from ._spark_configurations_operations import SparkConfigurationsOperations
72+
from ._azure_ad_only_authentications_operations import AzureADOnlyAuthenticationsOperations
7073

7174
__all__ = [
7275
'BigDataPoolsOperations',
@@ -130,4 +133,7 @@
130133
'WorkspaceSqlAadAdminsOperations',
131134
'WorkspaceManagedIdentitySqlControlSettingsOperations',
132135
'RestorableDroppedSqlPoolsOperations',
136+
'SparkConfigurationOperations',
137+
'SparkConfigurationsOperations',
138+
'AzureADOnlyAuthenticationsOperations',
133139
]

0 commit comments

Comments
 (0)