diff --git a/README.md b/README.md index 08c97eeff..19f97d167 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,14 @@ See documentation [here](doc/00-overview.md) python: reason: 'make sure python flag exists to load config in python.md' +azure-arm: true output-folder: $(az-output-folder) debug-output-folder: $(az-output-folder)/_az_debug use-extension: - "@autorest/python": "5.0.0-preview.3" - "@autorest/clicommon": "0.4.8" + "@autorest/python": "5.0.0-preview.7" + "@autorest/clicommon": "0.4.9" #"@autorest/python": "latest" cli: @@ -36,6 +37,7 @@ require: pipeline-model: v3 modelerfour: + lenient-model-deduplication: true group-parameters: true flatten-models: true flatten-payloads: true diff --git a/package.json b/package.json index ec06d806c..e7f95cf2d 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "autorest": "^3.0.6187", "@azure-tools/async-io": "^3.0.209", "@azure-tools/autorest-extension-base": "~3.1.235", - "@azure-tools/codegen": "^2.4.257", - "@azure-tools/codemodel": "3.3.295", + "@azure-tools/codegen": "^2.5.276", + "@azure-tools/codemodel": "4.13.325", "@azure-tools/linq": "^3.1.232", "await-exec": "^0.1.2", "dir-compare": "^2.2.0", diff --git a/src/plugins/azgenerator/CodeModelAzImpl.ts b/src/plugins/azgenerator/CodeModelAzImpl.ts index f798eecfe..57c2ada0e 100644 --- a/src/plugins/azgenerator/CodeModelAzImpl.ts +++ b/src/plugins/azgenerator/CodeModelAzImpl.ts @@ -1141,8 +1141,8 @@ export class CodeModelCliImpl implements CodeModelAz { } public Parameter_IsPolyOfSimple(param: Parameter = this.MethodParameter): boolean { - if(!isNullOrUndefined(this.MethodParameter['isPolyOfSimple'])) { - return this.MethodParameter['isPolyOfSimple']; + if(!isNullOrUndefined(param['isPolyOfSimple'])) { + return param['isPolyOfSimple']; } if (param?.schema?.type == SchemaType.Object && !isNullOrUndefined(param.schema['children']) && !isNullOrUndefined(param.schema['discriminator'])) { let isSimplePoly = true; @@ -1154,9 +1154,9 @@ export class CodeModelCliImpl implements CodeModelAz { break; } if (isSimplePoly) { - this.MethodParameter['isPolyOfSimple'] = true; + param['isPolyOfSimple'] = true; } else { - this.MethodParameter['isPolyOfSimple'] = false; + param['isPolyOfSimple'] = false; } return isSimplePoly; } diff --git a/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts b/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts index 6820ef7e9..15641b684 100644 --- a/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts +++ b/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts @@ -5,6 +5,7 @@ import { CodeModelAz } from "./CodeModelAz" import { HeaderGenerator } from "./Header"; +import { isNullOrUndefined } from "util"; export function GenerateAzureCliClientFactory(model: CodeModelAz) : string[] { let header: HeaderGenerator = new HeaderGenerator(); @@ -16,7 +17,7 @@ export function GenerateAzureCliClientFactory(model: CodeModelAz) : string[] { output.push(" from azure.cli.core.commands.client_factory import get_mgmt_service_client"); output.push(" from ..vendored_sdks." + model.PythonOperationsName + " import " + model.PythonMgmtClient); - if (model.Extension_ClientSubscriptionBound || model.Extension_ClientBaseUrlBound) + if (!isNullOrUndefined(model.Extension_ClientSubscriptionBound) || !isNullOrUndefined(model.Extension_ClientBaseUrlBound)) { output.push(" return get_mgmt_service_client(cli_ctx, " + model.PythonMgmtClient + ","); output.push(" subscription_bound=" + (model.Extension_ClientSubscriptionBound ? "True" : "False") + ","); diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/__init__.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/__init__.py index 5328ebc59..b420c0b6e 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/__init__.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/__init__.py @@ -7,9 +7,6 @@ # -------------------------------------------------------------------------- from ._attestation_management_client import AttestationManagementClient -from ._version import VERSION - -__version__ = VERSION __all__ = ['AttestationManagementClient'] try: diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_attestation_management_client.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_attestation_management_client.py index 1bd9372cd..e60879788 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_attestation_management_client.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_attestation_management_client.py @@ -15,6 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any, Optional + from azure.core.credentials import TokenCredential + from ._configuration import AttestationManagementClientConfiguration from .operations import OperationOperations from .operations import AttestationProviderOperations @@ -25,9 +27,9 @@ class AttestationManagementClient(object): """Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management. :ivar operation: OperationOperations operations - :vartype operation: azure.mgmt.attestation.operations.OperationOperations + :vartype operation: attestation_management_client.operations.OperationOperations :ivar attestation_provider: AttestationProviderOperations operations - :vartype attestation_provider: azure.mgmt.attestation.operations.AttestationProviderOperations + :vartype attestation_provider: attestation_management_client.operations.AttestationProviderOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_configuration.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_configuration.py index 300325461..b58410a6e 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_configuration.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_configuration.py @@ -11,14 +11,13 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from ._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential +VERSION = "unknown" class AttestationManagementClientConfiguration(Configuration): """Configuration for AttestationManagementClient. @@ -50,7 +49,7 @@ def __init__( self.api_version = "2018-09-01-preview" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-attestation/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'attestationmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_version.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_version.py deleted file mode 100644 index eae7c95b6..000000000 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_attestation_management_client_async.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_attestation_management_client_async.py index b37b017cb..42dd842e4 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_attestation_management_client_async.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_attestation_management_client_async.py @@ -6,11 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Optional +from typing import Any, Optional, TYPE_CHECKING from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + from ._configuration_async import AttestationManagementClientConfiguration from .operations_async import OperationOperations from .operations_async import AttestationProviderOperations @@ -21,9 +25,9 @@ class AttestationManagementClient(object): """Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management. :ivar operation: OperationOperations operations - :vartype operation: azure.mgmt.attestation.aio.operations_async.OperationOperations + :vartype operation: attestation_management_client.aio.operations_async.OperationOperations :ivar attestation_provider: AttestationProviderOperations operations - :vartype attestation_provider: azure.mgmt.attestation.aio.operations_async.AttestationProviderOperations + :vartype attestation_provider: attestation_management_client.aio.operations_async.AttestationProviderOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_configuration_async.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_configuration_async.py index 282434a61..679b61fc8 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_configuration_async.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/_configuration_async.py @@ -11,12 +11,11 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from .._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential + from azure.core.credentials_async import AsyncTokenCredential +VERSION = "unknown" class AttestationManagementClientConfiguration(Configuration): """Configuration for AttestationManagementClient. @@ -47,7 +46,7 @@ def __init__( self.api_version = "2018-09-01-preview" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-attestation/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'attestationmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_attestation_provider_operations_async.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_attestation_provider_operations_async.py index 284828ea1..be3bc8409 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_attestation_provider_operations_async.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_attestation_provider_operations_async.py @@ -25,7 +25,7 @@ class AttestationProviderOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.attestation.models + :type models: ~attestation_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -53,8 +53,8 @@ async def get( :param provider_name: Name of the attestation service instance. :type provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -91,7 +91,7 @@ async def get( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -124,10 +124,10 @@ async def create( an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - :type keys: list[~azure.mgmt.attestation.models.JsonWebKey] + :type keys: list[~attestation_management_client.models.JsonWebKey] :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -177,7 +177,7 @@ async def create( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -198,8 +198,8 @@ async def update( :param tags: The tags that will be assigned to the attestation service instance. :type tags: dict[str, str] :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -244,7 +244,7 @@ async def update( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -262,7 +262,7 @@ async def delete( :param provider_name: Name of the attestation service. :type provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -297,7 +297,7 @@ async def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -308,8 +308,8 @@ async def list( """Returns a list of attestation providers in a subscription. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProviderListResult or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProviderListResult + :return: AttestationProviderListResult, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProviderListResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProviderListResult"] @@ -344,7 +344,7 @@ async def list( deserialized = self._deserialize('AttestationProviderListResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/attestationProviders'} # type: ignore @@ -359,8 +359,8 @@ async def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProviderListResult or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProviderListResult + :return: AttestationProviderListResult, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProviderListResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProviderListResult"] @@ -396,7 +396,7 @@ async def list_by_resource_group( deserialized = self._deserialize('AttestationProviderListResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders'} # type: ignore diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_operation_operations_async.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_operation_operations_async.py index 8578e3864..2591e1020 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_operation_operations_async.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/aio/operations_async/_operation_operations_async.py @@ -25,7 +25,7 @@ class OperationOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.attestation.models + :type models: ~attestation_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -47,8 +47,8 @@ async def list( """Lists all of the available Azure attestation operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationList or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.OperationList + :return: OperationList, or the result of cls(response) + :rtype: ~attestation_management_client.models.OperationList :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.OperationList"] @@ -79,7 +79,7 @@ async def list( deserialized = self._deserialize('OperationList', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list.metadata = {'url': '/providers/Microsoft.Attestation/operations'} # type: ignore diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models.py index 4250390ae..67f429cca 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models.py @@ -114,7 +114,7 @@ class AttestationProvider(TrackedResource): :type trust_model: str :param status: Required. Status of attestation service. Possible values include: "Ready", "NotReady", "Error". - :type status: str or ~azure.mgmt.attestation.models.AttestationServiceStatus + :type status: str or ~attestation_management_client.models.AttestationServiceStatus :param attest_uri: Gets the uri of attestation service. :type attest_uri: str """ @@ -152,7 +152,7 @@ class AttestationProviderListResult(msrest.serialization.Model): """Attestation Providers List. :param value: Attestation Provider array. - :type value: list[~azure.mgmt.attestation.models.AttestationProvider] + :type value: list[~attestation_management_client.models.AttestationProvider] """ _attribute_map = { @@ -184,7 +184,7 @@ class AttestationServiceCreationParams(msrest.serialization.Model): an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - :type keys: list[~azure.mgmt.attestation.models.JsonWebKey] + :type keys: list[~attestation_management_client.models.JsonWebKey] """ _validation = { @@ -374,7 +374,7 @@ class OperationList(msrest.serialization.Model): """List of supported operations. :param value: List of supported operations. - :type value: list[~azure.mgmt.attestation.models.OperationsDefinition] + :type value: list[~attestation_management_client.models.OperationsDefinition] """ _attribute_map = { @@ -395,7 +395,7 @@ class OperationsDefinition(msrest.serialization.Model): :param name: Name of the operation. :type name: str :param display: Display object with properties of the operation. - :type display: ~azure.mgmt.attestation.models.OperationsDisplayDefinition + :type display: ~attestation_management_client.models.OperationsDisplayDefinition """ _attribute_map = { diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models_py3.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models_py3.py index 4a9b96c89..41ceb554a 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models_py3.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/models/_models_py3.py @@ -121,7 +121,7 @@ class AttestationProvider(TrackedResource): :type trust_model: str :param status: Required. Status of attestation service. Possible values include: "Ready", "NotReady", "Error". - :type status: str or ~azure.mgmt.attestation.models.AttestationServiceStatus + :type status: str or ~attestation_management_client.models.AttestationServiceStatus :param attest_uri: Gets the uri of attestation service. :type attest_uri: str """ @@ -165,7 +165,7 @@ class AttestationProviderListResult(msrest.serialization.Model): """Attestation Providers List. :param value: Attestation Provider array. - :type value: list[~azure.mgmt.attestation.models.AttestationProvider] + :type value: list[~attestation_management_client.models.AttestationProvider] """ _attribute_map = { @@ -199,7 +199,7 @@ class AttestationServiceCreationParams(msrest.serialization.Model): an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - :type keys: list[~azure.mgmt.attestation.models.JsonWebKey] + :type keys: list[~attestation_management_client.models.JsonWebKey] """ _validation = { @@ -417,7 +417,7 @@ class OperationList(msrest.serialization.Model): """List of supported operations. :param value: List of supported operations. - :type value: list[~azure.mgmt.attestation.models.OperationsDefinition] + :type value: list[~attestation_management_client.models.OperationsDefinition] """ _attribute_map = { @@ -440,7 +440,7 @@ class OperationsDefinition(msrest.serialization.Model): :param name: Name of the operation. :type name: str :param display: Display object with properties of the operation. - :type display: ~azure.mgmt.attestation.models.OperationsDisplayDefinition + :type display: ~attestation_management_client.models.OperationsDisplayDefinition """ _attribute_map = { diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_attestation_provider_operations.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_attestation_provider_operations.py index b697e785f..ba09638ee 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_attestation_provider_operations.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_attestation_provider_operations.py @@ -29,7 +29,7 @@ class AttestationProviderOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.attestation.models + :type models: ~attestation_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -58,8 +58,8 @@ def get( :param provider_name: Name of the attestation service instance. :type provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -96,7 +96,7 @@ def get( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -130,10 +130,10 @@ def create( an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - :type keys: list[~azure.mgmt.attestation.models.JsonWebKey] + :type keys: list[~attestation_management_client.models.JsonWebKey] :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -183,7 +183,7 @@ def create( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -205,8 +205,8 @@ def update( :param tags: The tags that will be assigned to the attestation service instance. :type tags: dict[str, str] :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProvider or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProvider + :return: AttestationProvider, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProvider :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProvider"] @@ -251,7 +251,7 @@ def update( deserialized = self._deserialize('AttestationProvider', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -270,7 +270,7 @@ def delete( :param provider_name: Name of the attestation service. :type provider_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -305,7 +305,7 @@ def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}'} # type: ignore @@ -317,8 +317,8 @@ def list( """Returns a list of attestation providers in a subscription. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProviderListResult or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProviderListResult + :return: AttestationProviderListResult, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProviderListResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProviderListResult"] @@ -353,7 +353,7 @@ def list( deserialized = self._deserialize('AttestationProviderListResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/attestationProviders'} # type: ignore @@ -369,8 +369,8 @@ def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttestationProviderListResult or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.AttestationProviderListResult + :return: AttestationProviderListResult, or the result of cls(response) + :rtype: ~attestation_management_client.models.AttestationProviderListResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AttestationProviderListResult"] @@ -406,7 +406,7 @@ def list_by_resource_group( deserialized = self._deserialize('AttestationProviderListResult', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders'} # type: ignore diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_operation_operations.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_operation_operations.py index 074762d7e..2f84e63e1 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_operation_operations.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/vendored_sdks/attestation/operations/_operation_operations.py @@ -29,7 +29,7 @@ class OperationOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.attestation.models + :type models: ~attestation_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -52,8 +52,8 @@ def list( """Lists all of the available Azure attestation operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationList or the result of cls(response) - :rtype: ~azure.mgmt.attestation.models.OperationList + :return: OperationList, or the result of cls(response) + :rtype: ~attestation_management_client.models.OperationList :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.OperationList"] @@ -84,7 +84,7 @@ def list( deserialized = self._deserialize('OperationList', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list.metadata = {'url': '/providers/Microsoft.Attestation/operations'} # type: ignore diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/__init__.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/__init__.py index 21bda343f..4e569e56a 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/__init__.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/__init__.py @@ -7,9 +7,6 @@ # -------------------------------------------------------------------------- from ._dfaz_management_client import DFAZManagementClient -from ._version import VERSION - -__version__ = VERSION __all__ = ['DFAZManagementClient'] try: diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_configuration.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_configuration.py index dad07254a..aca1ced7b 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_configuration.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_configuration.py @@ -11,14 +11,13 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from ._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential +VERSION = "unknown" class DFAZManagementClientConfiguration(Configuration): """Configuration for DFAZManagementClient. @@ -50,7 +49,7 @@ def __init__( self.api_version = "2018-06-01" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-datafactory/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'dfazmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_dfaz_management_client.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_dfaz_management_client.py index c815114f4..8e03ae24b 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_dfaz_management_client.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_dfaz_management_client.py @@ -15,6 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any, Optional + from azure.core.credentials import TokenCredential + from ._configuration import DFAZManagementClientConfiguration from .operations import FactoryOperations from .operations import TriggerOperations @@ -26,11 +28,11 @@ class DFAZManagementClient(object): """The DFAZ Client. :ivar factory: FactoryOperations operations - :vartype factory: azure.mgmt.datafactory.operations.FactoryOperations + :vartype factory: dfaz_management_client.operations.FactoryOperations :ivar trigger: TriggerOperations operations - :vartype trigger: azure.mgmt.datafactory.operations.TriggerOperations + :vartype trigger: dfaz_management_client.operations.TriggerOperations :ivar integration_runtime: IntegrationRuntimeOperations operations - :vartype integration_runtime: azure.mgmt.datafactory.operations.IntegrationRuntimeOperations + :vartype integration_runtime: dfaz_management_client.operations.IntegrationRuntimeOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription identifier. diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_version.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_version.py deleted file mode 100644 index eae7c95b6..000000000 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_configuration_async.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_configuration_async.py index 00da06361..40e133592 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_configuration_async.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_configuration_async.py @@ -11,12 +11,11 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from .._version import VERSION - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential + from azure.core.credentials_async import AsyncTokenCredential +VERSION = "unknown" class DFAZManagementClientConfiguration(Configuration): """Configuration for DFAZManagementClient. @@ -47,7 +46,7 @@ def __init__( self.api_version = "2018-06-01" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-datafactory/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'dfazmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_dfaz_management_client_async.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_dfaz_management_client_async.py index fd731f545..7f56e02c8 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_dfaz_management_client_async.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/_dfaz_management_client_async.py @@ -6,11 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Optional +from typing import Any, Optional, TYPE_CHECKING from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + from ._configuration_async import DFAZManagementClientConfiguration from .operations_async import FactoryOperations from .operations_async import TriggerOperations @@ -22,11 +26,11 @@ class DFAZManagementClient(object): """The DFAZ Client. :ivar factory: FactoryOperations operations - :vartype factory: azure.mgmt.datafactory.aio.operations_async.FactoryOperations + :vartype factory: dfaz_management_client.aio.operations_async.FactoryOperations :ivar trigger: TriggerOperations operations - :vartype trigger: azure.mgmt.datafactory.aio.operations_async.TriggerOperations + :vartype trigger: dfaz_management_client.aio.operations_async.TriggerOperations :ivar integration_runtime: IntegrationRuntimeOperations operations - :vartype integration_runtime: azure.mgmt.datafactory.aio.operations_async.IntegrationRuntimeOperations + :vartype integration_runtime: dfaz_management_client.aio.operations_async.IntegrationRuntimeOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription identifier. diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_factory_operations_async.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_factory_operations_async.py index a94fde969..16aec1a9c 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_factory_operations_async.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_factory_operations_async.py @@ -26,7 +26,7 @@ class FactoryOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -48,8 +48,8 @@ def list( """Lists factories under the specified subscription. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of FactoryListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.FactoryListResponse] + :return: An iterator like instance of either FactoryListResponse or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~dfaz_management_client.models.FactoryListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.FactoryListResponse"] @@ -118,10 +118,10 @@ async def configure_factory_repo( :param factory_resource_id: The factory resource id. :type factory_resource_id: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -165,7 +165,7 @@ async def configure_factory_repo( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized configure_factory_repo.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo'} # type: ignore @@ -180,8 +180,8 @@ def list_by_resource_group( :param resource_group_name: The resource group name. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of FactoryListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.FactoryListResponse] + :return: An iterator like instance of either FactoryListResponse or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~dfaz_management_client.models.FactoryListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.FactoryListResponse"] @@ -264,16 +264,16 @@ async def create_or_update( :param tags: The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :param fake_identity: This is only for az test. - :type fake_identity: ~azure.mgmt.datafactory.models.FakeFactoryIdentity + :type fake_identity: ~dfaz_management_client.models.FakeFactoryIdentity :param zones: This is only for az test. :type zones: list[str] :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -320,7 +320,7 @@ async def create_or_update( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -342,10 +342,10 @@ async def update( :param tags: The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -390,7 +390,7 @@ async def update( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -412,8 +412,8 @@ async def get( matches the existing entity tag, or if * was provided, then no content will be returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory or None + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -454,7 +454,7 @@ async def get( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -472,7 +472,7 @@ async def delete( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -507,7 +507,7 @@ async def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -533,8 +533,8 @@ async def get_git_hub_access_token( :param git_hub_client_id: GitHub application client ID. :type git_hub_client_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :return: GitHubAccessTokenResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.GitHubAccessTokenResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.GitHubAccessTokenResponse"] @@ -579,7 +579,7 @@ async def get_git_hub_access_token( deserialized = self._deserialize('GitHubAccessTokenResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_git_hub_access_token.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken'} # type: ignore @@ -616,8 +616,8 @@ async def get_data_plane_access( hours and by default the token will expire in eight hours. :type expire_time: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :return: AccessPolicyResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.AccessPolicyResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AccessPolicyResponse"] @@ -662,7 +662,7 @@ async def get_data_plane_access( deserialized = self._deserialize('AccessPolicyResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_data_plane_access.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess'} # type: ignore diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_integration_runtime_operations_async.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_integration_runtime_operations_async.py index 8e01fb3f2..567c29e00 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_integration_runtime_operations_async.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_integration_runtime_operations_async.py @@ -28,7 +28,7 @@ class IntegrationRuntimeOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +56,8 @@ def list_by_factory( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of IntegrationRuntimeListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeListResponse] + :return: An iterator like instance of either IntegrationRuntimeListResponse or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~dfaz_management_client.models.IntegrationRuntimeListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeListResponse"] @@ -132,13 +132,13 @@ async def create_or_update( :param integration_runtime_name: The integration runtime name. :type integration_runtime_name: str :param properties: Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + :type properties: ~dfaz_management_client.models.IntegrationRuntime :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -186,7 +186,7 @@ async def create_or_update( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -212,8 +212,8 @@ async def get( returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -255,7 +255,7 @@ async def get( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -279,13 +279,13 @@ async def update( :type integration_runtime_name: str :param auto_update: Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. - :type auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :type auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :param update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. :type update_delay_offset: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -331,7 +331,7 @@ async def update( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -352,7 +352,7 @@ async def delete( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -388,7 +388,7 @@ async def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -408,8 +408,8 @@ async def get_status( :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: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :return: IntegrationRuntimeStatusResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeStatusResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeStatusResponse"] @@ -447,7 +447,7 @@ async def get_status( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus'} # type: ignore @@ -468,8 +468,8 @@ async def get_connection_info( :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: IntegrationRuntimeConnectionInfo or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo + :return: IntegrationRuntimeConnectionInfo, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeConnectionInfo :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeConnectionInfo"] @@ -507,7 +507,7 @@ async def get_connection_info( deserialized = self._deserialize('IntegrationRuntimeConnectionInfo', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_connection_info.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo'} # type: ignore @@ -529,10 +529,10 @@ async def regenerate_auth_key( :param integration_runtime_name: The integration runtime name. :type integration_runtime_name: str :param key_name: The name of the authentication key to regenerate. - :type key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName + :type key_name: str or ~dfaz_management_client.models.IntegrationRuntimeAuthKeyName :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :return: IntegrationRuntimeAuthKeys, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeAuthKeys :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeAuthKeys"] @@ -578,7 +578,7 @@ async def regenerate_auth_key( deserialized = self._deserialize('IntegrationRuntimeAuthKeys', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized regenerate_auth_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey'} # type: ignore @@ -599,8 +599,8 @@ async def list_auth_key( :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: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :return: IntegrationRuntimeAuthKeys, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeAuthKeys :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeAuthKeys"] @@ -638,7 +638,7 @@ async def list_auth_key( deserialized = self._deserialize('IntegrationRuntimeAuthKeys', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list_auth_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys'} # type: ignore @@ -687,7 +687,7 @@ async def _start_initial( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start'} # type: ignore @@ -712,8 +712,8 @@ async def start( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: IntegrationRuntimeStatusResponse - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :return: IntegrationRuntimeStatusResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -730,6 +730,9 @@ async def start( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) @@ -782,7 +785,7 @@ async def _stop_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop'} # type: ignore @@ -806,7 +809,7 @@ async def stop( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -824,6 +827,9 @@ async def stop( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -850,7 +856,7 @@ async def sync_credentials( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -886,7 +892,7 @@ async def sync_credentials( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) sync_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'} # type: ignore @@ -906,8 +912,8 @@ async def get_monitoring_data( :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: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData + :return: IntegrationRuntimeMonitoringData, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeMonitoringData :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeMonitoringData"] @@ -945,7 +951,7 @@ async def get_monitoring_data( deserialized = self._deserialize('IntegrationRuntimeMonitoringData', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_monitoring_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData'} # type: ignore @@ -966,7 +972,7 @@ async def upgrade( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -1002,7 +1008,7 @@ async def upgrade( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade'} # type: ignore @@ -1025,7 +1031,7 @@ async def remove_link( :param linked_factory_name: The data factory name for linked integration runtime. :type linked_factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -1069,7 +1075,7 @@ async def remove_link( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) remove_link.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks'} # type: ignore @@ -1104,8 +1110,8 @@ async def create_linked_integration_runtime( runtime belongs to. :type data_factory_location: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :return: IntegrationRuntimeStatusResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeStatusResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeStatusResponse"] @@ -1151,7 +1157,7 @@ async def create_linked_integration_runtime( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_linked_integration_runtime.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime'} # type: ignore diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_trigger_operations_async.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_trigger_operations_async.py index 6ced928b5..3e67494e6 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_trigger_operations_async.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/aio/operations_async/_trigger_operations_async.py @@ -28,7 +28,7 @@ class TriggerOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +56,8 @@ def list_by_factory( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of TriggerListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.TriggerListResponse] + :return: An iterator like instance of either TriggerListResponse or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~dfaz_management_client.models.TriggerListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerListResponse"] @@ -135,8 +135,8 @@ async def query_by_factory( triggers. :type parent_trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :return: TriggerQueryResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerQueryResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerQueryResponse"] @@ -181,7 +181,7 @@ async def query_by_factory( deserialized = self._deserialize('TriggerQueryResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized query_by_factory.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers'} # type: ignore @@ -204,13 +204,13 @@ async def create_or_update( :param trigger_name: The trigger name. :type trigger_name: str :param properties: Properties of the trigger. - :type properties: ~azure.mgmt.datafactory.models.Trigger + :type properties: ~dfaz_management_client.models.Trigger :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :return: TriggerResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerResource"] @@ -258,7 +258,7 @@ async def create_or_update( deserialized = self._deserialize('TriggerResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -283,8 +283,8 @@ async def get( matches the existing entity tag, or if * was provided, then no content will be returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None + :return: TriggerResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerResource or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerResource"] @@ -326,7 +326,7 @@ async def get( deserialized = self._deserialize('TriggerResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -347,7 +347,7 @@ async def delete( :param trigger_name: The trigger name. :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -383,7 +383,7 @@ async def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -431,7 +431,7 @@ async def _subscribe_to_event_initial( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _subscribe_to_event_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents'} # type: ignore @@ -456,8 +456,8 @@ async def subscribe_to_event( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: TriggerSubscriptionOperationStatus - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :return: TriggerSubscriptionOperationStatus, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerSubscriptionOperationStatus :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -474,6 +474,9 @@ async def subscribe_to_event( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) @@ -503,8 +506,8 @@ async def get_event_subscription_status( :param trigger_name: The trigger name. :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerSubscriptionOperationStatus or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :return: TriggerSubscriptionOperationStatus, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerSubscriptionOperationStatus :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerSubscriptionOperationStatus"] @@ -542,7 +545,7 @@ async def get_event_subscription_status( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_event_subscription_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus'} # type: ignore @@ -591,7 +594,7 @@ async def _unsubscribe_from_event_initial( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _unsubscribe_from_event_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents'} # type: ignore @@ -616,8 +619,8 @@ async def unsubscribe_from_event( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: TriggerSubscriptionOperationStatus - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :return: TriggerSubscriptionOperationStatus, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerSubscriptionOperationStatus :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -634,6 +637,9 @@ async def unsubscribe_from_event( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) @@ -686,7 +692,7 @@ async def _start_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start'} # type: ignore @@ -710,7 +716,7 @@ async def start( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -728,6 +734,9 @@ async def start( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -777,7 +786,7 @@ async def _stop_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop'} # type: ignore @@ -801,7 +810,7 @@ async def stop( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -819,6 +828,9 @@ async def stop( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models.py index 016566c63..ef9ce3e4e 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models.py @@ -13,7 +13,7 @@ class AccessPolicyResponse(msrest.serialization.Model): """Get Data Plane read only token response definition. :param policy: The user access policy. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy + :type policy: ~dfaz_management_client.models.UserAccessPolicy :param access_token: Data Plane read only access token. :type access_token: str :param data_plane_url: Data Plane service base URL. @@ -55,7 +55,7 @@ class Trigger(msrest.serialization.Model): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] """ @@ -108,11 +108,11 @@ class MultiplePipelineTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] """ _validation = { @@ -158,11 +158,11 @@ class BlobEventsTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param blob_path_begins_with: The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: @@ -175,7 +175,7 @@ class BlobEventsTrigger(MultiplePipelineTrigger): :param ignore_empty_blobs: If set to true, blobs with zero bytes will be ignored. :type ignore_empty_blobs: bool :param events: Required. The type of events that cause this trigger to fire. - :type events: list[str or ~azure.mgmt.datafactory.models.BlobEventTypes] + :type events: list[str or ~dfaz_management_client.models.BlobEventTypes] :param scope: Required. The ARM resource ID of the Storage Account. :type scope: str """ @@ -230,18 +230,18 @@ class BlobTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param folder_path: Required. The path of the container/folder that will trigger the pipeline. :type folder_path: str :param max_concurrency: Required. The max number of parallel files to handle when it is triggered. :type max_concurrency: int :param linked_service: Required. The Azure Storage linked service reference. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :type linked_service: ~dfaz_management_client.models.LinkedServiceReference """ _validation = { @@ -291,14 +291,14 @@ class ChainingTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipeline: Required. Pipeline for which runs are created when all upstream pipelines complete successfully. - :type pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :type pipeline: ~dfaz_management_client.models.TriggerPipelineReference :param depends_on: Required. Upstream Pipelines. - :type depends_on: list[~azure.mgmt.datafactory.models.PipelineReference] + :type depends_on: list[~dfaz_management_client.models.PipelineReference] :param run_dimension: Required. Run Dimension property that needs to be emitted by upstream pipelines. :type run_dimension: str @@ -346,7 +346,7 @@ class CloudError(msrest.serialization.Model): :param target: Property name/path in request associated with error. :type target: str :param details: Array with additional error details. - :type details: list[~azure.mgmt.datafactory.models.CloudError] + :type details: list[~dfaz_management_client.models.CloudError] """ _validation = { @@ -416,7 +416,7 @@ class CmdkeySetup(CustomSetupBase): :param user_name: Required. The user name of data source access. :type user_name: object :param password: Required. The password of data source access. - :type password: ~azure.mgmt.datafactory.models.SecretBase + :type password: ~dfaz_management_client.models.SecretBase """ _validation = { @@ -454,7 +454,7 @@ class ComponentSetup(CustomSetupBase): :param component_name: Required. The name of the 3rd party component. :type component_name: str :param license_key: The license key to activate the component. - :type license_key: ~azure.mgmt.datafactory.models.SecretBase + :type license_key: ~dfaz_management_client.models.SecretBase """ _validation = { @@ -549,7 +549,7 @@ class EntityReference(msrest.serialization.Model): :param type: The type of this referenced entity. Possible values include: "IntegrationRuntimeReference", "LinkedServiceReference". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeEntityReferenceType :param reference_name: The name of this referenced entity. :type reference_name: str """ @@ -672,7 +672,7 @@ class Factory(Resource): collection. :type additional_properties: dict[str, object] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :ivar provisioning_state: Factory provisioning state, example Succeeded. :vartype provisioning_state: str :ivar create_time: Time the factory was created in ISO8601 format. @@ -680,9 +680,9 @@ class Factory(Resource): :ivar version: Version of the factory. :vartype version: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :param fake_identity: This is only for az test. - :type fake_identity: ~azure.mgmt.datafactory.models.FakeFactoryIdentity + :type fake_identity: ~dfaz_management_client.models.FakeFactoryIdentity :param zones: This is only for az test. :type zones: list[str] """ @@ -878,7 +878,7 @@ class FactoryListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of factories. - :type value: list[~azure.mgmt.datafactory.models.Factory] + :type value: list[~dfaz_management_client.models.Factory] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -907,7 +907,7 @@ class FactoryRepoUpdate(msrest.serialization.Model): :param factory_resource_id: The factory resource id. :type factory_resource_id: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration """ _attribute_map = { @@ -930,7 +930,7 @@ class FactoryUpdateParameters(msrest.serialization.Model): :param tags: A set of tags. The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity """ _attribute_map = { @@ -1095,7 +1095,7 @@ class IntegrationRuntime(msrest.serialization.Model): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str """ @@ -1165,9 +1165,9 @@ class IntegrationRuntimeComputeProperties(msrest.serialization.Model): integration runtime. :type max_parallel_executions_per_node: int :param data_flow_properties: Data flow properties for managed integration runtime. - :type data_flow_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties + :type data_flow_properties: ~dfaz_management_client.models.IntegrationRuntimeDataFlowProperties :param v_net_properties: VNet properties for managed integration runtime. - :type v_net_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties + :type v_net_properties: ~dfaz_management_client.models.IntegrationRuntimeVNetProperties """ _validation = { @@ -1264,7 +1264,7 @@ class IntegrationRuntimeCustomSetupScriptProperties(msrest.serialization.Model): script. :type blob_container_uri: str :param sas_token: The SAS token of the Azure blob container. - :type sas_token: ~azure.mgmt.datafactory.models.SecureString + :type sas_token: ~dfaz_management_client.models.SecureString """ _attribute_map = { @@ -1289,7 +1289,7 @@ class IntegrationRuntimeDataFlowProperties(msrest.serialization.Model): :type additional_properties: dict[str, object] :param compute_type: Compute type of the cluster which will execute data flow job. Possible values include: "General", "MemoryOptimized", "ComputeOptimized". - :type compute_type: str or ~azure.mgmt.datafactory.models.DataFlowComputeType + :type compute_type: str or ~dfaz_management_client.models.DataFlowComputeType :param core_count: Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. :type core_count: int @@ -1324,9 +1324,9 @@ class IntegrationRuntimeDataProxyProperties(msrest.serialization.Model): """Data proxy properties for a managed dedicated integration runtime. :param connect_via: The self-hosted integration runtime reference. - :type connect_via: ~azure.mgmt.datafactory.models.EntityReference + :type connect_via: ~dfaz_management_client.models.EntityReference :param staging_linked_service: The staging linked service reference. - :type staging_linked_service: ~azure.mgmt.datafactory.models.EntityReference + :type staging_linked_service: ~dfaz_management_client.models.EntityReference :param path: The path to contain the staged data in the Blob storage. :type path: str """ @@ -1353,7 +1353,7 @@ class IntegrationRuntimeListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of integration runtimes. - :type value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :type value: list[~dfaz_management_client.models.IntegrationRuntimeResource] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -1382,7 +1382,7 @@ class IntegrationRuntimeMonitoringData(msrest.serialization.Model): :param name: Integration runtime name. :type name: str :param nodes: Integration runtime node monitoring data. - :type nodes: list[~azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData] + :type nodes: list[~dfaz_management_client.models.IntegrationRuntimeNodeMonitoringData] """ _attribute_map = { @@ -1533,7 +1533,7 @@ class IntegrationRuntimeRegenerateKeyParameters(msrest.serialization.Model): :param key_name: The name of the authentication key to regenerate. Possible values include: "authKey1", "authKey2". - :type key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName + :type key_name: str or ~dfaz_management_client.models.IntegrationRuntimeAuthKeyName """ _attribute_map = { @@ -1604,7 +1604,7 @@ class IntegrationRuntimeResource(SubResource): :ivar etag: Etag identifies change in the resource. :vartype etag: str :param properties: Required. Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + :type properties: ~dfaz_management_client.models.IntegrationRuntime """ _validation = { @@ -1643,12 +1643,12 @@ class IntegrationRuntimeSsisCatalogInfo(msrest.serialization.Model): :type catalog_admin_user_name: str :param catalog_admin_password: The password of the administrator user account of the catalog database. - :type catalog_admin_password: ~azure.mgmt.datafactory.models.SecureString + :type catalog_admin_password: ~dfaz_management_client.models.SecureString :param catalog_pricing_tier: The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: "Basic", "Standard", "Premium", "PremiumRS". :type catalog_pricing_tier: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier + ~dfaz_management_client.models.IntegrationRuntimeSsisCatalogPricingTier """ _validation = { @@ -1682,26 +1682,26 @@ class IntegrationRuntimeSsisProperties(msrest.serialization.Model): collection. :type additional_properties: dict[str, object] :param catalog_info: Catalog information for managed dedicated integration runtime. - :type catalog_info: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo + :type catalog_info: ~dfaz_management_client.models.IntegrationRuntimeSsisCatalogInfo :param license_type: License type for bringing your own license scenario. Possible values include: "BasePrice", "LicenseIncluded". - :type license_type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType + :type license_type: str or ~dfaz_management_client.models.IntegrationRuntimeLicenseType :param custom_setup_script_properties: Custom setup script properties for a managed dedicated integration runtime. :type custom_setup_script_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties + ~dfaz_management_client.models.IntegrationRuntimeCustomSetupScriptProperties :param data_proxy_properties: Data proxy properties for a managed dedicated integration runtime. :type data_proxy_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties + ~dfaz_management_client.models.IntegrationRuntimeDataProxyProperties :param edition: The edition for the SSIS Integration Runtime. Possible values include: "Standard", "Enterprise". - :type edition: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEdition + :type edition: str or ~dfaz_management_client.models.IntegrationRuntimeEdition :param express_custom_setup_properties: Custom setup without script properties for a SSIS integration runtime. - :type express_custom_setup_properties: list[~azure.mgmt.datafactory.models.CustomSetupBase] + :type express_custom_setup_properties: list[~dfaz_management_client.models.CustomSetupBase] :param package_stores: Package stores for the SSIS Integration Runtime. - :type package_stores: list[~azure.mgmt.datafactory.models.PackageStore] + :type package_stores: list[~dfaz_management_client.models.PackageStore] """ _attribute_map = { @@ -1745,13 +1745,13 @@ class IntegrationRuntimeStatus(msrest.serialization.Model): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState """ _validation = { @@ -1788,7 +1788,7 @@ class IntegrationRuntimeStatusListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of integration runtime status. - :type value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] + :type value: list[~dfaz_management_client.models.IntegrationRuntimeStatusResponse] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -1821,7 +1821,7 @@ class IntegrationRuntimeStatusResponse(msrest.serialization.Model): :ivar name: The integration runtime name. :vartype name: str :param properties: Required. Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatus + :type properties: ~dfaz_management_client.models.IntegrationRuntimeStatus """ _validation = { @@ -1965,7 +1965,7 @@ class LinkedIntegrationRuntimeKeyAuthorization(LinkedIntegrationRuntimeType): sharing.Constant filled by server. :type authorization_type: str :param key: Required. The key used for authorization. - :type key: ~azure.mgmt.datafactory.models.SecureString + :type key: ~dfaz_management_client.models.SecureString """ _validation = { @@ -2092,17 +2092,17 @@ class ManagedIntegrationRuntime(IntegrationRuntime): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str :ivar state: Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :param compute_properties: The compute resource for managed integration runtime. - :type compute_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties + :type compute_properties: ~dfaz_management_client.models.IntegrationRuntimeComputeProperties :param ssis_properties: SSIS properties for managed integration runtime. - :type ssis_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties + :type ssis_properties: ~dfaz_management_client.models.IntegrationRuntimeSsisProperties """ _validation = { @@ -2187,9 +2187,9 @@ class ManagedIntegrationRuntimeNode(msrest.serialization.Model): :vartype node_id: str :ivar status: The managed integration runtime node status. Possible values include: "Starting", "Available", "Recycling", "Unavailable". - :vartype status: str or ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus + :vartype status: str or ~dfaz_management_client.models.ManagedIntegrationRuntimeNodeStatus :param errors: The errors that occurred on this integration runtime node. - :type errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + :type errors: list[~dfaz_management_client.models.ManagedIntegrationRuntimeError] """ _validation = { @@ -2282,22 +2282,22 @@ class ManagedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. :vartype create_time: ~datetime.datetime :ivar nodes: The list of nodes for managed integration runtime. - :vartype nodes: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode] + :vartype nodes: list[~dfaz_management_client.models.ManagedIntegrationRuntimeNode] :ivar other_errors: The errors that occurred on this integration runtime. - :vartype other_errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + :vartype other_errors: list[~dfaz_management_client.models.ManagedIntegrationRuntimeError] :ivar last_operation: The last operation result that occurred on this integration runtime. :vartype last_operation: - ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult + ~dfaz_management_client.models.ManagedIntegrationRuntimeOperationResult """ _validation = { @@ -2341,7 +2341,7 @@ class PackageStore(msrest.serialization.Model): :param name: Required. The name of the package store. :type name: str :param package_store_linked_service: Required. The package store linked service reference. - :type package_store_linked_service: ~azure.mgmt.datafactory.models.EntityReference + :type package_store_linked_service: ~dfaz_management_client.models.EntityReference """ _validation = { @@ -2411,11 +2411,11 @@ class RecurrenceSchedule(msrest.serialization.Model): :param hours: The hours. :type hours: list[int] :param week_days: The days of the week. - :type week_days: list[str or ~azure.mgmt.datafactory.models.DaysOfWeek] + :type week_days: list[str or ~dfaz_management_client.models.DaysOfWeek] :param month_days: The month days. :type month_days: list[int] :param monthly_occurrences: The monthly occurrences. - :type monthly_occurrences: list[~azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence] + :type monthly_occurrences: list[~dfaz_management_client.models.RecurrenceScheduleOccurrence] """ _attribute_map = { @@ -2448,7 +2448,7 @@ class RecurrenceScheduleOccurrence(msrest.serialization.Model): :type additional_properties: dict[str, object] :param day: The day of the week. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". - :type day: str or ~azure.mgmt.datafactory.models.DayOfWeek + :type day: str or ~dfaz_management_client.models.DayOfWeek :param occurrence: The occurrence. :type occurrence: int """ @@ -2485,7 +2485,7 @@ class RerunTumblingWindowTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param parent_trigger: Required. The parent trigger reference. @@ -2578,13 +2578,13 @@ class ScheduleTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param recurrence: Required. Recurrence schedule configuration. - :type recurrence: ~azure.mgmt.datafactory.models.ScheduleTriggerRecurrence + :type recurrence: ~dfaz_management_client.models.ScheduleTriggerRecurrence """ _validation = { @@ -2620,7 +2620,7 @@ class ScheduleTriggerRecurrence(msrest.serialization.Model): :type additional_properties: dict[str, object] :param frequency: The frequency. Possible values include: "NotSpecified", "Minute", "Hour", "Day", "Week", "Month", "Year". - :type frequency: str or ~azure.mgmt.datafactory.models.RecurrenceFrequency + :type frequency: str or ~dfaz_management_client.models.RecurrenceFrequency :param interval: The interval. :type interval: int :param start_time: The start time. @@ -2630,7 +2630,7 @@ class ScheduleTriggerRecurrence(msrest.serialization.Model): :param time_zone: The time zone. :type time_zone: str :param schedule: The recurrence schedule. - :type schedule: ~azure.mgmt.datafactory.models.RecurrenceSchedule + :type schedule: ~dfaz_management_client.models.RecurrenceSchedule """ _attribute_map = { @@ -2766,11 +2766,11 @@ class SelfHostedIntegrationRuntime(IntegrationRuntime): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str :param linked_info: The base definition of a linked integration runtime. - :type linked_info: ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType + :type linked_info: ~dfaz_management_client.models.LinkedIntegrationRuntimeType """ _validation = { @@ -2810,7 +2810,7 @@ class SelfHostedIntegrationRuntimeNode(msrest.serialization.Model): :ivar status: Status of the integration runtime node. Possible values include: "NeedRegistration", "Online", "Limited", "Offline", "Upgrading", "Initializing", "InitializeFailed". - :vartype status: str or ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus + :vartype status: str or ~dfaz_management_client.models.SelfHostedIntegrationRuntimeNodeStatus :ivar capabilities: The integration runtime capabilities dictionary. :vartype capabilities: dict[str, str] :ivar version_status: Status of the integration runtime node version. @@ -2832,7 +2832,7 @@ class SelfHostedIntegrationRuntimeNode(msrest.serialization.Model): :ivar last_update_result: The result of the last integration runtime node update. Possible values include: "None", "Succeed", "Fail". :vartype last_update_result: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult + ~dfaz_management_client.models.IntegrationRuntimeUpdateResult :ivar last_start_update_time: The last time for the integration runtime node update start. :vartype last_start_update_time: ~datetime.datetime :ivar last_end_update_time: The last time for the integration runtime node update end. @@ -2927,13 +2927,13 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. :vartype create_time: ~datetime.datetime :ivar task_queue_id: The task queue id of the integration runtime. @@ -2942,11 +2942,11 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: "NotSet", "SslEncrypted", "NotEncrypted". :vartype internal_channel_encryption: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode + ~dfaz_management_client.models.IntegrationRuntimeInternalChannelEncryptionMode :ivar version: Version of the integration runtime. :vartype version: str :param nodes: The list of nodes for this integration runtime. - :type nodes: list[~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode] + :type nodes: list[~dfaz_management_client.models.SelfHostedIntegrationRuntimeNode] :ivar scheduled_update_date: The date at which the integration runtime will be scheduled to update, in ISO8601 format. :vartype scheduled_update_date: ~datetime.datetime @@ -2961,12 +2961,12 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :vartype service_urls: list[str] :ivar auto_update: Whether Self-hosted integration runtime auto update has been turned on. Possible values include: "On", "Off". - :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :vartype auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :ivar version_status: Status of the integration runtime version. :vartype version_status: str :param links: The list of linked integration runtimes that are created to share with this integration runtime. - :type links: list[~azure.mgmt.datafactory.models.LinkedIntegrationRuntime] + :type links: list[~dfaz_management_client.models.LinkedIntegrationRuntime] :ivar pushed_version: The version that the integration runtime is going to update to. :vartype pushed_version: str :ivar latest_version: The latest version on download center. @@ -3053,7 +3053,7 @@ class SsisObjectMetadata(msrest.serialization.Model): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3095,7 +3095,7 @@ class SsisEnvironment(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3105,7 +3105,7 @@ class SsisEnvironment(SsisObjectMetadata): :param folder_id: Folder id which contains environment. :type folder_id: long :param variables: Variable in environment. - :type variables: list[~azure.mgmt.datafactory.models.SsisVariable] + :type variables: list[~dfaz_management_client.models.SsisVariable] """ _validation = { @@ -3169,7 +3169,7 @@ class SsisFolder(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3201,7 +3201,7 @@ class SsisObjectMetadataListResponse(msrest.serialization.Model): """A list of SSIS object metadata. :param value: List of SSIS object metadata. - :type value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata] + :type value: list[~dfaz_management_client.models.SsisObjectMetadata] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -3227,7 +3227,7 @@ class SsisPackage(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3241,7 +3241,7 @@ class SsisPackage(SsisObjectMetadata): :param project_id: Project id which contains package. :type project_id: long :param parameters: Parameters in package. - :type parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :type parameters: list[~dfaz_management_client.models.SsisParameter] """ _validation = { @@ -3341,7 +3341,7 @@ class SsisProject(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3353,9 +3353,9 @@ class SsisProject(SsisObjectMetadata): :param version: Project version. :type version: long :param environment_refs: Environment reference in project. - :type environment_refs: list[~azure.mgmt.datafactory.models.SsisEnvironmentReference] + :type environment_refs: list[~dfaz_management_client.models.SsisEnvironmentReference] :param parameters: Parameters in project. - :type parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :type parameters: list[~dfaz_management_client.models.SsisParameter] """ _validation = { @@ -3439,7 +3439,7 @@ class TriggerDependencyReference(DependencyReference): :param type: Required. The type of dependency reference.Constant filled by server. :type type: str :param reference_trigger: Required. Referenced trigger. - :type reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :type reference_trigger: ~dfaz_management_client.models.TriggerReference """ _validation = { @@ -3496,7 +3496,7 @@ class TriggerListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of triggers. - :type value: list[~azure.mgmt.datafactory.models.TriggerResource] + :type value: list[~dfaz_management_client.models.TriggerResource] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -3523,7 +3523,7 @@ class TriggerPipelineReference(msrest.serialization.Model): """Pipeline that needs to be triggered with the given parameters. :param pipeline_reference: Pipeline reference. - :type pipeline_reference: ~azure.mgmt.datafactory.models.PipelineReference + :type pipeline_reference: ~dfaz_management_client.models.PipelineReference :param parameters: Pipeline parameters. :type parameters: dict[str, object] """ @@ -3548,7 +3548,7 @@ class TriggerQueryResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of triggers. - :type value: list[~azure.mgmt.datafactory.models.TriggerResource] + :type value: list[~dfaz_management_client.models.TriggerResource] :param continuation_token: The continuation token for getting the next page of results, if any remaining results exist, null otherwise. :type continuation_token: str @@ -3621,7 +3621,7 @@ class TriggerResource(SubResource): :ivar etag: Etag identifies change in the resource. :vartype etag: str :param properties: Required. Properties of the trigger. - :type properties: ~azure.mgmt.datafactory.models.Trigger + :type properties: ~dfaz_management_client.models.Trigger """ _validation = { @@ -3657,7 +3657,7 @@ class TriggerSubscriptionOperationStatus(msrest.serialization.Model): :vartype trigger_name: str :ivar status: Event Subscription Status. Possible values include: "Enabled", "Provisioning", "Deprovisioning", "Disabled", "Unknown". - :vartype status: str or ~azure.mgmt.datafactory.models.EventSubscriptionStatus + :vartype status: str or ~dfaz_management_client.models.EventSubscriptionStatus """ _validation = { @@ -3695,15 +3695,15 @@ class TumblingWindowTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipeline: Required. Pipeline for which runs are created when an event is fired for trigger window that is ready. - :type pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :type pipeline: ~dfaz_management_client.models.TriggerPipelineReference :param frequency: Required. The frequency of the time windows. Possible values include: "Minute", "Hour". - :type frequency: str or ~azure.mgmt.datafactory.models.TumblingWindowFrequency + :type frequency: str or ~dfaz_management_client.models.TumblingWindowFrequency :param interval: Required. The interval of the time windows. The minimum interval allowed is 15 Minutes. :type interval: int @@ -3721,10 +3721,10 @@ class TumblingWindowTrigger(Trigger): for which a new run is triggered. :type max_concurrency: int :param retry_policy: Retry policy that will be applied for failed pipeline runs. - :type retry_policy: ~azure.mgmt.datafactory.models.RetryPolicy + :type retry_policy: ~dfaz_management_client.models.RetryPolicy :param depends_on: Triggers that this trigger depends on. Only tumbling window triggers are supported. - :type depends_on: list[~azure.mgmt.datafactory.models.DependencyReference] + :type depends_on: list[~dfaz_management_client.models.DependencyReference] """ _validation = { @@ -3779,7 +3779,7 @@ class TumblingWindowTriggerDependencyReference(TriggerDependencyReference): :param type: Required. The type of dependency reference.Constant filled by server. :type type: str :param reference_trigger: Required. Referenced trigger. - :type reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :type reference_trigger: ~dfaz_management_client.models.TriggerReference :param offset: Timespan applied to the start time of a tumbling window when evaluating dependency. :type offset: str @@ -3818,7 +3818,7 @@ class UpdateIntegrationRuntimeRequest(msrest.serialization.Model): :param auto_update: Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: "On", "Off". - :type auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :type auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :param update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. :type update_delay_offset: str diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models_py3.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models_py3.py index 9a88cf941..bb473c67b 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models_py3.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/models/_models_py3.py @@ -18,7 +18,7 @@ class AccessPolicyResponse(msrest.serialization.Model): """Get Data Plane read only token response definition. :param policy: The user access policy. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy + :type policy: ~dfaz_management_client.models.UserAccessPolicy :param access_token: Data Plane read only access token. :type access_token: str :param data_plane_url: Data Plane service base URL. @@ -64,7 +64,7 @@ class Trigger(msrest.serialization.Model): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] """ @@ -121,11 +121,11 @@ class MultiplePipelineTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] """ _validation = { @@ -176,11 +176,11 @@ class BlobEventsTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param blob_path_begins_with: The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: @@ -193,7 +193,7 @@ class BlobEventsTrigger(MultiplePipelineTrigger): :param ignore_empty_blobs: If set to true, blobs with zero bytes will be ignored. :type ignore_empty_blobs: bool :param events: Required. The type of events that cause this trigger to fire. - :type events: list[str or ~azure.mgmt.datafactory.models.BlobEventTypes] + :type events: list[str or ~dfaz_management_client.models.BlobEventTypes] :param scope: Required. The ARM resource ID of the Storage Account. :type scope: str """ @@ -258,18 +258,18 @@ class BlobTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param folder_path: Required. The path of the container/folder that will trigger the pipeline. :type folder_path: str :param max_concurrency: Required. The max number of parallel files to handle when it is triggered. :type max_concurrency: int :param linked_service: Required. The Azure Storage linked service reference. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference + :type linked_service: ~dfaz_management_client.models.LinkedServiceReference """ _validation = { @@ -327,14 +327,14 @@ class ChainingTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipeline: Required. Pipeline for which runs are created when all upstream pipelines complete successfully. - :type pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :type pipeline: ~dfaz_management_client.models.TriggerPipelineReference :param depends_on: Required. Upstream Pipelines. - :type depends_on: list[~azure.mgmt.datafactory.models.PipelineReference] + :type depends_on: list[~dfaz_management_client.models.PipelineReference] :param run_dimension: Required. Run Dimension property that needs to be emitted by upstream pipelines. :type run_dimension: str @@ -389,7 +389,7 @@ class CloudError(msrest.serialization.Model): :param target: Property name/path in request associated with error. :type target: str :param details: Array with additional error details. - :type details: list[~azure.mgmt.datafactory.models.CloudError] + :type details: list[~dfaz_management_client.models.CloudError] """ _validation = { @@ -464,7 +464,7 @@ class CmdkeySetup(CustomSetupBase): :param user_name: Required. The user name of data source access. :type user_name: object :param password: Required. The password of data source access. - :type password: ~azure.mgmt.datafactory.models.SecretBase + :type password: ~dfaz_management_client.models.SecretBase """ _validation = { @@ -506,7 +506,7 @@ class ComponentSetup(CustomSetupBase): :param component_name: Required. The name of the 3rd party component. :type component_name: str :param license_key: The license key to activate the component. - :type license_key: ~azure.mgmt.datafactory.models.SecretBase + :type license_key: ~dfaz_management_client.models.SecretBase """ _validation = { @@ -609,7 +609,7 @@ class EntityReference(msrest.serialization.Model): :param type: The type of this referenced entity. Possible values include: "IntegrationRuntimeReference", "LinkedServiceReference". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEntityReferenceType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeEntityReferenceType :param reference_name: The name of this referenced entity. :type reference_name: str """ @@ -741,7 +741,7 @@ class Factory(Resource): collection. :type additional_properties: dict[str, object] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :ivar provisioning_state: Factory provisioning state, example Succeeded. :vartype provisioning_state: str :ivar create_time: Time the factory was created in ISO8601 format. @@ -749,9 +749,9 @@ class Factory(Resource): :ivar version: Version of the factory. :vartype version: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :param fake_identity: This is only for az test. - :type fake_identity: ~azure.mgmt.datafactory.models.FakeFactoryIdentity + :type fake_identity: ~dfaz_management_client.models.FakeFactoryIdentity :param zones: This is only for az test. :type zones: list[str] """ @@ -968,7 +968,7 @@ class FactoryListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of factories. - :type value: list[~azure.mgmt.datafactory.models.Factory] + :type value: list[~dfaz_management_client.models.Factory] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -1000,7 +1000,7 @@ class FactoryRepoUpdate(msrest.serialization.Model): :param factory_resource_id: The factory resource id. :type factory_resource_id: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration """ _attribute_map = { @@ -1026,7 +1026,7 @@ class FactoryUpdateParameters(msrest.serialization.Model): :param tags: A set of tags. The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity """ _attribute_map = { @@ -1211,7 +1211,7 @@ class IntegrationRuntime(msrest.serialization.Model): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str """ @@ -1287,9 +1287,9 @@ class IntegrationRuntimeComputeProperties(msrest.serialization.Model): integration runtime. :type max_parallel_executions_per_node: int :param data_flow_properties: Data flow properties for managed integration runtime. - :type data_flow_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowProperties + :type data_flow_properties: ~dfaz_management_client.models.IntegrationRuntimeDataFlowProperties :param v_net_properties: VNet properties for managed integration runtime. - :type v_net_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeVNetProperties + :type v_net_properties: ~dfaz_management_client.models.IntegrationRuntimeVNetProperties """ _validation = { @@ -1396,7 +1396,7 @@ class IntegrationRuntimeCustomSetupScriptProperties(msrest.serialization.Model): script. :type blob_container_uri: str :param sas_token: The SAS token of the Azure blob container. - :type sas_token: ~azure.mgmt.datafactory.models.SecureString + :type sas_token: ~dfaz_management_client.models.SecureString """ _attribute_map = { @@ -1424,7 +1424,7 @@ class IntegrationRuntimeDataFlowProperties(msrest.serialization.Model): :type additional_properties: dict[str, object] :param compute_type: Compute type of the cluster which will execute data flow job. Possible values include: "General", "MemoryOptimized", "ComputeOptimized". - :type compute_type: str or ~azure.mgmt.datafactory.models.DataFlowComputeType + :type compute_type: str or ~dfaz_management_client.models.DataFlowComputeType :param core_count: Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. :type core_count: int @@ -1464,9 +1464,9 @@ class IntegrationRuntimeDataProxyProperties(msrest.serialization.Model): """Data proxy properties for a managed dedicated integration runtime. :param connect_via: The self-hosted integration runtime reference. - :type connect_via: ~azure.mgmt.datafactory.models.EntityReference + :type connect_via: ~dfaz_management_client.models.EntityReference :param staging_linked_service: The staging linked service reference. - :type staging_linked_service: ~azure.mgmt.datafactory.models.EntityReference + :type staging_linked_service: ~dfaz_management_client.models.EntityReference :param path: The path to contain the staged data in the Blob storage. :type path: str """ @@ -1497,7 +1497,7 @@ class IntegrationRuntimeListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of integration runtimes. - :type value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] + :type value: list[~dfaz_management_client.models.IntegrationRuntimeResource] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -1529,7 +1529,7 @@ class IntegrationRuntimeMonitoringData(msrest.serialization.Model): :param name: Integration runtime name. :type name: str :param nodes: Integration runtime node monitoring data. - :type nodes: list[~azure.mgmt.datafactory.models.IntegrationRuntimeNodeMonitoringData] + :type nodes: list[~dfaz_management_client.models.IntegrationRuntimeNodeMonitoringData] """ _attribute_map = { @@ -1688,7 +1688,7 @@ class IntegrationRuntimeRegenerateKeyParameters(msrest.serialization.Model): :param key_name: The name of the authentication key to regenerate. Possible values include: "authKey1", "authKey2". - :type key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName + :type key_name: str or ~dfaz_management_client.models.IntegrationRuntimeAuthKeyName """ _attribute_map = { @@ -1761,7 +1761,7 @@ class IntegrationRuntimeResource(SubResource): :ivar etag: Etag identifies change in the resource. :vartype etag: str :param properties: Required. Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + :type properties: ~dfaz_management_client.models.IntegrationRuntime """ _validation = { @@ -1802,12 +1802,12 @@ class IntegrationRuntimeSsisCatalogInfo(msrest.serialization.Model): :type catalog_admin_user_name: str :param catalog_admin_password: The password of the administrator user account of the catalog database. - :type catalog_admin_password: ~azure.mgmt.datafactory.models.SecureString + :type catalog_admin_password: ~dfaz_management_client.models.SecureString :param catalog_pricing_tier: The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: "Basic", "Standard", "Premium", "PremiumRS". :type catalog_pricing_tier: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogPricingTier + ~dfaz_management_client.models.IntegrationRuntimeSsisCatalogPricingTier """ _validation = { @@ -1847,26 +1847,26 @@ class IntegrationRuntimeSsisProperties(msrest.serialization.Model): collection. :type additional_properties: dict[str, object] :param catalog_info: Catalog information for managed dedicated integration runtime. - :type catalog_info: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisCatalogInfo + :type catalog_info: ~dfaz_management_client.models.IntegrationRuntimeSsisCatalogInfo :param license_type: License type for bringing your own license scenario. Possible values include: "BasePrice", "LicenseIncluded". - :type license_type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeLicenseType + :type license_type: str or ~dfaz_management_client.models.IntegrationRuntimeLicenseType :param custom_setup_script_properties: Custom setup script properties for a managed dedicated integration runtime. :type custom_setup_script_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeCustomSetupScriptProperties + ~dfaz_management_client.models.IntegrationRuntimeCustomSetupScriptProperties :param data_proxy_properties: Data proxy properties for a managed dedicated integration runtime. :type data_proxy_properties: - ~azure.mgmt.datafactory.models.IntegrationRuntimeDataProxyProperties + ~dfaz_management_client.models.IntegrationRuntimeDataProxyProperties :param edition: The edition for the SSIS Integration Runtime. Possible values include: "Standard", "Enterprise". - :type edition: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeEdition + :type edition: str or ~dfaz_management_client.models.IntegrationRuntimeEdition :param express_custom_setup_properties: Custom setup without script properties for a SSIS integration runtime. - :type express_custom_setup_properties: list[~azure.mgmt.datafactory.models.CustomSetupBase] + :type express_custom_setup_properties: list[~dfaz_management_client.models.CustomSetupBase] :param package_stores: Package stores for the SSIS Integration Runtime. - :type package_stores: list[~azure.mgmt.datafactory.models.PackageStore] + :type package_stores: list[~dfaz_management_client.models.PackageStore] """ _attribute_map = { @@ -1919,13 +1919,13 @@ class IntegrationRuntimeStatus(msrest.serialization.Model): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState """ _validation = { @@ -1964,7 +1964,7 @@ class IntegrationRuntimeStatusListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of integration runtime status. - :type value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] + :type value: list[~dfaz_management_client.models.IntegrationRuntimeStatusResponse] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -2000,7 +2000,7 @@ class IntegrationRuntimeStatusResponse(msrest.serialization.Model): :ivar name: The integration runtime name. :vartype name: str :param properties: Required. Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatus + :type properties: ~dfaz_management_client.models.IntegrationRuntimeStatus """ _validation = { @@ -2151,7 +2151,7 @@ class LinkedIntegrationRuntimeKeyAuthorization(LinkedIntegrationRuntimeType): sharing.Constant filled by server. :type authorization_type: str :param key: Required. The key used for authorization. - :type key: ~azure.mgmt.datafactory.models.SecureString + :type key: ~dfaz_management_client.models.SecureString """ _validation = { @@ -2287,17 +2287,17 @@ class ManagedIntegrationRuntime(IntegrationRuntime): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str :ivar state: Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :param compute_properties: The compute resource for managed integration runtime. - :type compute_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeComputeProperties + :type compute_properties: ~dfaz_management_client.models.IntegrationRuntimeComputeProperties :param ssis_properties: SSIS properties for managed integration runtime. - :type ssis_properties: ~azure.mgmt.datafactory.models.IntegrationRuntimeSsisProperties + :type ssis_properties: ~dfaz_management_client.models.IntegrationRuntimeSsisProperties """ _validation = { @@ -2389,9 +2389,9 @@ class ManagedIntegrationRuntimeNode(msrest.serialization.Model): :vartype node_id: str :ivar status: The managed integration runtime node status. Possible values include: "Starting", "Available", "Recycling", "Unavailable". - :vartype status: str or ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNodeStatus + :vartype status: str or ~dfaz_management_client.models.ManagedIntegrationRuntimeNodeStatus :param errors: The errors that occurred on this integration runtime node. - :type errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + :type errors: list[~dfaz_management_client.models.ManagedIntegrationRuntimeError] """ _validation = { @@ -2489,22 +2489,22 @@ class ManagedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. :vartype create_time: ~datetime.datetime :ivar nodes: The list of nodes for managed integration runtime. - :vartype nodes: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeNode] + :vartype nodes: list[~dfaz_management_client.models.ManagedIntegrationRuntimeNode] :ivar other_errors: The errors that occurred on this integration runtime. - :vartype other_errors: list[~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeError] + :vartype other_errors: list[~dfaz_management_client.models.ManagedIntegrationRuntimeError] :ivar last_operation: The last operation result that occurred on this integration runtime. :vartype last_operation: - ~azure.mgmt.datafactory.models.ManagedIntegrationRuntimeOperationResult + ~dfaz_management_client.models.ManagedIntegrationRuntimeOperationResult """ _validation = { @@ -2550,7 +2550,7 @@ class PackageStore(msrest.serialization.Model): :param name: Required. The name of the package store. :type name: str :param package_store_linked_service: Required. The package store linked service reference. - :type package_store_linked_service: ~azure.mgmt.datafactory.models.EntityReference + :type package_store_linked_service: ~dfaz_management_client.models.EntityReference """ _validation = { @@ -2626,11 +2626,11 @@ class RecurrenceSchedule(msrest.serialization.Model): :param hours: The hours. :type hours: list[int] :param week_days: The days of the week. - :type week_days: list[str or ~azure.mgmt.datafactory.models.DaysOfWeek] + :type week_days: list[str or ~dfaz_management_client.models.DaysOfWeek] :param month_days: The month days. :type month_days: list[int] :param monthly_occurrences: The monthly occurrences. - :type monthly_occurrences: list[~azure.mgmt.datafactory.models.RecurrenceScheduleOccurrence] + :type monthly_occurrences: list[~dfaz_management_client.models.RecurrenceScheduleOccurrence] """ _attribute_map = { @@ -2670,7 +2670,7 @@ class RecurrenceScheduleOccurrence(msrest.serialization.Model): :type additional_properties: dict[str, object] :param day: The day of the week. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". - :type day: str or ~azure.mgmt.datafactory.models.DayOfWeek + :type day: str or ~dfaz_management_client.models.DayOfWeek :param occurrence: The occurrence. :type occurrence: int """ @@ -2711,7 +2711,7 @@ class RerunTumblingWindowTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param parent_trigger: Required. The parent trigger reference. @@ -2815,13 +2815,13 @@ class ScheduleTrigger(MultiplePipelineTrigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipelines: Pipelines that need to be started. - :type pipelines: list[~azure.mgmt.datafactory.models.TriggerPipelineReference] + :type pipelines: list[~dfaz_management_client.models.TriggerPipelineReference] :param recurrence: Required. Recurrence schedule configuration. - :type recurrence: ~azure.mgmt.datafactory.models.ScheduleTriggerRecurrence + :type recurrence: ~dfaz_management_client.models.ScheduleTriggerRecurrence """ _validation = { @@ -2863,7 +2863,7 @@ class ScheduleTriggerRecurrence(msrest.serialization.Model): :type additional_properties: dict[str, object] :param frequency: The frequency. Possible values include: "NotSpecified", "Minute", "Hour", "Day", "Week", "Month", "Year". - :type frequency: str or ~azure.mgmt.datafactory.models.RecurrenceFrequency + :type frequency: str or ~dfaz_management_client.models.RecurrenceFrequency :param interval: The interval. :type interval: int :param start_time: The start time. @@ -2873,7 +2873,7 @@ class ScheduleTriggerRecurrence(msrest.serialization.Model): :param time_zone: The time zone. :type time_zone: str :param schedule: The recurrence schedule. - :type schedule: ~azure.mgmt.datafactory.models.RecurrenceSchedule + :type schedule: ~dfaz_management_client.models.RecurrenceSchedule """ _attribute_map = { @@ -3022,11 +3022,11 @@ class SelfHostedIntegrationRuntime(IntegrationRuntime): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :param description: Integration runtime description. :type description: str :param linked_info: The base definition of a linked integration runtime. - :type linked_info: ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeType + :type linked_info: ~dfaz_management_client.models.LinkedIntegrationRuntimeType """ _validation = { @@ -3070,7 +3070,7 @@ class SelfHostedIntegrationRuntimeNode(msrest.serialization.Model): :ivar status: Status of the integration runtime node. Possible values include: "NeedRegistration", "Online", "Limited", "Offline", "Upgrading", "Initializing", "InitializeFailed". - :vartype status: str or ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNodeStatus + :vartype status: str or ~dfaz_management_client.models.SelfHostedIntegrationRuntimeNodeStatus :ivar capabilities: The integration runtime capabilities dictionary. :vartype capabilities: dict[str, str] :ivar version_status: Status of the integration runtime node version. @@ -3092,7 +3092,7 @@ class SelfHostedIntegrationRuntimeNode(msrest.serialization.Model): :ivar last_update_result: The result of the last integration runtime node update. Possible values include: "None", "Succeed", "Fail". :vartype last_update_result: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeUpdateResult + ~dfaz_management_client.models.IntegrationRuntimeUpdateResult :ivar last_start_update_time: The last time for the integration runtime node update start. :vartype last_start_update_time: ~datetime.datetime :ivar last_end_update_time: The last time for the integration runtime node update end. @@ -3189,13 +3189,13 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :type additional_properties: dict[str, object] :param type: Required. Type of integration runtime.Constant filled by server. Possible values include: "Managed", "SelfHosted". - :type type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeType + :type type: str or ~dfaz_management_client.models.IntegrationRuntimeType :ivar data_factory_name: The data factory name which the integration runtime belong to. :vartype data_factory_name: str :ivar state: The state of integration runtime. Possible values include: "Initial", "Stopped", "Started", "Starting", "Stopping", "NeedRegistration", "Online", "Limited", "Offline", "AccessDenied". - :vartype state: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeState + :vartype state: str or ~dfaz_management_client.models.IntegrationRuntimeState :ivar create_time: The time at which the integration runtime was created, in ISO8601 format. :vartype create_time: ~datetime.datetime :ivar task_queue_id: The task queue id of the integration runtime. @@ -3204,11 +3204,11 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: "NotSet", "SslEncrypted", "NotEncrypted". :vartype internal_channel_encryption: str or - ~azure.mgmt.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode + ~dfaz_management_client.models.IntegrationRuntimeInternalChannelEncryptionMode :ivar version: Version of the integration runtime. :vartype version: str :param nodes: The list of nodes for this integration runtime. - :type nodes: list[~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode] + :type nodes: list[~dfaz_management_client.models.SelfHostedIntegrationRuntimeNode] :ivar scheduled_update_date: The date at which the integration runtime will be scheduled to update, in ISO8601 format. :vartype scheduled_update_date: ~datetime.datetime @@ -3223,12 +3223,12 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): :vartype service_urls: list[str] :ivar auto_update: Whether Self-hosted integration runtime auto update has been turned on. Possible values include: "On", "Off". - :vartype auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :vartype auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :ivar version_status: Status of the integration runtime version. :vartype version_status: str :param links: The list of linked integration runtimes that are created to share with this integration runtime. - :type links: list[~azure.mgmt.datafactory.models.LinkedIntegrationRuntime] + :type links: list[~dfaz_management_client.models.LinkedIntegrationRuntime] :ivar pushed_version: The version that the integration runtime is going to update to. :vartype pushed_version: str :ivar latest_version: The latest version on download center. @@ -3319,7 +3319,7 @@ class SsisObjectMetadata(msrest.serialization.Model): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3365,7 +3365,7 @@ class SsisEnvironment(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3375,7 +3375,7 @@ class SsisEnvironment(SsisObjectMetadata): :param folder_id: Folder id which contains environment. :type folder_id: long :param variables: Variable in environment. - :type variables: list[~azure.mgmt.datafactory.models.SsisVariable] + :type variables: list[~dfaz_management_client.models.SsisVariable] """ _validation = { @@ -3450,7 +3450,7 @@ class SsisFolder(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3486,7 +3486,7 @@ class SsisObjectMetadataListResponse(msrest.serialization.Model): """A list of SSIS object metadata. :param value: List of SSIS object metadata. - :type value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata] + :type value: list[~dfaz_management_client.models.SsisObjectMetadata] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -3515,7 +3515,7 @@ class SsisPackage(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3529,7 +3529,7 @@ class SsisPackage(SsisObjectMetadata): :param project_id: Project id which contains package. :type project_id: long :param parameters: Parameters in package. - :type parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :type parameters: list[~dfaz_management_client.models.SsisParameter] """ _validation = { @@ -3650,7 +3650,7 @@ class SsisProject(SsisObjectMetadata): :param type: Required. Type of metadata.Constant filled by server. Possible values include: "Folder", "Project", "Package", "Environment". - :type type: str or ~azure.mgmt.datafactory.models.SsisObjectMetadataType + :type type: str or ~dfaz_management_client.models.SsisObjectMetadataType :param id: Metadata id. :type id: long :param name: Metadata name. @@ -3662,9 +3662,9 @@ class SsisProject(SsisObjectMetadata): :param version: Project version. :type version: long :param environment_refs: Environment reference in project. - :type environment_refs: list[~azure.mgmt.datafactory.models.SsisEnvironmentReference] + :type environment_refs: list[~dfaz_management_client.models.SsisEnvironmentReference] :param parameters: Parameters in project. - :type parameters: list[~azure.mgmt.datafactory.models.SsisParameter] + :type parameters: list[~dfaz_management_client.models.SsisParameter] """ _validation = { @@ -3764,7 +3764,7 @@ class TriggerDependencyReference(DependencyReference): :param type: Required. The type of dependency reference.Constant filled by server. :type type: str :param reference_trigger: Required. Referenced trigger. - :type reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :type reference_trigger: ~dfaz_management_client.models.TriggerReference """ _validation = { @@ -3826,7 +3826,7 @@ class TriggerListResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of triggers. - :type value: list[~azure.mgmt.datafactory.models.TriggerResource] + :type value: list[~dfaz_management_client.models.TriggerResource] :param next_link: The link to the next page of results, if any remaining results exist. :type next_link: str """ @@ -3856,7 +3856,7 @@ class TriggerPipelineReference(msrest.serialization.Model): """Pipeline that needs to be triggered with the given parameters. :param pipeline_reference: Pipeline reference. - :type pipeline_reference: ~azure.mgmt.datafactory.models.PipelineReference + :type pipeline_reference: ~dfaz_management_client.models.PipelineReference :param parameters: Pipeline parameters. :type parameters: dict[str, object] """ @@ -3884,7 +3884,7 @@ class TriggerQueryResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param value: Required. List of triggers. - :type value: list[~azure.mgmt.datafactory.models.TriggerResource] + :type value: list[~dfaz_management_client.models.TriggerResource] :param continuation_token: The continuation token for getting the next page of results, if any remaining results exist, null otherwise. :type continuation_token: str @@ -3962,7 +3962,7 @@ class TriggerResource(SubResource): :ivar etag: Etag identifies change in the resource. :vartype etag: str :param properties: Required. Properties of the trigger. - :type properties: ~azure.mgmt.datafactory.models.Trigger + :type properties: ~dfaz_management_client.models.Trigger """ _validation = { @@ -4000,7 +4000,7 @@ class TriggerSubscriptionOperationStatus(msrest.serialization.Model): :vartype trigger_name: str :ivar status: Event Subscription Status. Possible values include: "Enabled", "Provisioning", "Deprovisioning", "Disabled", "Unknown". - :vartype status: str or ~azure.mgmt.datafactory.models.EventSubscriptionStatus + :vartype status: str or ~dfaz_management_client.models.EventSubscriptionStatus """ _validation = { @@ -4038,15 +4038,15 @@ class TumblingWindowTrigger(Trigger): :type description: str :ivar runtime_state: Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: "Started", "Stopped", "Disabled". - :vartype runtime_state: str or ~azure.mgmt.datafactory.models.TriggerRuntimeState + :vartype runtime_state: str or ~dfaz_management_client.models.TriggerRuntimeState :param annotations: List of tags that can be used for describing the trigger. :type annotations: list[object] :param pipeline: Required. Pipeline for which runs are created when an event is fired for trigger window that is ready. - :type pipeline: ~azure.mgmt.datafactory.models.TriggerPipelineReference + :type pipeline: ~dfaz_management_client.models.TriggerPipelineReference :param frequency: Required. The frequency of the time windows. Possible values include: "Minute", "Hour". - :type frequency: str or ~azure.mgmt.datafactory.models.TumblingWindowFrequency + :type frequency: str or ~dfaz_management_client.models.TumblingWindowFrequency :param interval: Required. The interval of the time windows. The minimum interval allowed is 15 Minutes. :type interval: int @@ -4064,10 +4064,10 @@ class TumblingWindowTrigger(Trigger): for which a new run is triggered. :type max_concurrency: int :param retry_policy: Retry policy that will be applied for failed pipeline runs. - :type retry_policy: ~azure.mgmt.datafactory.models.RetryPolicy + :type retry_policy: ~dfaz_management_client.models.RetryPolicy :param depends_on: Triggers that this trigger depends on. Only tumbling window triggers are supported. - :type depends_on: list[~azure.mgmt.datafactory.models.DependencyReference] + :type depends_on: list[~dfaz_management_client.models.DependencyReference] """ _validation = { @@ -4135,7 +4135,7 @@ class TumblingWindowTriggerDependencyReference(TriggerDependencyReference): :param type: Required. The type of dependency reference.Constant filled by server. :type type: str :param reference_trigger: Required. Referenced trigger. - :type reference_trigger: ~azure.mgmt.datafactory.models.TriggerReference + :type reference_trigger: ~dfaz_management_client.models.TriggerReference :param offset: Timespan applied to the start time of a tumbling window when evaluating dependency. :type offset: str @@ -4178,7 +4178,7 @@ class UpdateIntegrationRuntimeRequest(msrest.serialization.Model): :param auto_update: Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: "On", "Off". - :type auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :type auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :param update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. :type update_delay_offset: str diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_factory_operations.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_factory_operations.py index a0bbae5ed..636d7a054 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_factory_operations.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_factory_operations.py @@ -30,7 +30,7 @@ class FactoryOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -53,8 +53,8 @@ def list( """Lists factories under the specified subscription. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of FactoryListResponse or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.FactoryListResponse] + :return: An iterator like instance of either FactoryListResponse or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~dfaz_management_client.models.FactoryListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.FactoryListResponse"] @@ -124,10 +124,10 @@ def configure_factory_repo( :param factory_resource_id: The factory resource id. :type factory_resource_id: str :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -171,7 +171,7 @@ def configure_factory_repo( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized configure_factory_repo.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo'} # type: ignore @@ -187,8 +187,8 @@ def list_by_resource_group( :param resource_group_name: The resource group name. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of FactoryListResponse or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.FactoryListResponse] + :return: An iterator like instance of either FactoryListResponse or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~dfaz_management_client.models.FactoryListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.FactoryListResponse"] @@ -272,16 +272,16 @@ def create_or_update( :param tags: The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :param repo_configuration: Git repo information of the factory. - :type repo_configuration: ~azure.mgmt.datafactory.models.FactoryRepoConfiguration + :type repo_configuration: ~dfaz_management_client.models.FactoryRepoConfiguration :param fake_identity: This is only for az test. - :type fake_identity: ~azure.mgmt.datafactory.models.FakeFactoryIdentity + :type fake_identity: ~dfaz_management_client.models.FakeFactoryIdentity :param zones: This is only for az test. :type zones: list[str] :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -328,7 +328,7 @@ def create_or_update( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -351,10 +351,10 @@ def update( :param tags: The resource tags. :type tags: dict[str, str] :param identity: Managed service identity of the factory. - :type identity: ~azure.mgmt.datafactory.models.FactoryIdentity + :type identity: ~dfaz_management_client.models.FactoryIdentity :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -399,7 +399,7 @@ def update( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -422,8 +422,8 @@ def get( matches the existing entity tag, or if * was provided, then no content will be returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Factory or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.Factory or None + :return: Factory, or the result of cls(response) + :rtype: ~dfaz_management_client.models.Factory or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Factory"] @@ -464,7 +464,7 @@ def get( deserialized = self._deserialize('Factory', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -483,7 +483,7 @@ def delete( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -518,7 +518,7 @@ def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}'} # type: ignore @@ -545,8 +545,8 @@ def get_git_hub_access_token( :param git_hub_client_id: GitHub application client ID. :type git_hub_client_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: GitHubAccessTokenResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse + :return: GitHubAccessTokenResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.GitHubAccessTokenResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.GitHubAccessTokenResponse"] @@ -591,7 +591,7 @@ def get_git_hub_access_token( deserialized = self._deserialize('GitHubAccessTokenResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_git_hub_access_token.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken'} # type: ignore @@ -629,8 +629,8 @@ def get_data_plane_access( hours and by default the token will expire in eight hours. :type expire_time: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AccessPolicyResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse + :return: AccessPolicyResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.AccessPolicyResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AccessPolicyResponse"] @@ -675,7 +675,7 @@ def get_data_plane_access( deserialized = self._deserialize('AccessPolicyResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_data_plane_access.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess'} # type: ignore diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_integration_runtime_operations.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_integration_runtime_operations.py index dd19a9932..e637002c3 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_integration_runtime_operations.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_integration_runtime_operations.py @@ -32,7 +32,7 @@ class IntegrationRuntimeOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +61,8 @@ def list_by_factory( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of IntegrationRuntimeListResponse or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeListResponse] + :return: An iterator like instance of either IntegrationRuntimeListResponse or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~dfaz_management_client.models.IntegrationRuntimeListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeListResponse"] @@ -138,13 +138,13 @@ def create_or_update( :param integration_runtime_name: The integration runtime name. :type integration_runtime_name: str :param properties: Integration runtime properties. - :type properties: ~azure.mgmt.datafactory.models.IntegrationRuntime + :type properties: ~dfaz_management_client.models.IntegrationRuntime :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -192,7 +192,7 @@ def create_or_update( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -219,8 +219,8 @@ def get( returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -262,7 +262,7 @@ def get( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -287,13 +287,13 @@ def update( :type integration_runtime_name: str :param auto_update: Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. - :type auto_update: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAutoUpdate + :type auto_update: str or ~dfaz_management_client.models.IntegrationRuntimeAutoUpdate :param update_delay_offset: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. :type update_delay_offset: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource + :return: IntegrationRuntimeResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeResource"] @@ -339,7 +339,7 @@ def update( deserialized = self._deserialize('IntegrationRuntimeResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -361,7 +361,7 @@ def delete( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -397,7 +397,7 @@ def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}'} # type: ignore @@ -418,8 +418,8 @@ def get_status( :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: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :return: IntegrationRuntimeStatusResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeStatusResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeStatusResponse"] @@ -457,7 +457,7 @@ def get_status( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus'} # type: ignore @@ -479,8 +479,8 @@ def get_connection_info( :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: IntegrationRuntimeConnectionInfo or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo + :return: IntegrationRuntimeConnectionInfo, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeConnectionInfo :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeConnectionInfo"] @@ -518,7 +518,7 @@ def get_connection_info( deserialized = self._deserialize('IntegrationRuntimeConnectionInfo', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_connection_info.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo'} # type: ignore @@ -541,10 +541,10 @@ def regenerate_auth_key( :param integration_runtime_name: The integration runtime name. :type integration_runtime_name: str :param key_name: The name of the authentication key to regenerate. - :type key_name: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeyName + :type key_name: str or ~dfaz_management_client.models.IntegrationRuntimeAuthKeyName :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :return: IntegrationRuntimeAuthKeys, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeAuthKeys :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeAuthKeys"] @@ -590,7 +590,7 @@ def regenerate_auth_key( deserialized = self._deserialize('IntegrationRuntimeAuthKeys', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized regenerate_auth_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey'} # type: ignore @@ -612,8 +612,8 @@ def list_auth_key( :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: IntegrationRuntimeAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys + :return: IntegrationRuntimeAuthKeys, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeAuthKeys :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeAuthKeys"] @@ -651,7 +651,7 @@ def list_auth_key( deserialized = self._deserialize('IntegrationRuntimeAuthKeys', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized list_auth_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys'} # type: ignore @@ -701,7 +701,7 @@ def _start_initial( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start'} # type: ignore @@ -727,8 +727,8 @@ def begin_start( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns IntegrationRuntimeStatusResponse - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] + :return: An instance of LROPoller that returns either IntegrationRuntimeStatusResponse or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~dfaz_management_client.models.IntegrationRuntimeStatusResponse] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -745,6 +745,9 @@ def begin_start( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) @@ -798,7 +801,7 @@ def _stop_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop'} # type: ignore @@ -823,7 +826,7 @@ def begin_stop( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -841,6 +844,9 @@ def begin_stop( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -868,7 +874,7 @@ def sync_credentials( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -904,7 +910,7 @@ def sync_credentials( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) sync_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'} # type: ignore @@ -925,8 +931,8 @@ def get_monitoring_data( :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: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData + :return: IntegrationRuntimeMonitoringData, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeMonitoringData :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeMonitoringData"] @@ -964,7 +970,7 @@ def get_monitoring_data( deserialized = self._deserialize('IntegrationRuntimeMonitoringData', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_monitoring_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData'} # type: ignore @@ -986,7 +992,7 @@ def upgrade( :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: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -1022,7 +1028,7 @@ def upgrade( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade'} # type: ignore @@ -1046,7 +1052,7 @@ def remove_link( :param linked_factory_name: The data factory name for linked integration runtime. :type linked_factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -1090,7 +1096,7 @@ def remove_link( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) remove_link.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks'} # type: ignore @@ -1126,8 +1132,8 @@ def create_linked_integration_runtime( runtime belongs to. :type data_factory_location: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntegrationRuntimeStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse + :return: IntegrationRuntimeStatusResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.IntegrationRuntimeStatusResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.IntegrationRuntimeStatusResponse"] @@ -1173,7 +1179,7 @@ def create_linked_integration_runtime( deserialized = self._deserialize('IntegrationRuntimeStatusResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_linked_integration_runtime.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime'} # type: ignore diff --git a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_trigger_operations.py b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_trigger_operations.py index 5c953b799..cca235363 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_trigger_operations.py +++ b/src/test/scenarios/datafactory/output/src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_trigger_operations.py @@ -32,7 +32,7 @@ class TriggerOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.datafactory.models + :type models: ~dfaz_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +61,8 @@ def list_by_factory( :param factory_name: The factory name. :type factory_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of TriggerListResponse or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.TriggerListResponse] + :return: An iterator like instance of either TriggerListResponse or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~dfaz_management_client.models.TriggerListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerListResponse"] @@ -141,8 +141,8 @@ def query_by_factory( triggers. :type parent_trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerQueryResponse or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse + :return: TriggerQueryResponse, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerQueryResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerQueryResponse"] @@ -187,7 +187,7 @@ def query_by_factory( deserialized = self._deserialize('TriggerQueryResponse', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized query_by_factory.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers'} # type: ignore @@ -211,13 +211,13 @@ def create_or_update( :param trigger_name: The trigger name. :type trigger_name: str :param properties: Properties of the trigger. - :type properties: ~azure.mgmt.datafactory.models.Trigger + :type properties: ~dfaz_management_client.models.Trigger :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource + :return: TriggerResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerResource :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerResource"] @@ -265,7 +265,7 @@ def create_or_update( deserialized = self._deserialize('TriggerResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -291,8 +291,8 @@ def get( matches the existing entity tag, or if * was provided, then no content will be returned. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None + :return: TriggerResource, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerResource or None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerResource"] @@ -334,7 +334,7 @@ def get( deserialized = self._deserialize('TriggerResource', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -356,7 +356,7 @@ def delete( :param trigger_name: The trigger name. :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -392,7 +392,7 @@ def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}'} # type: ignore @@ -441,7 +441,7 @@ def _subscribe_to_event_initial( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _subscribe_to_event_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents'} # type: ignore @@ -467,8 +467,8 @@ def begin_subscribe_to_event( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns TriggerSubscriptionOperationStatus - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~dfaz_management_client.models.TriggerSubscriptionOperationStatus] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -485,6 +485,9 @@ def begin_subscribe_to_event( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) @@ -515,8 +518,8 @@ def get_event_subscription_status( :param trigger_name: The trigger name. :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: TriggerSubscriptionOperationStatus or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus + :return: TriggerSubscriptionOperationStatus, or the result of cls(response) + :rtype: ~dfaz_management_client.models.TriggerSubscriptionOperationStatus :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerSubscriptionOperationStatus"] @@ -554,7 +557,7 @@ def get_event_subscription_status( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_event_subscription_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus'} # type: ignore @@ -604,7 +607,7 @@ def _unsubscribe_from_event_initial( deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _unsubscribe_from_event_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents'} # type: ignore @@ -630,8 +633,8 @@ def begin_unsubscribe_from_event( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns TriggerSubscriptionOperationStatus - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus] + :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~dfaz_management_client.models.TriggerSubscriptionOperationStatus] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -648,6 +651,9 @@ def begin_unsubscribe_from_event( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('TriggerSubscriptionOperationStatus', pipeline_response) @@ -701,7 +707,7 @@ def _start_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start'} # type: ignore @@ -726,7 +732,7 @@ def begin_start( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -744,6 +750,9 @@ def begin_start( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -794,7 +803,7 @@ def _stop_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop'} # type: ignore @@ -819,7 +828,7 @@ def begin_stop( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -837,6 +846,9 @@ def begin_stop( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_configuration.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_configuration.py index 830653582..4681009a1 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_configuration.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_configuration.py @@ -49,7 +49,7 @@ def __init__( self.api_version = "2019-06-01-preview" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-managednetwork/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'managednetworkmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_managed_network_management_client.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_managed_network_management_client.py index e358655b1..2c3a6d5e7 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_managed_network_management_client.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/_managed_network_management_client.py @@ -15,6 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any, Optional + from azure.core.credentials import TokenCredential + from ._configuration import ManagedNetworkManagementClientConfiguration from .operations import ManagedNetworkOperations from .operations import ScopeAssignmentOperations diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_configuration_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_configuration_async.py index e4378683f..d4495b90a 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_configuration_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_configuration_async.py @@ -13,7 +13,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential + from azure.core.credentials_async import AsyncTokenCredential VERSION = "unknown" @@ -46,7 +46,7 @@ def __init__( self.api_version = "2019-06-01-preview" self.credential_scopes = ['https://management.azure.com/.default'] self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'mgmt-managednetwork/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'managednetworkmanagementclient/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_managed_network_management_client_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_managed_network_management_client_async.py index fbcfb1f13..e2269a3c2 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_managed_network_management_client_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/_managed_network_management_client_async.py @@ -6,11 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Optional +from typing import Any, Optional, TYPE_CHECKING from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + from ._configuration_async import ManagedNetworkManagementClientConfiguration from .operations_async import ManagedNetworkOperations from .operations_async import ScopeAssignmentOperations diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_group_operations_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_group_operations_async.py index 4d3825522..ee702bfbf 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_group_operations_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_group_operations_async.py @@ -59,7 +59,7 @@ async def get( :param managed_network_group_name: The name of the Managed Network Group. :type managed_network_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetworkGroup or the result of cls(response) + :return: ManagedNetworkGroup, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkGroup :raises: ~azure.core.exceptions.HttpResponseError """ @@ -99,7 +99,7 @@ async def get( deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -165,7 +165,7 @@ async def _create_or_update_initial( deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -205,7 +205,7 @@ async def create_or_update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: ManagedNetworkGroup + :return: ManagedNetworkGroup, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -228,6 +228,9 @@ async def create_or_update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) @@ -281,7 +284,7 @@ async def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -305,7 +308,7 @@ async def delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -323,6 +326,9 @@ async def delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -354,7 +360,7 @@ def list_by_managed_network( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkGroupListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkGroupListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.ManagedNetworkGroupListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_operations_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_operations_async.py index 9880c083c..c41095274 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_operations_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_operations_async.py @@ -56,7 +56,7 @@ async def get_modify( :param managed_network_name: The name of the Managed Network. :type managed_network_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetwork or the result of cls(response) + :return: ManagedNetwork, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetwork :raises: ~azure.core.exceptions.HttpResponseError """ @@ -95,7 +95,7 @@ async def get_modify( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_modify.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -122,7 +122,7 @@ async def create_or_update( :param properties: The MNC properties. :type properties: ~managed_network_management_client.models.ManagedNetworkProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetwork or the result of cls(response) + :return: ManagedNetwork, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetwork :raises: ~azure.core.exceptions.HttpResponseError """ @@ -174,7 +174,7 @@ async def create_or_update( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -217,7 +217,7 @@ async def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -238,7 +238,7 @@ async def delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -255,6 +255,9 @@ async def delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -320,7 +323,7 @@ async def _update_initial( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -345,7 +348,7 @@ async def update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: ManagedNetwork + :return: ManagedNetwork, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetwork :raises ~azure.core.exceptions.HttpResponseError: """ @@ -363,6 +366,9 @@ async def update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetwork', pipeline_response) @@ -394,7 +400,7 @@ def list_by_resource_group( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.ManagedNetworkListResult] :raises: ~azure.core.exceptions.HttpResponseError """ @@ -471,7 +477,7 @@ def list_by_subscription( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.ManagedNetworkListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_peering_policy_operations_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_peering_policy_operations_async.py index 40a3e6d68..552a57999 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_peering_policy_operations_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_managed_network_peering_policy_operations_async.py @@ -59,7 +59,7 @@ async def get( :param managed_network_peering_policy_name: The name of the Managed Network Peering Policy. :type managed_network_peering_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetworkPeeringPolicy or the result of cls(response) + :return: ManagedNetworkPeeringPolicy, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkPeeringPolicy :raises: ~azure.core.exceptions.HttpResponseError """ @@ -99,7 +99,7 @@ async def get( deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -162,7 +162,7 @@ async def _create_or_update_initial( deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -193,7 +193,7 @@ async def create_or_update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: ManagedNetworkPeeringPolicy + :return: ManagedNetworkPeeringPolicy, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkPeeringPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -213,6 +213,9 @@ async def create_or_update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) @@ -266,7 +269,7 @@ async def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -290,7 +293,7 @@ async def delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None + :return: None, or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @@ -308,6 +311,9 @@ async def delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -339,7 +345,7 @@ def list_by_managed_network( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkPeeringPolicyListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkPeeringPolicyListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.ManagedNetworkPeeringPolicyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_operation_operations_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_operation_operations_async.py index 88034e6fe..bb6ece3ac 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_operation_operations_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_operation_operations_async.py @@ -48,7 +48,7 @@ def list( """Lists all of the available MNC operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of OperationListResult or the result of cls(response) + :return: An iterator like instance of either OperationListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_scope_assignment_operations_async.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_scope_assignment_operations_async.py index b0c96891e..8a4113dec 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_scope_assignment_operations_async.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/aio/operations_async/_scope_assignment_operations_async.py @@ -54,7 +54,7 @@ async def get( :param scope_assignment_name: The name of the scope assignment to get. :type scope_assignment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ScopeAssignment or the result of cls(response) + :return: ScopeAssignment, or the result of cls(response) :rtype: ~managed_network_management_client.models.ScopeAssignment :raises: ~azure.core.exceptions.HttpResponseError """ @@ -92,7 +92,7 @@ async def get( deserialized = self._deserialize('ScopeAssignment', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -120,7 +120,7 @@ async def create_or_update( :param assigned_managed_network: The managed network ID with scope will be assigned to. :type assigned_managed_network: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ScopeAssignment or the result of cls(response) + :return: ScopeAssignment, or the result of cls(response) :rtype: ~managed_network_management_client.models.ScopeAssignment :raises: ~azure.core.exceptions.HttpResponseError """ @@ -171,7 +171,7 @@ async def create_or_update( deserialized = self._deserialize('ScopeAssignment', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -189,7 +189,7 @@ async def delete( :param scope_assignment_name: The name of the scope assignment to delete. :type scope_assignment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -223,7 +223,7 @@ async def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -237,7 +237,7 @@ def list( :param scope: The base resource of the scope assignment. :type scope: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ScopeAssignmentListResult or the result of cls(response) + :return: An iterator like instance of either ScopeAssignmentListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~managed_network_management_client.models.ScopeAssignmentListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models.py index be0593dea..2f793179f 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models.py @@ -144,12 +144,12 @@ class HubAndSpokePeeringPolicyProperties(ManagedNetworkPeeringPolicyProperties): policy.Constant filled by server. Possible values include: "HubAndSpokeTopology", "MeshTopology". :type type: str or ~managed_network_management_client.models.Type - :param mesh: Gets or sets the mesh group IDs. - :type mesh: list[~managed_network_management_client.models.ResourceId] :param hub: Gets or sets the hub virtual network ID. :type hub: ~managed_network_management_client.models.ResourceId :param spokes: Gets or sets the spokes group IDs. :type spokes: list[~managed_network_management_client.models.ResourceId] + :param mesh: Gets or sets the mesh group IDs. + :type mesh: list[~managed_network_management_client.models.ResourceId] """ _validation = { @@ -162,9 +162,9 @@ class HubAndSpokePeeringPolicyProperties(ManagedNetworkPeeringPolicyProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'mesh': {'key': 'mesh', 'type': '[ResourceId]'}, 'hub': {'key': 'hub', 'type': 'ResourceId'}, 'spokes': {'key': 'spokes', 'type': '[ResourceId]'}, + 'mesh': {'key': 'mesh', 'type': '[ResourceId]'}, } def __init__( @@ -173,8 +173,6 @@ def __init__( ): super(HubAndSpokePeeringPolicyProperties, self).__init__(**kwargs) self.type = 'HubAndSpokeTopology' - self.hub = kwargs.get('hub', None) - self.spokes = kwargs.get('spokes', None) class Resource(msrest.serialization.Model): @@ -303,44 +301,7 @@ def __init__( self.properties = kwargs.get('properties', None) -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. - :vartype type: str - :param location: The geo-location where the resource lives. - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProxyResource, self).__init__(**kwargs) - - -class ManagedNetworkGroup(ProxyResource): +class ManagedNetworkGroup(Resource): """The Managed Network Group resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -502,7 +463,7 @@ def __init__( self.next_link = kwargs.get('next_link', None) -class ManagedNetworkPeeringPolicy(ProxyResource): +class ManagedNetworkPeeringPolicy(Resource): """The Managed Network Peering Policy resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -687,7 +648,6 @@ def __init__( ): super(MeshPeeringPolicyProperties, self).__init__(**kwargs) self.type = 'MeshTopology' - self.mesh = kwargs.get('mesh', None) class Operation(msrest.serialization.Model): @@ -764,6 +724,43 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or + Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + class ResourceId(msrest.serialization.Model): """Generic pointer to a resource. @@ -783,7 +780,7 @@ def __init__( self.id = kwargs.get('id', None) -class ScopeAssignment(ProxyResource): +class ScopeAssignment(Resource): """The Managed Network resource. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models_py3.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models_py3.py index dd8f4f5db..a663af143 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models_py3.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/models/_models_py3.py @@ -150,12 +150,12 @@ class HubAndSpokePeeringPolicyProperties(ManagedNetworkPeeringPolicyProperties): policy.Constant filled by server. Possible values include: "HubAndSpokeTopology", "MeshTopology". :type type: str or ~managed_network_management_client.models.Type - :param mesh: Gets or sets the mesh group IDs. - :type mesh: list[~managed_network_management_client.models.ResourceId] :param hub: Gets or sets the hub virtual network ID. :type hub: ~managed_network_management_client.models.ResourceId :param spokes: Gets or sets the spokes group IDs. :type spokes: list[~managed_network_management_client.models.ResourceId] + :param mesh: Gets or sets the mesh group IDs. + :type mesh: list[~managed_network_management_client.models.ResourceId] """ _validation = { @@ -168,23 +168,21 @@ class HubAndSpokePeeringPolicyProperties(ManagedNetworkPeeringPolicyProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'mesh': {'key': 'mesh', 'type': '[ResourceId]'}, 'hub': {'key': 'hub', 'type': 'ResourceId'}, 'spokes': {'key': 'spokes', 'type': '[ResourceId]'}, + 'mesh': {'key': 'mesh', 'type': '[ResourceId]'}, } def __init__( self, *, - mesh: Optional[List["ResourceId"]] = None, hub: Optional["ResourceId"] = None, spokes: Optional[List["ResourceId"]] = None, + mesh: Optional[List["ResourceId"]] = None, **kwargs ): - super(HubAndSpokePeeringPolicyProperties, self).__init__(mesh=mesh, **kwargs) + super(HubAndSpokePeeringPolicyProperties, self).__init__(hub=hub, spokes=spokes, mesh=mesh, **kwargs) self.type: str = 'HubAndSpokeTopology' - self.hub = hub - self.spokes = spokes class Resource(msrest.serialization.Model): @@ -322,46 +320,7 @@ def __init__( self.properties = properties -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. - :vartype type: str - :param location: The geo-location where the resource lives. - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - **kwargs - ): - super(ProxyResource, self).__init__(location=location, **kwargs) - - -class ManagedNetworkGroup(ProxyResource): +class ManagedNetworkGroup(Resource): """The Managed Network Group resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -540,7 +499,7 @@ def __init__( self.next_link = next_link -class ManagedNetworkPeeringPolicy(ProxyResource): +class ManagedNetworkPeeringPolicy(Resource): """The Managed Network Peering Policy resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -740,9 +699,8 @@ def __init__( mesh: Optional[List["ResourceId"]] = None, **kwargs ): - super(MeshPeeringPolicyProperties, self).__init__(hub=hub, spokes=spokes, **kwargs) + super(MeshPeeringPolicyProperties, self).__init__(hub=hub, spokes=spokes, mesh=mesh, **kwargs) self.type: str = 'MeshTopology' - self.mesh = mesh class Operation(msrest.serialization.Model): @@ -829,6 +787,45 @@ def __init__( self.next_link = next_link +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or + Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + **kwargs + ): + super(ProxyResource, self).__init__(location=location, **kwargs) + + class ResourceId(msrest.serialization.Model): """Generic pointer to a resource. @@ -850,7 +847,7 @@ def __init__( self.id = id -class ScopeAssignment(ProxyResource): +class ScopeAssignment(Resource): """The Managed Network resource. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_group_operations.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_group_operations.py index 69b62c606..6fdfb9069 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_group_operations.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_group_operations.py @@ -64,7 +64,7 @@ def get( :param managed_network_group_name: The name of the Managed Network Group. :type managed_network_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetworkGroup or the result of cls(response) + :return: ManagedNetworkGroup, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkGroup :raises: ~azure.core.exceptions.HttpResponseError """ @@ -104,7 +104,7 @@ def get( deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -171,7 +171,7 @@ def _create_or_update_initial( deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -212,7 +212,7 @@ def begin_create_or_update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns ManagedNetworkGroup + :return: An instance of LROPoller that returns either ManagedNetworkGroup or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~managed_network_management_client.models.ManagedNetworkGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -235,6 +235,9 @@ def begin_create_or_update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetworkGroup', pipeline_response) @@ -289,7 +292,7 @@ def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkGroups/{managedNetworkGroupName}'} # type: ignore @@ -314,7 +317,7 @@ def begin_delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -332,6 +335,9 @@ def begin_delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -364,7 +370,7 @@ def list_by_managed_network( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkGroupListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkGroupListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.ManagedNetworkGroupListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_operations.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_operations.py index eaeda9700..b71f725bc 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_operations.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_operations.py @@ -61,7 +61,7 @@ def get_modify( :param managed_network_name: The name of the Managed Network. :type managed_network_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetwork or the result of cls(response) + :return: ManagedNetwork, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetwork :raises: ~azure.core.exceptions.HttpResponseError """ @@ -100,7 +100,7 @@ def get_modify( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get_modify.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -128,7 +128,7 @@ def create_or_update( :param properties: The MNC properties. :type properties: ~managed_network_management_client.models.ManagedNetworkProperties :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetwork or the result of cls(response) + :return: ManagedNetwork, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetwork :raises: ~azure.core.exceptions.HttpResponseError """ @@ -180,7 +180,7 @@ def create_or_update( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -224,7 +224,7 @@ def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -246,7 +246,7 @@ def begin_delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -263,6 +263,9 @@ def begin_delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -329,7 +332,7 @@ def _update_initial( deserialized = self._deserialize('ManagedNetwork', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}'} # type: ignore @@ -355,7 +358,7 @@ def begin_update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns ManagedNetwork + :return: An instance of LROPoller that returns either ManagedNetwork or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~managed_network_management_client.models.ManagedNetwork] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -373,6 +376,9 @@ def begin_update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetwork', pipeline_response) @@ -405,7 +411,7 @@ def list_by_resource_group( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.ManagedNetworkListResult] :raises: ~azure.core.exceptions.HttpResponseError """ @@ -483,7 +489,7 @@ def list_by_subscription( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.ManagedNetworkListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_peering_policy_operations.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_peering_policy_operations.py index e3f72f451..6c8aa47fb 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_peering_policy_operations.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_managed_network_peering_policy_operations.py @@ -64,7 +64,7 @@ def get( :param managed_network_peering_policy_name: The name of the Managed Network Peering Policy. :type managed_network_peering_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedNetworkPeeringPolicy or the result of cls(response) + :return: ManagedNetworkPeeringPolicy, or the result of cls(response) :rtype: ~managed_network_management_client.models.ManagedNetworkPeeringPolicy :raises: ~azure.core.exceptions.HttpResponseError """ @@ -104,7 +104,7 @@ def get( deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -168,7 +168,7 @@ def _create_or_update_initial( deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -200,7 +200,7 @@ def begin_create_or_update( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns ManagedNetworkPeeringPolicy + :return: An instance of LROPoller that returns either ManagedNetworkPeeringPolicy or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~managed_network_management_client.models.ManagedNetworkPeeringPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -220,6 +220,9 @@ def begin_create_or_update( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): deserialized = self._deserialize('ManagedNetworkPeeringPolicy', pipeline_response) @@ -274,7 +277,7 @@ def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}'} # type: ignore @@ -299,7 +302,7 @@ def begin_delete( polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns None + :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -317,6 +320,9 @@ def begin_delete( **kwargs ) + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) @@ -349,7 +355,7 @@ def list_by_managed_network( a skiptoken parameter that specifies a starting point to use for subsequent calls. :type skiptoken: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ManagedNetworkPeeringPolicyListResult or the result of cls(response) + :return: An iterator like instance of either ManagedNetworkPeeringPolicyListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.ManagedNetworkPeeringPolicyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_operation_operations.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_operation_operations.py index 0a06523da..dc86bf524 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_operation_operations.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_operation_operations.py @@ -53,7 +53,7 @@ def list( """Lists all of the available MNC operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of OperationListResult or the result of cls(response) + :return: An iterator like instance of either OperationListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_scope_assignment_operations.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_scope_assignment_operations.py index ca3756cec..ee8feae7c 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_scope_assignment_operations.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/vendored_sdks/managednetwork/operations/_scope_assignment_operations.py @@ -59,7 +59,7 @@ def get( :param scope_assignment_name: The name of the scope assignment to get. :type scope_assignment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ScopeAssignment or the result of cls(response) + :return: ScopeAssignment, or the result of cls(response) :rtype: ~managed_network_management_client.models.ScopeAssignment :raises: ~azure.core.exceptions.HttpResponseError """ @@ -97,7 +97,7 @@ def get( deserialized = self._deserialize('ScopeAssignment', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -126,7 +126,7 @@ def create_or_update( :param assigned_managed_network: The managed network ID with scope will be assigned to. :type assigned_managed_network: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ScopeAssignment or the result of cls(response) + :return: ScopeAssignment, or the result of cls(response) :rtype: ~managed_network_management_client.models.ScopeAssignment :raises: ~azure.core.exceptions.HttpResponseError """ @@ -177,7 +177,7 @@ def create_or_update( deserialized = self._deserialize('ScopeAssignment', pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -196,7 +196,7 @@ def delete( :param scope_assignment_name: The name of the scope assignment to delete. :type scope_assignment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: None or the result of cls(response) + :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ @@ -230,7 +230,7 @@ def delete( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) delete.metadata = {'url': '/{scope}/providers/Microsoft.ManagedNetwork/scopeAssignments/{scopeAssignmentName}'} # type: ignore @@ -245,7 +245,7 @@ def list( :param scope: The base resource of the scope assignment. :type scope: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of ScopeAssignmentListResult or the result of cls(response) + :return: An iterator like instance of either ScopeAssignmentListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~managed_network_management_client.models.ScopeAssignmentListResult] :raises: ~azure.core.exceptions.HttpResponseError """