Skip to content

Commit

Permalink
CodeGen from PR 15626 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 84d8f3ee9777d7833794f06c7aa6b0b9798936f8 into 47545c5
  • Loading branch information
SDKAuto committed Aug 12, 2021
1 parent c4968cb commit e2c9792
Show file tree
Hide file tree
Showing 8 changed files with 1,830 additions and 637 deletions.
2 changes: 1 addition & 1 deletion sdk/datafactory/azure-mgmt-datafactory/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "406474c3807f2dec010af72286f22aa7a9a54920",
"commit": "c92230acf866de67bc88d77246bac92d3107169b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/datafactory/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/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/datafactory/resource-manager/readme.md"
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 = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,68 @@ async def get_status(
return deserialized
get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus'} # type: ignore

async def list_outbound_network_dependencies_endpoints(
self,
resource_group_name: str,
factory_name: str,
integration_runtime_name: str,
**kwargs: Any
) -> "_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse":
"""Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param factory_name: The factory name.
:type factory_name: str
:param integration_runtime_name: The integration runtime name.
:type integration_runtime_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse, or the result of cls(response)
:rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-06-01"
accept = "application/json"

# Construct URL
url = self.list_outbound_network_dependencies_endpoints.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'factoryName': self._serialize.url("factory_name", factory_name, 'str', max_length=63, min_length=3, pattern=r'^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'),
'integrationRuntimeName': self._serialize.url("integration_runtime_name", integration_runtime_name, 'str', max_length=63, min_length=3, pattern=r'^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'),
}
url = self._client.format_url(url, **path_format_arguments)

# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

deserialized = self._deserialize('IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse', pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})

return deserialized
list_outbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints'} # type: ignore

async def get_connection_info(
self,
resource_group_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
from ._models_py3 import AmazonMWSLinkedService
from ._models_py3 import AmazonMWSObjectDataset
from ._models_py3 import AmazonMWSSource
from ._models_py3 import AmazonRdsForOracleLinkedService
from ._models_py3 import AmazonRdsForOraclePartitionSettings
from ._models_py3 import AmazonRdsForOracleSource
from ._models_py3 import AmazonRdsForOracleTableDataset
from ._models_py3 import AmazonRedshiftLinkedService
from ._models_py3 import AmazonRedshiftSource
from ._models_py3 import AmazonRedshiftTableDataset
Expand Down Expand Up @@ -340,6 +344,10 @@
from ._models_py3 import IntegrationRuntimeMonitoringData
from ._models_py3 import IntegrationRuntimeNodeIpAddress
from ._models_py3 import IntegrationRuntimeNodeMonitoringData
from ._models_py3 import IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint
from ._models_py3 import IntegrationRuntimeOutboundNetworkDependenciesEndpoint
from ._models_py3 import IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails
from ._models_py3 import IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse
from ._models_py3 import IntegrationRuntimeReference
from ._models_py3 import IntegrationRuntimeRegenerateKeyParameters
from ._models_py3 import IntegrationRuntimeResource
Expand Down Expand Up @@ -591,6 +599,7 @@
from ._models_py3 import SqlAlwaysEncryptedProperties
from ._models_py3 import SqlDWSink
from ._models_py3 import SqlDWSource
from ._models_py3 import SqlDWUpsertSettings
from ._models_py3 import SqlMISink
from ._models_py3 import SqlMISource
from ._models_py3 import SqlPartitionSettings
Expand All @@ -601,6 +610,7 @@
from ._models_py3 import SqlServerTableDataset
from ._models_py3 import SqlSink
from ._models_py3 import SqlSource
from ._models_py3 import SqlUpsertSettings
from ._models_py3 import SquareLinkedService
from ._models_py3 import SquareObjectDataset
from ._models_py3 import SquareSource
Expand Down Expand Up @@ -692,6 +702,10 @@
from ._models import AmazonMWSLinkedService # type: ignore
from ._models import AmazonMWSObjectDataset # type: ignore
from ._models import AmazonMWSSource # type: ignore
from ._models import AmazonRdsForOracleLinkedService # type: ignore
from ._models import AmazonRdsForOraclePartitionSettings # type: ignore
from ._models import AmazonRdsForOracleSource # type: ignore
from ._models import AmazonRdsForOracleTableDataset # type: ignore
from ._models import AmazonRedshiftLinkedService # type: ignore
from ._models import AmazonRedshiftSource # type: ignore
from ._models import AmazonRedshiftTableDataset # type: ignore
Expand Down Expand Up @@ -1014,6 +1028,10 @@
from ._models import IntegrationRuntimeMonitoringData # type: ignore
from ._models import IntegrationRuntimeNodeIpAddress # type: ignore
from ._models import IntegrationRuntimeNodeMonitoringData # type: ignore
from ._models import IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint # type: ignore
from ._models import IntegrationRuntimeOutboundNetworkDependenciesEndpoint # type: ignore
from ._models import IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails # type: ignore
from ._models import IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse # type: ignore
from ._models import IntegrationRuntimeReference # type: ignore
from ._models import IntegrationRuntimeRegenerateKeyParameters # type: ignore
from ._models import IntegrationRuntimeResource # type: ignore
Expand Down Expand Up @@ -1265,6 +1283,7 @@
from ._models import SqlAlwaysEncryptedProperties # type: ignore
from ._models import SqlDWSink # type: ignore
from ._models import SqlDWSource # type: ignore
from ._models import SqlDWUpsertSettings # type: ignore
from ._models import SqlMISink # type: ignore
from ._models import SqlMISource # type: ignore
from ._models import SqlPartitionSettings # type: ignore
Expand All @@ -1275,6 +1294,7 @@
from ._models import SqlServerTableDataset # type: ignore
from ._models import SqlSink # type: ignore
from ._models import SqlSource # type: ignore
from ._models import SqlUpsertSettings # type: ignore
from ._models import SquareLinkedService # type: ignore
from ._models import SquareObjectDataset # type: ignore
from ._models import SquareSource # type: ignore
Expand Down Expand Up @@ -1356,6 +1376,7 @@
from ._models import ZohoSource # type: ignore

from ._data_factory_management_client_enums import (
AmazonRdsForOraclePartitionOption,
AvroCompressionCodec,
AzureFunctionActivityMethod,
AzureSearchIndexWriteBehaviorType,
Expand Down Expand Up @@ -1433,7 +1454,9 @@
SparkServerType,
SparkThriftTransportProtocol,
SqlAlwaysEncryptedAkvAuthType,
SqlDWWriteBehaviorEnum,
SqlPartitionOption,
SqlWriteBehaviorEnum,
SsisLogLocationType,
SsisObjectMetadataType,
SsisPackageLocationType,
Expand Down Expand Up @@ -1462,6 +1485,10 @@
'AmazonMWSLinkedService',
'AmazonMWSObjectDataset',
'AmazonMWSSource',
'AmazonRdsForOracleLinkedService',
'AmazonRdsForOraclePartitionSettings',
'AmazonRdsForOracleSource',
'AmazonRdsForOracleTableDataset',
'AmazonRedshiftLinkedService',
'AmazonRedshiftSource',
'AmazonRedshiftTableDataset',
Expand Down Expand Up @@ -1784,6 +1811,10 @@
'IntegrationRuntimeMonitoringData',
'IntegrationRuntimeNodeIpAddress',
'IntegrationRuntimeNodeMonitoringData',
'IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint',
'IntegrationRuntimeOutboundNetworkDependenciesEndpoint',
'IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails',
'IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse',
'IntegrationRuntimeReference',
'IntegrationRuntimeRegenerateKeyParameters',
'IntegrationRuntimeResource',
Expand Down Expand Up @@ -2035,6 +2066,7 @@
'SqlAlwaysEncryptedProperties',
'SqlDWSink',
'SqlDWSource',
'SqlDWUpsertSettings',
'SqlMISink',
'SqlMISource',
'SqlPartitionSettings',
Expand All @@ -2045,6 +2077,7 @@
'SqlServerTableDataset',
'SqlSink',
'SqlSource',
'SqlUpsertSettings',
'SquareLinkedService',
'SquareObjectDataset',
'SquareSource',
Expand Down Expand Up @@ -2124,6 +2157,7 @@
'ZohoLinkedService',
'ZohoObjectDataset',
'ZohoSource',
'AmazonRdsForOraclePartitionOption',
'AvroCompressionCodec',
'AzureFunctionActivityMethod',
'AzureSearchIndexWriteBehaviorType',
Expand Down Expand Up @@ -2201,7 +2235,9 @@
'SparkServerType',
'SparkThriftTransportProtocol',
'SqlAlwaysEncryptedAkvAuthType',
'SqlDWWriteBehaviorEnum',
'SqlPartitionOption',
'SqlWriteBehaviorEnum',
'SsisLogLocationType',
'SsisObjectMetadataType',
'SsisPackageLocationType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def __getattr__(cls, name):
raise AttributeError(name)


class AmazonRdsForOraclePartitionOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):

NONE = "None"
PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable"
DYNAMIC_RANGE = "DynamicRange"

class AvroCompressionCodec(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):

NONE = "none"
Expand Down Expand Up @@ -697,6 +703,13 @@ class SqlAlwaysEncryptedAkvAuthType(with_metaclass(_CaseInsensitiveEnumMeta, str
SERVICE_PRINCIPAL = "ServicePrincipal"
MANAGED_IDENTITY = "ManagedIdentity"

class SqlDWWriteBehaviorEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Specify the write behavior when copying data into sql dw.
"""

INSERT = "Insert"
UPSERT = "Upsert"

class SqlPartitionOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The partition mechanism that will be used for Sql read in parallel.
"""
Expand All @@ -705,6 +718,14 @@ class SqlPartitionOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
PHYSICAL_PARTITIONS_OF_TABLE = "PhysicalPartitionsOfTable"
DYNAMIC_RANGE = "DynamicRange"

class SqlWriteBehaviorEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Specify the write behavior when copying data into sql.
"""

INSERT = "Insert"
UPSERT = "Upsert"
STORED_PROCEDURE = "StoredProcedure"

class SsisLogLocationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of SSIS log location.
"""
Expand Down
Loading

0 comments on commit e2c9792

Please sign in to comment.