Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/databricks/azure-mgmt-databricks/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "171bef6183260f0ae968086596495813fcd29c4e",
"commit": "74abc2bdcf26359e02418b1fe391471627228e33",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/databricks/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/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/databricks/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/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/databricks/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class AzureDatabricksManagementClient: # pylint: disable=client-accepts-api-ver
"""The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace
resources.

:ivar access_connectors: AccessConnectorsOperations operations
:vartype access_connectors: azure.mgmt.databricks.operations.AccessConnectorsOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.databricks.operations.WorkspacesOperations
:ivar operations: Operations operations
Expand All @@ -50,17 +52,12 @@ class AzureDatabricksManagementClient: # pylint: disable=client-accepts-api-ver
azure.mgmt.databricks.operations.OutboundNetworkDependenciesEndpointsOperations
:ivar vnet_peering: VNetPeeringOperations operations
:vartype vnet_peering: azure.mgmt.databricks.operations.VNetPeeringOperations
:ivar access_connectors: AccessConnectorsOperations operations
:vartype access_connectors: azure.mgmt.databricks.operations.AccessConnectorsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""
Expand All @@ -81,6 +78,9 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.access_connectors = AccessConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
Expand All @@ -93,9 +93,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.vnet_peering = VNetPeeringOperations(self._client, self._config, self._serialize, self._deserialize)
self.access_connectors = AccessConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -15,11 +14,6 @@

from ._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
Expand All @@ -35,23 +29,17 @@ class AzureDatabricksManagementClientConfiguration(Configuration): # pylint: di
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(AzureDatabricksManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-04-01-preview"] = kwargs.pop("api_version", "2022-04-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-databricks/{}".format(VERSION))
self._configure(**kwargs)
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 = "1.1.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class AzureDatabricksManagementClient: # pylint: disable=client-accepts-api-ver
"""The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace
resources.

:ivar access_connectors: AccessConnectorsOperations operations
:vartype access_connectors: azure.mgmt.databricks.aio.operations.AccessConnectorsOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.databricks.aio.operations.WorkspacesOperations
:ivar operations: Operations operations
Expand All @@ -50,17 +52,12 @@ class AzureDatabricksManagementClient: # pylint: disable=client-accepts-api-ver
azure.mgmt.databricks.aio.operations.OutboundNetworkDependenciesEndpointsOperations
:ivar vnet_peering: VNetPeeringOperations operations
:vartype vnet_peering: azure.mgmt.databricks.aio.operations.VNetPeeringOperations
:ivar access_connectors: AccessConnectorsOperations operations
:vartype access_connectors: azure.mgmt.databricks.aio.operations.AccessConnectorsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""
Expand All @@ -81,6 +78,9 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.access_connectors = AccessConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
Expand All @@ -93,9 +93,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.vnet_peering = VNetPeeringOperations(self._client, self._config, self._serialize, self._deserialize)
self.access_connectors = AccessConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -15,11 +14,6 @@

from .._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
Expand All @@ -35,23 +29,17 @@ class AzureDatabricksManagementClientConfiguration(Configuration): # pylint: di
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-04-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(AzureDatabricksManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-04-01-preview"] = kwargs.pop("api_version", "2022-04-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-databricks/{}".format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._access_connectors_operations import AccessConnectorsOperations
from ._workspaces_operations import WorkspacesOperations
from ._operations import Operations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._outbound_network_dependencies_endpoints_operations import OutboundNetworkDependenciesEndpointsOperations
from ._vnet_peering_operations import VNetPeeringOperations
from ._access_connectors_operations import AccessConnectorsOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AccessConnectorsOperations",
"WorkspacesOperations",
"Operations",
"PrivateLinkResourcesOperations",
"PrivateEndpointConnectionsOperations",
"OutboundNetworkDependenciesEndpointsOperations",
"VNetPeeringOperations",
"AccessConnectorsOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading