Skip to content

Commit 31c370f

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t2-databricks-2021-08-02-64065 (#20029)
* CodeGen from PR 15090 in Azure/azure-rest-api-specs Removing duplicate package ID-2021-04-01-preview (#15090) * version,CHANGELOG * test Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
1 parent 1cf5632 commit 31c370f

30 files changed

+2859
-1160
lines changed

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

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

3+
## 1.1.0b1 (2021-08-02)
4+
5+
**Features**
6+
7+
- Model WorkspaceCustomParameters has a new parameter load_balancer_backend_pool_name
8+
- Model WorkspaceCustomParameters has a new parameter load_balancer_id
9+
- Model WorkspaceCustomParameters has a new parameter public_ip_name
10+
- Model WorkspaceCustomParameters has a new parameter vnet_address_prefix
11+
- Model WorkspaceCustomParameters has a new parameter storage_account_sku_name
12+
- Model WorkspaceCustomParameters has a new parameter nat_gateway_name
13+
- Model WorkspaceCustomParameters has a new parameter storage_account_name
14+
- Model WorkspaceCustomParameters has a new parameter resource_tags
15+
- Model Workspace has a new parameter required_nsg_rules
16+
- Model Workspace has a new parameter private_endpoint_connections
17+
- Model Workspace has a new parameter public_network_access
18+
- Model Workspace has a new parameter system_data
19+
- Model Workspace has a new parameter encryption
20+
- Added operation group PrivateLinkResourcesOperations
21+
- Added operation group PrivateEndpointConnectionsOperations
22+
323
## 1.0.0 (2021-03-19)
424

525
- GA release

sdk/databricks/azure-mgmt-databricks/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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/python@5.8.1",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "fa3ba1acdd45ddad8950133befc5b0a6f1ee5163",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/databricks/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.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
10+
"readme": "specification/databricks/resource-manager/readme.md"
11+
}

sdk/databricks/azure-mgmt-databricks/azure/mgmt/databricks/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._databricks_client import DatabricksClient
9+
from ._azure_databricks_management_client import AzureDatabricksManagementClient
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13-
__all__ = ['DatabricksClient']
13+
__all__ = ['AzureDatabricksManagementClient']
1414

1515
try:
1616
from ._patch import patch_sdk # type: ignore

sdk/databricks/azure-mgmt-databricks/azure/mgmt/databricks/_databricks_client.py renamed to sdk/databricks/azure-mgmt-databricks/azure/mgmt/databricks/_azure_databricks_management_client.py

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,30 @@
1616
from typing import Any, Optional
1717

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

20-
from ._configuration import DatabricksClientConfiguration
21+
from ._configuration import AzureDatabricksManagementClientConfiguration
2122
from .operations import WorkspacesOperations
22-
from .operations import VNetPeeringOperations
2323
from .operations import Operations
24+
from .operations import PrivateLinkResourcesOperations
25+
from .operations import PrivateEndpointConnectionsOperations
26+
from .operations import VNetPeeringOperations
2427
from . import models
2528

2629

27-
class DatabricksClient(object):
28-
"""ARM Databricks.
30+
class AzureDatabricksManagementClient(object):
31+
"""The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace resources.
2932
3033
:ivar workspaces: WorkspacesOperations operations
31-
:vartype workspaces: azure.mgmt.databricks.operations.WorkspacesOperations
32-
:ivar vnet_peering: VNetPeeringOperations operations
33-
:vartype vnet_peering: azure.mgmt.databricks.operations.VNetPeeringOperations
34+
:vartype workspaces: azure_databricks_management_client.operations.WorkspacesOperations
3435
:ivar operations: Operations operations
35-
:vartype operations: azure.mgmt.databricks.operations.Operations
36+
:vartype operations: azure_databricks_management_client.operations.Operations
37+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
38+
:vartype private_link_resources: azure_databricks_management_client.operations.PrivateLinkResourcesOperations
39+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
40+
:vartype private_endpoint_connections: azure_databricks_management_client.operations.PrivateEndpointConnectionsOperations
41+
:ivar vnet_peering: VNetPeeringOperations operations
42+
:vartype vnet_peering: azure_databricks_management_client.operations.VNetPeeringOperations
3643
:param credential: Credential needed for the client to connect to Azure.
3744
:type credential: ~azure.core.credentials.TokenCredential
3845
:param subscription_id: The ID of the target subscription.
@@ -51,7 +58,7 @@ def __init__(
5158
# type: (...) -> None
5259
if not base_url:
5360
base_url = 'https://management.azure.com'
54-
self._config = DatabricksClientConfiguration(credential, subscription_id, **kwargs)
61+
self._config = AzureDatabricksManagementClientConfiguration(credential, subscription_id, **kwargs)
5562
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5663

5764
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
@@ -61,17 +68,39 @@ def __init__(
6168

6269
self.workspaces = WorkspacesOperations(
6370
self._client, self._config, self._serialize, self._deserialize)
64-
self.vnet_peering = VNetPeeringOperations(
65-
self._client, self._config, self._serialize, self._deserialize)
6671
self.operations = Operations(
6772
self._client, self._config, self._serialize, self._deserialize)
73+
self.private_link_resources = PrivateLinkResourcesOperations(
74+
self._client, self._config, self._serialize, self._deserialize)
75+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
76+
self._client, self._config, self._serialize, self._deserialize)
77+
self.vnet_peering = VNetPeeringOperations(
78+
self._client, self._config, self._serialize, self._deserialize)
79+
80+
def _send_request(self, http_request, **kwargs):
81+
# type: (HttpRequest, Any) -> HttpResponse
82+
"""Runs the network request through the client's chained policies.
83+
84+
:param http_request: The network request you want to make. Required.
85+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
86+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
87+
:return: The response of your network call. Does not do error handling on your response.
88+
:rtype: ~azure.core.pipeline.transport.HttpResponse
89+
"""
90+
path_format_arguments = {
91+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
92+
}
93+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
94+
stream = kwargs.pop("stream", True)
95+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
96+
return pipeline_response.http_response
6897

6998
def close(self):
7099
# type: () -> None
71100
self._client.close()
72101

73102
def __enter__(self):
74-
# type: () -> DatabricksClient
103+
# type: () -> AzureDatabricksManagementClient
75104
self._client.__enter__()
76105
return self
77106

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from azure.core.credentials import TokenCredential
2222

2323

24-
class DatabricksClientConfiguration(Configuration):
25-
"""Configuration for DatabricksClient.
24+
class AzureDatabricksManagementClientConfiguration(Configuration):
25+
"""Configuration for AzureDatabricksManagementClient.
2626
2727
Note that all parameters used to create this instance are saved as instance
2828
attributes.
@@ -44,11 +44,10 @@ def __init__(
4444
raise ValueError("Parameter 'credential' must not be None.")
4545
if subscription_id is None:
4646
raise ValueError("Parameter 'subscription_id' must not be None.")
47-
super(DatabricksClientConfiguration, self).__init__(**kwargs)
47+
super(AzureDatabricksManagementClientConfiguration, self).__init__(**kwargs)
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2018-04-01"
5251
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5352
kwargs.setdefault('sdk_moniker', 'mgmt-databricks/{}'.format(VERSION))
5453
self._configure(**kwargs)
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"chosen_version": "",
3+
"total_api_version_list": ["2018-04-01", "2021-04-01-preview"],
4+
"client": {
5+
"name": "AzureDatabricksManagementClient",
6+
"filename": "_azure_databricks_management_client",
7+
"description": "The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace resources.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"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\": [\"AzureDatabricksManagementClientConfiguration\"]}}, \"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\": [\"AzureDatabricksManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The ID of the target subscription.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The ID of the target subscription.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
99+
},
100+
"operation_groups": {
101+
"workspaces": "WorkspacesOperations",
102+
"operations": "Operations",
103+
"private_link_resources": "PrivateLinkResourcesOperations",
104+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
105+
"vnet_peering": "VNetPeeringOperations"
106+
}
107+
}

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

sdk/databricks/azure-mgmt-databricks/azure/mgmt/databricks/aio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._databricks_client import DatabricksClient
10-
__all__ = ['DatabricksClient']
9+
from ._azure_databricks_management_client import AzureDatabricksManagementClient
10+
__all__ = ['AzureDatabricksManagementClient']

0 commit comments

Comments
 (0)