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
6 changes: 3 additions & 3 deletions sdk/datafactory/azure-mgmt-datafactory/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "021e5ab6ec840d651d32a2c6bdf832800cdf8eb6",
"commit": "d6a38299ebc76b3443107421b004c2fc6fb4ece2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.1.11",
"@autorest/python@6.2.1",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.11 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/datafactory/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.1 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/datafactory/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["DataFactoryManagementClient"]
__all__ = [
"DataFactoryManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# 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 @@ -14,6 +15,11 @@

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 @@ -36,7 +42,7 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2018-06-01") # type: str
api_version = kwargs.pop("api_version", "2018-06-01") # type: Literal["2018-06-01"]

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ._serialization import Deserializer, Serializer
from .operations import (
ActivityRunsOperations,
CredentialOperationsOperations,
DataFlowDebugSessionOperations,
DataFlowsOperations,
DatasetsOperations,
Expand Down Expand Up @@ -88,6 +89,9 @@ class DataFactoryManagementClient: # pylint: disable=client-accepts-api-version
:ivar managed_private_endpoints: ManagedPrivateEndpointsOperations operations
:vartype managed_private_endpoints:
azure.mgmt.datafactory.operations.ManagedPrivateEndpointsOperations
:ivar credential_operations: CredentialOperationsOperations operations
:vartype credential_operations:
azure.mgmt.datafactory.operations.CredentialOperationsOperations
:ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations
:vartype private_end_point_connections:
azure.mgmt.datafactory.operations.PrivateEndPointConnectionsOperations
Expand Down Expand Up @@ -159,6 +163,9 @@ def __init__(
self.managed_private_endpoints = ManagedPrivateEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.credential_operations = CredentialOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_end_point_connections = PrivateEndPointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
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.9.0"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["DataFactoryManagementClient"]
__all__ = [
"DataFactoryManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# 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 @@ -14,6 +15,11 @@

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 @@ -36,7 +42,7 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2018-06-01") # type: str
api_version = kwargs.pop("api_version", "2018-06-01") # type: Literal["2018-06-01"]

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ._configuration import DataFactoryManagementClientConfiguration
from .operations import (
ActivityRunsOperations,
CredentialOperationsOperations,
DataFlowDebugSessionOperations,
DataFlowsOperations,
DatasetsOperations,
Expand Down Expand Up @@ -89,6 +90,9 @@ class DataFactoryManagementClient: # pylint: disable=client-accepts-api-version
:ivar managed_private_endpoints: ManagedPrivateEndpointsOperations operations
:vartype managed_private_endpoints:
azure.mgmt.datafactory.aio.operations.ManagedPrivateEndpointsOperations
:ivar credential_operations: CredentialOperationsOperations operations
:vartype credential_operations:
azure.mgmt.datafactory.aio.operations.CredentialOperationsOperations
:ivar private_end_point_connections: PrivateEndPointConnectionsOperations operations
:vartype private_end_point_connections:
azure.mgmt.datafactory.aio.operations.PrivateEndPointConnectionsOperations
Expand Down Expand Up @@ -160,6 +164,9 @@ def __init__(
self.managed_private_endpoints = ManagedPrivateEndpointsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.credential_operations = CredentialOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_end_point_connections = PrivateEndPointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from ._data_flow_debug_session_operations import DataFlowDebugSessionOperations
from ._managed_virtual_networks_operations import ManagedVirtualNetworksOperations
from ._managed_private_endpoints_operations import ManagedPrivateEndpointsOperations
from ._credential_operations_operations import CredentialOperationsOperations
from ._private_end_point_connections_operations import PrivateEndPointConnectionsOperations
from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
Expand Down Expand Up @@ -50,6 +51,7 @@
"DataFlowDebugSessionOperations",
"ManagedVirtualNetworksOperations",
"ManagedPrivateEndpointsOperations",
"CredentialOperationsOperations",
"PrivateEndPointConnectionsOperations",
"PrivateEndpointConnectionOperations",
"PrivateLinkResourcesOperations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand All @@ -27,6 +28,10 @@
from ..._vendor import _convert_request
from ...operations._activity_runs_operations import build_query_by_pipeline_run_request

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
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -149,7 +154,9 @@ async def query_by_pipeline_run(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
api_version = kwargs.pop(
"api_version", _params.pop("api-version", self._config.api_version)
) # type: Literal["2018-06-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ActivityRunsQueryResponse]

Expand Down
Loading