Skip to content

Commit

Permalink
CodeGen from PR 14814 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 543ce72527017dd0563798bd8793c3338c233d1f into 752ca4a
  • Loading branch information
SDKAuto committed Jun 17, 2021
1 parent a94c363 commit 98784a1
Show file tree
Hide file tree
Showing 147 changed files with 12,748 additions and 1,539 deletions.
11 changes: 7 additions & 4 deletions sdk/synapse/azure-mgmt-synapse/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.0.6369",
"use": "@autorest/python@5.6.2",
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.2"
],
"commit": "7c68638867ea90348186ed4e49e8fd1e35ac5a90",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/synapse/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-03-01"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
20 changes: 10 additions & 10 deletions sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-03-01",
"total_api_version_list": ["2021-03-01"],
"chosen_version": "2021-06-01-preview",
"total_api_version_list": ["2021-06-01-preview"],
"client": {
"name": "SynapseManagementClient",
"filename": "_synapse_management_client",
Expand All @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"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\"]}}}",
"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\"]}}}"
"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\"]}}}",
"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\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down Expand Up @@ -111,6 +111,12 @@
"integration_runtime_monitoring_data": "IntegrationRuntimeMonitoringDataOperations",
"integration_runtime_status": "IntegrationRuntimeStatusOperations",
"keys": "KeysOperations",
"kusto_operations": "KustoOperationsOperations",
"kusto_pools": "KustoPoolsOperations",
"databases": "DatabasesOperations",
"data_connections": "DataConnectionsOperations",
"kusto_pool_principal_assignments": "KustoPoolPrincipalAssignmentsOperations",
"database_principal_assignments": "DatabasePrincipalAssignmentsOperations",
"library": "LibraryOperations",
"libraries": "LibrariesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
Expand Down Expand Up @@ -159,11 +165,5 @@
"workspace_sql_aad_admins": "WorkspaceSqlAadAdminsOperations",
"workspace_managed_identity_sql_control_settings": "WorkspaceManagedIdentitySqlControlSettingsOperations",
"restorable_dropped_sql_pools": "RestorableDroppedSqlPoolsOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import SynapseManagementClientConfiguration
from .operations import BigDataPoolsOperations
Expand All @@ -31,6 +32,12 @@
from .operations import IntegrationRuntimeMonitoringDataOperations
from .operations import IntegrationRuntimeStatusOperations
from .operations import KeysOperations
from .operations import KustoOperationsOperations
from .operations import KustoPoolsOperations
from .operations import DatabasesOperations
from .operations import DataConnectionsOperations
from .operations import KustoPoolPrincipalAssignmentsOperations
from .operations import DatabasePrincipalAssignmentsOperations
from .operations import LibraryOperations
from .operations import LibrariesOperations
from .operations import PrivateEndpointConnectionsOperations
Expand Down Expand Up @@ -111,6 +118,18 @@ class SynapseManagementClient(object):
:vartype integration_runtime_status: azure.mgmt.synapse.operations.IntegrationRuntimeStatusOperations
:ivar keys: KeysOperations operations
:vartype keys: azure.mgmt.synapse.operations.KeysOperations
:ivar kusto_operations: KustoOperationsOperations operations
:vartype kusto_operations: azure.mgmt.synapse.operations.KustoOperationsOperations
:ivar kusto_pools: KustoPoolsOperations operations
:vartype kusto_pools: azure.mgmt.synapse.operations.KustoPoolsOperations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.synapse.operations.DatabasesOperations
:ivar data_connections: DataConnectionsOperations operations
:vartype data_connections: azure.mgmt.synapse.operations.DataConnectionsOperations
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.operations.KustoPoolPrincipalAssignmentsOperations
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
:vartype database_principal_assignments: azure.mgmt.synapse.operations.DatabasePrincipalAssignmentsOperations
:ivar library: LibraryOperations operations
:vartype library: azure.mgmt.synapse.operations.LibraryOperations
:ivar libraries: LibrariesOperations operations
Expand Down Expand Up @@ -259,6 +278,18 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.keys = KeysOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_operations = KustoOperationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_pools = KustoPoolsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.databases = DatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_connections = DataConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_principal_assignments = DatabasePrincipalAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.library = LibraryOperations(
self._client, self._config, self._serialize, self._deserialize)
self.libraries = LibrariesOperations(
Expand Down Expand Up @@ -356,6 +387,24 @@ def __init__(
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.HttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

def close(self):
# type: () -> None
self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-03-01"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

Expand All @@ -29,6 +30,12 @@
from .operations import IntegrationRuntimeMonitoringDataOperations
from .operations import IntegrationRuntimeStatusOperations
from .operations import KeysOperations
from .operations import KustoOperationsOperations
from .operations import KustoPoolsOperations
from .operations import DatabasesOperations
from .operations import DataConnectionsOperations
from .operations import KustoPoolPrincipalAssignmentsOperations
from .operations import DatabasePrincipalAssignmentsOperations
from .operations import LibraryOperations
from .operations import LibrariesOperations
from .operations import PrivateEndpointConnectionsOperations
Expand Down Expand Up @@ -109,6 +116,18 @@ class SynapseManagementClient(object):
:vartype integration_runtime_status: azure.mgmt.synapse.aio.operations.IntegrationRuntimeStatusOperations
:ivar keys: KeysOperations operations
:vartype keys: azure.mgmt.synapse.aio.operations.KeysOperations
:ivar kusto_operations: KustoOperationsOperations operations
:vartype kusto_operations: azure.mgmt.synapse.aio.operations.KustoOperationsOperations
:ivar kusto_pools: KustoPoolsOperations operations
:vartype kusto_pools: azure.mgmt.synapse.aio.operations.KustoPoolsOperations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.synapse.aio.operations.DatabasesOperations
:ivar data_connections: DataConnectionsOperations operations
:vartype data_connections: azure.mgmt.synapse.aio.operations.DataConnectionsOperations
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.aio.operations.KustoPoolPrincipalAssignmentsOperations
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
:vartype database_principal_assignments: azure.mgmt.synapse.aio.operations.DatabasePrincipalAssignmentsOperations
:ivar library: LibraryOperations operations
:vartype library: azure.mgmt.synapse.aio.operations.LibraryOperations
:ivar libraries: LibrariesOperations operations
Expand Down Expand Up @@ -256,6 +275,18 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.keys = KeysOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_operations = KustoOperationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_pools = KustoPoolsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.databases = DatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_connections = DataConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_principal_assignments = DatabasePrincipalAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.library = LibraryOperations(
self._client, self._config, self._serialize, self._deserialize)
self.libraries = LibrariesOperations(
Expand Down Expand Up @@ -353,6 +384,23 @@ def __init__(
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
from ._integration_runtime_monitoring_data_operations import IntegrationRuntimeMonitoringDataOperations
from ._integration_runtime_status_operations import IntegrationRuntimeStatusOperations
from ._keys_operations import KeysOperations
from ._kusto_operations_operations import KustoOperationsOperations
from ._kusto_pools_operations import KustoPoolsOperations
from ._databases_operations import DatabasesOperations
from ._data_connections_operations import DataConnectionsOperations
from ._kusto_pool_principal_assignments_operations import KustoPoolPrincipalAssignmentsOperations
from ._database_principal_assignments_operations import DatabasePrincipalAssignmentsOperations
from ._library_operations import LibraryOperations
from ._libraries_operations import LibrariesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
Expand Down Expand Up @@ -82,6 +88,12 @@
'IntegrationRuntimeMonitoringDataOperations',
'IntegrationRuntimeStatusOperations',
'KeysOperations',
'KustoOperationsOperations',
'KustoPoolsOperations',
'DatabasesOperations',
'DataConnectionsOperations',
'KustoPoolPrincipalAssignmentsOperations',
'DatabasePrincipalAssignmentsOperations',
'LibraryOperations',
'LibrariesOperations',
'PrivateEndpointConnectionsOperations',
Expand Down
Loading

0 comments on commit 98784a1

Please sign in to comment.