diff --git a/sdk/chaos/azure-mgmt-chaos/CHANGELOG.md b/sdk/chaos/azure-mgmt-chaos/CHANGELOG.md index b410ddd059ae..28ff808de1ea 100644 --- a/sdk/chaos/azure-mgmt-chaos/CHANGELOG.md +++ b/sdk/chaos/azure-mgmt-chaos/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.0.0b2 (2021-10-25) + +**Features** + + - Modified client name + ## 1.0.0b1 (2021-10-21) * Initial Release diff --git a/sdk/chaos/azure-mgmt-chaos/_meta.json b/sdk/chaos/azure-mgmt-chaos/_meta.json index 8c9f7f72e202..fa16ba4a6c48 100644 --- a/sdk/chaos/azure-mgmt-chaos/_meta.json +++ b/sdk/chaos/azure-mgmt-chaos/_meta.json @@ -4,7 +4,7 @@ "@autorest/python@5.8.4", "@autorest/modelerfour@4.19.2" ], - "commit": "ed12f5402e66c633320954bc4ca3494f267a4be3", + "commit": "1e00e8d52c5da01410e898db01c4954c7bd29ba5", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest_command": "autorest specification/chaos/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/chaos/resource-manager/readme.md" diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py index db6ceea94363..fa94e40fc783 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/__init__.py @@ -6,11 +6,11 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._microsoft_azure_chaos import MicrosoftAzureChaos +from ._chaos_management_client import ChaosManagementClient from ._version import VERSION __version__ = VERSION -__all__ = ['MicrosoftAzureChaos'] +__all__ = ['ChaosManagementClient'] try: from ._patch import patch_sdk # type: ignore diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_microsoft_azure_chaos.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_chaos_management_client.py similarity index 85% rename from sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_microsoft_azure_chaos.py rename to sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_chaos_management_client.py index 8cb38ec211a1..c99e87311295 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_microsoft_azure_chaos.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_chaos_management_client.py @@ -18,7 +18,7 @@ from azure.core.credentials import TokenCredential from azure.core.pipeline.transport import HttpRequest, HttpResponse -from ._configuration import MicrosoftAzureChaosConfiguration +from ._configuration import ChaosManagementClientConfiguration from .operations import CapabilitiesOperations from .operations import ExperimentsOperations from .operations import Operations @@ -28,21 +28,21 @@ from . import models -class MicrosoftAzureChaos(object): - """Azure Chaos Resource Provider REST API. +class ChaosManagementClient(object): + """Chaos Management Client. :ivar capabilities: CapabilitiesOperations operations - :vartype capabilities: microsoft_azure_chaos.operations.CapabilitiesOperations + :vartype capabilities: chaos_management_client.operations.CapabilitiesOperations :ivar experiments: ExperimentsOperations operations - :vartype experiments: microsoft_azure_chaos.operations.ExperimentsOperations + :vartype experiments: chaos_management_client.operations.ExperimentsOperations :ivar operations: Operations operations - :vartype operations: microsoft_azure_chaos.operations.Operations + :vartype operations: chaos_management_client.operations.Operations :ivar targets: TargetsOperations operations - :vartype targets: microsoft_azure_chaos.operations.TargetsOperations + :vartype targets: chaos_management_client.operations.TargetsOperations :ivar target_types: TargetTypesOperations operations - :vartype target_types: microsoft_azure_chaos.operations.TargetTypesOperations + :vartype target_types: chaos_management_client.operations.TargetTypesOperations :ivar capability_types: CapabilityTypesOperations operations - :vartype capability_types: microsoft_azure_chaos.operations.CapabilityTypesOperations + :vartype capability_types: chaos_management_client.operations.CapabilityTypesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: GUID that represents an Azure subscription ID. @@ -61,7 +61,7 @@ def __init__( # type: (...) -> None if not base_url: base_url = 'https://management.azure.com' - self._config = MicrosoftAzureChaosConfiguration(credential, subscription_id, **kwargs) + self._config = ChaosManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} @@ -105,7 +105,7 @@ def close(self): self._client.close() def __enter__(self): - # type: () -> MicrosoftAzureChaos + # type: () -> ChaosManagementClient self._client.__enter__() return self diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py index 4cae01768f94..3532b84344c0 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py @@ -21,8 +21,8 @@ from azure.core.credentials import TokenCredential -class MicrosoftAzureChaosConfiguration(Configuration): - """Configuration for MicrosoftAzureChaos. +class ChaosManagementClientConfiguration(Configuration): + """Configuration for ChaosManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -44,7 +44,7 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(MicrosoftAzureChaosConfiguration, self).__init__(**kwargs) + super(ChaosManagementClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_metadata.json b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_metadata.json index c514182af54d..65cab6b6eb30 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_metadata.json +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_metadata.json @@ -2,16 +2,16 @@ "chosen_version": "2021-09-15-preview", "total_api_version_list": ["2021-09-15-preview"], "client": { - "name": "MicrosoftAzureChaos", - "filename": "_microsoft_azure_chaos", - "description": "Azure Chaos Resource Provider REST API.", + "name": "ChaosManagementClient", + "filename": "_chaos_management_client", + "description": "Chaos Management Client.", "base_url": "\u0027https://management.azure.com\u0027", "custom_base_url": null, "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MicrosoftAzureChaosConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MicrosoftAzureChaosConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ChaosManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ChaosManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py index e5754a47ce68..dfa6ee022f15 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "1.0.0b2" diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/__init__.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/__init__.py index 0f67b9cee10c..c08df3c5b2e1 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/__init__.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/__init__.py @@ -6,5 +6,5 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._microsoft_azure_chaos import MicrosoftAzureChaos -__all__ = ['MicrosoftAzureChaos'] +from ._chaos_management_client import ChaosManagementClient +__all__ = ['ChaosManagementClient'] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_microsoft_azure_chaos.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_chaos_management_client.py similarity index 85% rename from sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_microsoft_azure_chaos.py rename to sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_chaos_management_client.py index e4daf6cdb935..d57076521db6 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_microsoft_azure_chaos.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_chaos_management_client.py @@ -16,7 +16,7 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -from ._configuration import MicrosoftAzureChaosConfiguration +from ._configuration import ChaosManagementClientConfiguration from .operations import CapabilitiesOperations from .operations import ExperimentsOperations from .operations import Operations @@ -26,21 +26,21 @@ from .. import models -class MicrosoftAzureChaos(object): - """Azure Chaos Resource Provider REST API. +class ChaosManagementClient(object): + """Chaos Management Client. :ivar capabilities: CapabilitiesOperations operations - :vartype capabilities: microsoft_azure_chaos.aio.operations.CapabilitiesOperations + :vartype capabilities: chaos_management_client.aio.operations.CapabilitiesOperations :ivar experiments: ExperimentsOperations operations - :vartype experiments: microsoft_azure_chaos.aio.operations.ExperimentsOperations + :vartype experiments: chaos_management_client.aio.operations.ExperimentsOperations :ivar operations: Operations operations - :vartype operations: microsoft_azure_chaos.aio.operations.Operations + :vartype operations: chaos_management_client.aio.operations.Operations :ivar targets: TargetsOperations operations - :vartype targets: microsoft_azure_chaos.aio.operations.TargetsOperations + :vartype targets: chaos_management_client.aio.operations.TargetsOperations :ivar target_types: TargetTypesOperations operations - :vartype target_types: microsoft_azure_chaos.aio.operations.TargetTypesOperations + :vartype target_types: chaos_management_client.aio.operations.TargetTypesOperations :ivar capability_types: CapabilityTypesOperations operations - :vartype capability_types: microsoft_azure_chaos.aio.operations.CapabilityTypesOperations + :vartype capability_types: chaos_management_client.aio.operations.CapabilityTypesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: GUID that represents an Azure subscription ID. @@ -58,7 +58,7 @@ def __init__( ) -> None: if not base_url: base_url = 'https://management.azure.com' - self._config = MicrosoftAzureChaosConfiguration(credential, subscription_id, **kwargs) + self._config = ChaosManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} @@ -99,7 +99,7 @@ async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> Async async def close(self) -> None: await self._client.close() - async def __aenter__(self) -> "MicrosoftAzureChaos": + async def __aenter__(self) -> "ChaosManagementClient": await self._client.__aenter__() return self diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py index e3cbf18ebd0b..9f1f9f8c197a 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py @@ -19,8 +19,8 @@ from azure.core.credentials_async import AsyncTokenCredential -class MicrosoftAzureChaosConfiguration(Configuration): - """Configuration for MicrosoftAzureChaos. +class ChaosManagementClientConfiguration(Configuration): + """Configuration for ChaosManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -41,7 +41,7 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(MicrosoftAzureChaosConfiguration, self).__init__(**kwargs) + super(ChaosManagementClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capabilities_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capabilities_operations.py index aaed031c9991..971f6533087b 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capabilities_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capabilities_operations.py @@ -26,7 +26,7 @@ class CapabilitiesOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,7 +67,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CapabilityListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.CapabilityListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.CapabilityListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityListResult"] @@ -159,7 +159,7 @@ async def get( :type capability_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Capability, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Capability + :rtype: ~chaos_management_client.models.Capability :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Capability"] @@ -306,10 +306,10 @@ async def create_or_update( :param capability_name: String that represents a Capability resource name. :type capability_name: str :param capability: Capability resource to be created or updated. - :type capability: ~microsoft_azure_chaos.models.Capability + :type capability: ~chaos_management_client.models.Capability :keyword callable cls: A custom type or function that will be passed the direct response :return: Capability, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Capability + :rtype: ~chaos_management_client.models.Capability :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Capability"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capability_types_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capability_types_operations.py index d94b0445b823..cb46f619b5b7 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capability_types_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_capability_types_operations.py @@ -26,7 +26,7 @@ class CapabilityTypesOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -58,7 +58,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CapabilityTypeListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.CapabilityTypeListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.CapabilityTypeListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityTypeListResult"] @@ -138,7 +138,7 @@ async def get( :type capability_type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CapabilityType, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.CapabilityType + :rtype: ~chaos_management_client.models.CapabilityType :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityType"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_experiments_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_experiments_operations.py index 7e4a4959fbe6..90612e3f41f0 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_experiments_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_experiments_operations.py @@ -28,7 +28,7 @@ class ExperimentsOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -58,7 +58,7 @@ def list_all( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.ExperimentListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.ExperimentListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentListResult"] @@ -139,7 +139,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.ExperimentListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.ExperimentListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentListResult"] @@ -273,7 +273,7 @@ async def get( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Experiment, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Experiment + :rtype: ~chaos_management_client.models.Experiment :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] @@ -386,7 +386,7 @@ async def begin_create_or_update( :param experiment_name: String that represents a Experiment resource name. :type experiment_name: str :param experiment: Experiment resource to be created or updated. - :type experiment: ~microsoft_azure_chaos.models.Experiment + :type experiment: ~chaos_management_client.models.Experiment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. @@ -394,7 +394,7 @@ async def begin_create_or_update( :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: An instance of AsyncLROPoller that returns either Experiment or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~microsoft_azure_chaos.models.Experiment] + :rtype: ~azure.core.polling.AsyncLROPoller[~chaos_management_client.models.Experiment] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -510,7 +510,7 @@ async def begin_cancel( :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: An instance of AsyncLROPoller that returns either ExperimentCancelOperationResult or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~microsoft_azure_chaos.models.ExperimentCancelOperationResult] + :rtype: ~azure.core.polling.AsyncLROPoller[~chaos_management_client.models.ExperimentCancelOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -572,7 +572,7 @@ async def start( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentStartOperationResult, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentStartOperationResult + :rtype: ~chaos_management_client.models.ExperimentStartOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStartOperationResult"] @@ -631,7 +631,7 @@ def list_all_statuses( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentStatusListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.ExperimentStatusListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.ExperimentStatusListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStatusListResult"] @@ -709,7 +709,7 @@ async def get_status( :type status_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentStatus, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentStatus + :rtype: ~chaos_management_client.models.ExperimentStatus :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStatus"] @@ -769,7 +769,7 @@ def list_execution_details( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentExecutionDetailsListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.ExperimentExecutionDetailsListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.ExperimentExecutionDetailsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentExecutionDetailsListResult"] @@ -847,7 +847,7 @@ async def get_execution_details( :type execution_details_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentExecutionDetails, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentExecutionDetails + :rtype: ~chaos_management_client.models.ExperimentExecutionDetails :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentExecutionDetails"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_operations.py index c4c55dd7616c..7ba98d047556 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_operations.py @@ -26,7 +26,7 @@ class Operations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -49,7 +49,7 @@ def list_all( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.OperationListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_target_types_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_target_types_operations.py index b86d29325a85..dfec4596a7d6 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_target_types_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_target_types_operations.py @@ -26,7 +26,7 @@ class TargetTypesOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -55,7 +55,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TargetTypeListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.TargetTypeListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.TargetTypeListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetTypeListResult"] @@ -131,7 +131,7 @@ async def get( :type target_type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: TargetType, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.TargetType + :rtype: ~chaos_management_client.models.TargetType :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetType"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py index ffa3967ab8a3..e1c62155cff8 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py @@ -26,7 +26,7 @@ class TargetsOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -64,7 +64,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TargetListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~microsoft_azure_chaos.models.TargetListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~chaos_management_client.models.TargetListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetListResult"] @@ -152,7 +152,7 @@ async def get( :type target_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Target, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Target + :rtype: ~chaos_management_client.models.Target :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Target"] @@ -291,10 +291,10 @@ async def create_or_update( :param target_name: String that represents a Target resource name. :type target_name: str :param target: Target resource to be created or updated. - :type target: ~microsoft_azure_chaos.models.Target + :type target: ~chaos_management_client.models.Target :keyword callable cls: A custom type or function that will be passed the direct response :return: Target, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Target + :rtype: ~chaos_management_client.models.Target :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Target"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/__init__.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/__init__.py index e0e888f73712..d348640005ea 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/__init__.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/__init__.py @@ -91,7 +91,7 @@ from ._models import TargetTypeListResult # type: ignore from ._models import TrackedResource # type: ignore -from ._microsoft_azure_chaos_enums import ( +from ._chaos_management_client_enums import ( ActionType, CreatedByType, Origin, diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_microsoft_azure_chaos_enums.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_chaos_management_client_enums.py similarity index 100% rename from sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_microsoft_azure_chaos_enums.py rename to sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_chaos_management_client_enums.py diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models.py index ca1e4fc6d913..fae34f530c2e 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models.py @@ -60,7 +60,7 @@ class ActionStatus(msrest.serialization.Model): :vartype status: str :ivar targets: The array of targets. :vartype targets: - list[~microsoft_azure_chaos.models.ExperimentExecutionActionTargetDetailsProperties] + list[~chaos_management_client.models.ExperimentExecutionActionTargetDetailsProperties] """ _validation = { @@ -96,7 +96,7 @@ class Branch(msrest.serialization.Model): :param name: Required. String of the branch name. :type name: str :param actions: Required. List of actions. - :type actions: list[~microsoft_azure_chaos.models.Action] + :type actions: list[~chaos_management_client.models.Action] """ _validation = { @@ -130,7 +130,7 @@ class BranchStatus(msrest.serialization.Model): :ivar status: The status of the branch. :vartype status: str :ivar actions: The array of actions. - :vartype actions: list[~microsoft_azure_chaos.models.ActionStatus] + :vartype actions: list[~chaos_management_client.models.ActionStatus] """ _validation = { @@ -209,7 +209,7 @@ class Capability(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The standard system metadata of a resource type. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :ivar publisher: String of the Publisher that this Capability extends. :vartype publisher: str :ivar target_type: String of the Target Type that this Capability extends. @@ -265,7 +265,7 @@ class CapabilityListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Capability resources. - :vartype value: list[~microsoft_azure_chaos.models.Capability] + :vartype value: list[~chaos_management_client.models.Capability] :ivar next_link: URL to retrieve the next page of Capability resources. :vartype next_link: str """ @@ -303,7 +303,7 @@ class CapabilityType(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata properties of the capability type resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the Capability Type resource. :type location: str :ivar publisher: String of the Publisher that this Capability Type extends. @@ -368,7 +368,7 @@ class CapabilityTypeListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Capability Type resources. - :vartype value: list[~microsoft_azure_chaos.models.CapabilityType] + :vartype value: list[~chaos_management_client.models.CapabilityType] :ivar next_link: URL to retrieve the next page of Capability Type resources. :vartype next_link: str """ @@ -404,7 +404,7 @@ class ContinuousAction(Action): :param duration: Required. ISO8601 formatted string that represents a duration. :type duration: str :param parameters: Required. List of key value pairs. - :type parameters: list[~microsoft_azure_chaos.models.KeyValuePair] + :type parameters: list[~chaos_management_client.models.KeyValuePair] :param selector_id: Required. String that represents a selector. :type selector_id: str """ @@ -480,7 +480,7 @@ class DiscreteAction(Action): :param name: Required. String that represents a Capability URN. :type name: str :param parameters: Required. List of key value pairs. - :type parameters: list[~microsoft_azure_chaos.models.KeyValuePair] + :type parameters: list[~chaos_management_client.models.KeyValuePair] :param selector_id: Required. String that represents a selector. :type selector_id: str """ @@ -551,9 +551,9 @@ class ErrorDetail(msrest.serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~microsoft_azure_chaos.models.ErrorDetail] + :vartype details: list[~chaos_management_client.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: list[~microsoft_azure_chaos.models.ErrorAdditionalInfo] + :vartype additional_info: list[~chaos_management_client.models.ErrorAdditionalInfo] """ _validation = { @@ -588,7 +588,7 @@ class ErrorResponse(msrest.serialization.Model): """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). :param error: The error object. - :type error: ~microsoft_azure_chaos.models.ErrorDetail + :type error: ~chaos_management_client.models.ErrorDetail """ _attribute_map = { @@ -668,13 +668,13 @@ class Experiment(TrackedResource): :param location: Required. The geo-location where the resource lives. :type location: str :ivar system_data: The system metadata of the experiment resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param identity: The identity of the experiment resource. - :type identity: ~microsoft_azure_chaos.models.ResourceIdentity + :type identity: ~chaos_management_client.models.ResourceIdentity :param steps: Required. List of steps. - :type steps: list[~microsoft_azure_chaos.models.Step] + :type steps: list[~chaos_management_client.models.Step] :param selectors: Required. List of selectors. - :type selectors: list[~microsoft_azure_chaos.models.Selector] + :type selectors: list[~chaos_management_client.models.Selector] :param start_on_creation: A boolean value that indicates if experiment should be started on creation or not. :type start_on_creation: bool @@ -789,7 +789,7 @@ class ExperimentExecutionActionTargetDetailsProperties(msrest.serialization.Mode :ivar completed_date_utc: String that represents the completed date time. :vartype completed_date_utc: ~datetime.datetime :ivar error: The error of the action. - :vartype error: ~microsoft_azure_chaos.models.ExperimentExecutionActionTargetDetailsError + :vartype error: ~chaos_management_client.models.ExperimentExecutionActionTargetDetailsError """ _validation = { @@ -847,7 +847,7 @@ class ExperimentExecutionDetails(msrest.serialization.Model): :vartype stop_date_utc: ~datetime.datetime :ivar run_information: The information of the experiment run. :vartype run_information: - ~microsoft_azure_chaos.models.ExperimentExecutionDetailsPropertiesRunInformation + ~chaos_management_client.models.ExperimentExecutionDetailsPropertiesRunInformation """ _validation = { @@ -902,7 +902,7 @@ class ExperimentExecutionDetailsListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment execution details. - :vartype value: list[~microsoft_azure_chaos.models.ExperimentExecutionDetails] + :vartype value: list[~chaos_management_client.models.ExperimentExecutionDetails] :ivar next_link: URL to retrieve the next page of Experiment execution details. :vartype next_link: str """ @@ -932,7 +932,7 @@ class ExperimentExecutionDetailsPropertiesRunInformation(msrest.serialization.Mo Variables are only populated by the server, and will be ignored when sending a request. :ivar steps: The steps of the experiment run. - :vartype steps: list[~microsoft_azure_chaos.models.StepStatus] + :vartype steps: list[~chaos_management_client.models.StepStatus] """ _validation = { @@ -957,7 +957,7 @@ class ExperimentListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment resources. - :vartype value: list[~microsoft_azure_chaos.models.Experiment] + :vartype value: list[~chaos_management_client.models.Experiment] :ivar next_link: URL to retrieve the next page of Experiment resources. :vartype next_link: str """ @@ -1067,7 +1067,7 @@ class ExperimentStatusListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment statuses. - :vartype value: list[~microsoft_azure_chaos.models.ExperimentStatus] + :vartype value: list[~chaos_management_client.models.ExperimentStatus] :ivar next_link: URL to retrieve the next page of Experiment statuses. :vartype next_link: str """ @@ -1133,14 +1133,14 @@ class Operation(msrest.serialization.Model): data-plane operations and "false" for ARM/control-plane operations. :vartype is_data_action: bool :param display: Localized display information for this particular operation. - :type display: ~microsoft_azure_chaos.models.OperationDisplay + :type display: ~chaos_management_client.models.OperationDisplay :ivar origin: The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: "user", "system", "user,system". - :vartype origin: str or ~microsoft_azure_chaos.models.Origin + :vartype origin: str or ~chaos_management_client.models.Origin :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: "Internal". - :vartype action_type: str or ~microsoft_azure_chaos.models.ActionType + :vartype action_type: str or ~chaos_management_client.models.ActionType """ _validation = { @@ -1220,7 +1220,7 @@ class OperationListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of operations supported by the resource provider. - :vartype value: list[~microsoft_azure_chaos.models.Operation] + :vartype value: list[~chaos_management_client.models.Operation] :ivar next_link: URL to get the next set of operation list results (if there are any). :vartype next_link: str """ @@ -1253,7 +1253,7 @@ class ResourceIdentity(msrest.serialization.Model): :param type: Required. String of the resource identity type. Possible values include: "None", "SystemAssigned". - :type type: str or ~microsoft_azure_chaos.models.ResourceIdentityType + :type type: str or ~chaos_management_client.models.ResourceIdentityType :ivar principal_id: GUID that represents the principal ID of this resource identity. :vartype principal_id: str :ivar tenant_id: GUID that represents the tenant ID of this resource identity. @@ -1289,11 +1289,11 @@ class Selector(msrest.serialization.Model): :param type: Required. Enum of the selector type. Possible values include: "Percent", "Random", "Tag", "List". - :type type: str or ~microsoft_azure_chaos.models.SelectorType + :type type: str or ~chaos_management_client.models.SelectorType :param id: Required. String of the selector ID. :type id: str :param targets: Required. List of Target references. - :type targets: list[~microsoft_azure_chaos.models.TargetReference] + :type targets: list[~chaos_management_client.models.TargetReference] """ _validation = { @@ -1326,7 +1326,7 @@ class Step(msrest.serialization.Model): :param name: Required. String of the step name. :type name: str :param branches: Required. List of branches. - :type branches: list[~microsoft_azure_chaos.models.Branch] + :type branches: list[~chaos_management_client.models.Branch] """ _validation = { @@ -1360,7 +1360,7 @@ class StepStatus(msrest.serialization.Model): :ivar status: The value of the status of the step. :vartype status: str :ivar branches: The array of branches. - :vartype branches: list[~microsoft_azure_chaos.models.BranchStatus] + :vartype branches: list[~chaos_management_client.models.BranchStatus] """ _validation = { @@ -1395,14 +1395,14 @@ class SystemData(msrest.serialization.Model): :type created_by: str :param created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type created_by_type: str or ~microsoft_azure_chaos.models.CreatedByType + :type created_by_type: str or ~chaos_management_client.models.CreatedByType :param created_at: The timestamp of resource creation (UTC). :type created_at: ~datetime.datetime :param last_modified_by: The identity that last modified the resource. :type last_modified_by: str :param last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type last_modified_by_type: str or ~microsoft_azure_chaos.models.CreatedByType + :type last_modified_by_type: str or ~chaos_management_client.models.CreatedByType :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -1445,7 +1445,7 @@ class Target(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata of the target resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the target resource. :type location: str :param properties: Required. The properties of the target resource. @@ -1485,7 +1485,7 @@ class TargetListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Target resources. - :vartype value: list[~microsoft_azure_chaos.models.Target] + :vartype value: list[~chaos_management_client.models.Target] :ivar next_link: URL to retrieve the next page of Target resources. :vartype next_link: str """ @@ -1516,7 +1516,7 @@ class TargetReference(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar type: Enum of the Target reference type. Has constant value: "ResourceId". + :ivar type: Enum of the Target reference type. Has constant value: "ChaosTarget". :vartype type: str :param id: Required. String of the resource ID of a Target resource. :type id: str @@ -1532,7 +1532,7 @@ class TargetReference(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, } - type = "ResourceId" + type = "ChaosTarget" def __init__( self, @@ -1556,7 +1556,7 @@ class TargetType(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata properties of the target type resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the Target Type resource. :type location: str :ivar display_name: Localized string of the display name. @@ -1611,7 +1611,7 @@ class TargetTypeListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Target Type resources. - :vartype value: list[~microsoft_azure_chaos.models.TargetType] + :vartype value: list[~chaos_management_client.models.TargetType] :ivar next_link: URL to retrieve the next page of Target Type resources. :vartype next_link: str """ diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models_py3.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models_py3.py index af61a388bb18..efe187cc1b39 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models_py3.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models_py3.py @@ -12,7 +12,7 @@ from azure.core.exceptions import HttpResponseError import msrest.serialization -from ._microsoft_azure_chaos_enums import * +from ._chaos_management_client_enums import * class Action(msrest.serialization.Model): @@ -67,7 +67,7 @@ class ActionStatus(msrest.serialization.Model): :vartype status: str :ivar targets: The array of targets. :vartype targets: - list[~microsoft_azure_chaos.models.ExperimentExecutionActionTargetDetailsProperties] + list[~chaos_management_client.models.ExperimentExecutionActionTargetDetailsProperties] """ _validation = { @@ -103,7 +103,7 @@ class Branch(msrest.serialization.Model): :param name: Required. String of the branch name. :type name: str :param actions: Required. List of actions. - :type actions: list[~microsoft_azure_chaos.models.Action] + :type actions: list[~chaos_management_client.models.Action] """ _validation = { @@ -140,7 +140,7 @@ class BranchStatus(msrest.serialization.Model): :ivar status: The status of the branch. :vartype status: str :ivar actions: The array of actions. - :vartype actions: list[~microsoft_azure_chaos.models.ActionStatus] + :vartype actions: list[~chaos_management_client.models.ActionStatus] """ _validation = { @@ -219,7 +219,7 @@ class Capability(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The standard system metadata of a resource type. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :ivar publisher: String of the Publisher that this Capability extends. :vartype publisher: str :ivar target_type: String of the Target Type that this Capability extends. @@ -275,7 +275,7 @@ class CapabilityListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Capability resources. - :vartype value: list[~microsoft_azure_chaos.models.Capability] + :vartype value: list[~chaos_management_client.models.Capability] :ivar next_link: URL to retrieve the next page of Capability resources. :vartype next_link: str """ @@ -313,7 +313,7 @@ class CapabilityType(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata properties of the capability type resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the Capability Type resource. :type location: str :ivar publisher: String of the Publisher that this Capability Type extends. @@ -380,7 +380,7 @@ class CapabilityTypeListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Capability Type resources. - :vartype value: list[~microsoft_azure_chaos.models.CapabilityType] + :vartype value: list[~chaos_management_client.models.CapabilityType] :ivar next_link: URL to retrieve the next page of Capability Type resources. :vartype next_link: str """ @@ -416,7 +416,7 @@ class ContinuousAction(Action): :param duration: Required. ISO8601 formatted string that represents a duration. :type duration: str :param parameters: Required. List of key value pairs. - :type parameters: list[~microsoft_azure_chaos.models.KeyValuePair] + :type parameters: list[~chaos_management_client.models.KeyValuePair] :param selector_id: Required. String that represents a selector. :type selector_id: str """ @@ -500,7 +500,7 @@ class DiscreteAction(Action): :param name: Required. String that represents a Capability URN. :type name: str :param parameters: Required. List of key value pairs. - :type parameters: list[~microsoft_azure_chaos.models.KeyValuePair] + :type parameters: list[~chaos_management_client.models.KeyValuePair] :param selector_id: Required. String that represents a selector. :type selector_id: str """ @@ -575,9 +575,9 @@ class ErrorDetail(msrest.serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~microsoft_azure_chaos.models.ErrorDetail] + :vartype details: list[~chaos_management_client.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: list[~microsoft_azure_chaos.models.ErrorAdditionalInfo] + :vartype additional_info: list[~chaos_management_client.models.ErrorAdditionalInfo] """ _validation = { @@ -612,7 +612,7 @@ class ErrorResponse(msrest.serialization.Model): """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). :param error: The error object. - :type error: ~microsoft_azure_chaos.models.ErrorDetail + :type error: ~chaos_management_client.models.ErrorDetail """ _attribute_map = { @@ -697,13 +697,13 @@ class Experiment(TrackedResource): :param location: Required. The geo-location where the resource lives. :type location: str :ivar system_data: The system metadata of the experiment resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param identity: The identity of the experiment resource. - :type identity: ~microsoft_azure_chaos.models.ResourceIdentity + :type identity: ~chaos_management_client.models.ResourceIdentity :param steps: Required. List of steps. - :type steps: list[~microsoft_azure_chaos.models.Step] + :type steps: list[~chaos_management_client.models.Step] :param selectors: Required. List of selectors. - :type selectors: list[~microsoft_azure_chaos.models.Selector] + :type selectors: list[~chaos_management_client.models.Selector] :param start_on_creation: A boolean value that indicates if experiment should be started on creation or not. :type start_on_creation: bool @@ -825,7 +825,7 @@ class ExperimentExecutionActionTargetDetailsProperties(msrest.serialization.Mode :ivar completed_date_utc: String that represents the completed date time. :vartype completed_date_utc: ~datetime.datetime :ivar error: The error of the action. - :vartype error: ~microsoft_azure_chaos.models.ExperimentExecutionActionTargetDetailsError + :vartype error: ~chaos_management_client.models.ExperimentExecutionActionTargetDetailsError """ _validation = { @@ -883,7 +883,7 @@ class ExperimentExecutionDetails(msrest.serialization.Model): :vartype stop_date_utc: ~datetime.datetime :ivar run_information: The information of the experiment run. :vartype run_information: - ~microsoft_azure_chaos.models.ExperimentExecutionDetailsPropertiesRunInformation + ~chaos_management_client.models.ExperimentExecutionDetailsPropertiesRunInformation """ _validation = { @@ -938,7 +938,7 @@ class ExperimentExecutionDetailsListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment execution details. - :vartype value: list[~microsoft_azure_chaos.models.ExperimentExecutionDetails] + :vartype value: list[~chaos_management_client.models.ExperimentExecutionDetails] :ivar next_link: URL to retrieve the next page of Experiment execution details. :vartype next_link: str """ @@ -968,7 +968,7 @@ class ExperimentExecutionDetailsPropertiesRunInformation(msrest.serialization.Mo Variables are only populated by the server, and will be ignored when sending a request. :ivar steps: The steps of the experiment run. - :vartype steps: list[~microsoft_azure_chaos.models.StepStatus] + :vartype steps: list[~chaos_management_client.models.StepStatus] """ _validation = { @@ -993,7 +993,7 @@ class ExperimentListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment resources. - :vartype value: list[~microsoft_azure_chaos.models.Experiment] + :vartype value: list[~chaos_management_client.models.Experiment] :ivar next_link: URL to retrieve the next page of Experiment resources. :vartype next_link: str """ @@ -1103,7 +1103,7 @@ class ExperimentStatusListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Experiment statuses. - :vartype value: list[~microsoft_azure_chaos.models.ExperimentStatus] + :vartype value: list[~chaos_management_client.models.ExperimentStatus] :ivar next_link: URL to retrieve the next page of Experiment statuses. :vartype next_link: str """ @@ -1172,14 +1172,14 @@ class Operation(msrest.serialization.Model): data-plane operations and "false" for ARM/control-plane operations. :vartype is_data_action: bool :param display: Localized display information for this particular operation. - :type display: ~microsoft_azure_chaos.models.OperationDisplay + :type display: ~chaos_management_client.models.OperationDisplay :ivar origin: The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". Possible values include: "user", "system", "user,system". - :vartype origin: str or ~microsoft_azure_chaos.models.Origin + :vartype origin: str or ~chaos_management_client.models.Origin :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: "Internal". - :vartype action_type: str or ~microsoft_azure_chaos.models.ActionType + :vartype action_type: str or ~chaos_management_client.models.ActionType """ _validation = { @@ -1261,7 +1261,7 @@ class OperationListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of operations supported by the resource provider. - :vartype value: list[~microsoft_azure_chaos.models.Operation] + :vartype value: list[~chaos_management_client.models.Operation] :ivar next_link: URL to get the next set of operation list results (if there are any). :vartype next_link: str """ @@ -1294,7 +1294,7 @@ class ResourceIdentity(msrest.serialization.Model): :param type: Required. String of the resource identity type. Possible values include: "None", "SystemAssigned". - :type type: str or ~microsoft_azure_chaos.models.ResourceIdentityType + :type type: str or ~chaos_management_client.models.ResourceIdentityType :ivar principal_id: GUID that represents the principal ID of this resource identity. :vartype principal_id: str :ivar tenant_id: GUID that represents the tenant ID of this resource identity. @@ -1332,11 +1332,11 @@ class Selector(msrest.serialization.Model): :param type: Required. Enum of the selector type. Possible values include: "Percent", "Random", "Tag", "List". - :type type: str or ~microsoft_azure_chaos.models.SelectorType + :type type: str or ~chaos_management_client.models.SelectorType :param id: Required. String of the selector ID. :type id: str :param targets: Required. List of Target references. - :type targets: list[~microsoft_azure_chaos.models.TargetReference] + :type targets: list[~chaos_management_client.models.TargetReference] """ _validation = { @@ -1373,7 +1373,7 @@ class Step(msrest.serialization.Model): :param name: Required. String of the step name. :type name: str :param branches: Required. List of branches. - :type branches: list[~microsoft_azure_chaos.models.Branch] + :type branches: list[~chaos_management_client.models.Branch] """ _validation = { @@ -1410,7 +1410,7 @@ class StepStatus(msrest.serialization.Model): :ivar status: The value of the status of the step. :vartype status: str :ivar branches: The array of branches. - :vartype branches: list[~microsoft_azure_chaos.models.BranchStatus] + :vartype branches: list[~chaos_management_client.models.BranchStatus] """ _validation = { @@ -1445,14 +1445,14 @@ class SystemData(msrest.serialization.Model): :type created_by: str :param created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type created_by_type: str or ~microsoft_azure_chaos.models.CreatedByType + :type created_by_type: str or ~chaos_management_client.models.CreatedByType :param created_at: The timestamp of resource creation (UTC). :type created_at: ~datetime.datetime :param last_modified_by: The identity that last modified the resource. :type last_modified_by: str :param last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type last_modified_by_type: str or ~microsoft_azure_chaos.models.CreatedByType + :type last_modified_by_type: str or ~chaos_management_client.models.CreatedByType :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -1502,7 +1502,7 @@ class Target(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata of the target resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the target resource. :type location: str :param properties: Required. The properties of the target resource. @@ -1545,7 +1545,7 @@ class TargetListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Target resources. - :vartype value: list[~microsoft_azure_chaos.models.Target] + :vartype value: list[~chaos_management_client.models.Target] :ivar next_link: URL to retrieve the next page of Target resources. :vartype next_link: str """ @@ -1576,7 +1576,7 @@ class TargetReference(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar type: Enum of the Target reference type. Has constant value: "ResourceId". + :ivar type: Enum of the Target reference type. Has constant value: "ChaosTarget". :vartype type: str :param id: Required. String of the resource ID of a Target resource. :type id: str @@ -1592,7 +1592,7 @@ class TargetReference(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, } - type = "ResourceId" + type = "ChaosTarget" def __init__( self, @@ -1618,7 +1618,7 @@ class TargetType(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: The system metadata properties of the target type resource. - :vartype system_data: ~microsoft_azure_chaos.models.SystemData + :vartype system_data: ~chaos_management_client.models.SystemData :param location: Location of the Target Type resource. :type location: str :ivar display_name: Localized string of the display name. @@ -1675,7 +1675,7 @@ class TargetTypeListResult(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Target Type resources. - :vartype value: list[~microsoft_azure_chaos.models.TargetType] + :vartype value: list[~chaos_management_client.models.TargetType] :ivar next_link: URL to retrieve the next page of Target Type resources. :vartype next_link: str """ diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capabilities_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capabilities_operations.py index 0f29e82c4270..b7e8c3655f70 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capabilities_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capabilities_operations.py @@ -30,7 +30,7 @@ class CapabilitiesOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -72,7 +72,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CapabilityListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.CapabilityListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.CapabilityListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityListResult"] @@ -165,7 +165,7 @@ def get( :type capability_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Capability, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Capability + :rtype: ~chaos_management_client.models.Capability :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Capability"] @@ -314,10 +314,10 @@ def create_or_update( :param capability_name: String that represents a Capability resource name. :type capability_name: str :param capability: Capability resource to be created or updated. - :type capability: ~microsoft_azure_chaos.models.Capability + :type capability: ~chaos_management_client.models.Capability :keyword callable cls: A custom type or function that will be passed the direct response :return: Capability, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Capability + :rtype: ~chaos_management_client.models.Capability :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Capability"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capability_types_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capability_types_operations.py index 24835a99a222..844c13f7de4c 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capability_types_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_capability_types_operations.py @@ -30,7 +30,7 @@ class CapabilityTypesOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,7 +63,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CapabilityTypeListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.CapabilityTypeListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.CapabilityTypeListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityTypeListResult"] @@ -144,7 +144,7 @@ def get( :type capability_type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CapabilityType, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.CapabilityType + :rtype: ~chaos_management_client.models.CapabilityType :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilityType"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_experiments_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_experiments_operations.py index 3fb3f1f8bc9a..ed9410549e6b 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_experiments_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_experiments_operations.py @@ -32,7 +32,7 @@ class ExperimentsOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,7 +63,7 @@ def list_all( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.ExperimentListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.ExperimentListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentListResult"] @@ -145,7 +145,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.ExperimentListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.ExperimentListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentListResult"] @@ -281,7 +281,7 @@ def get( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Experiment, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Experiment + :rtype: ~chaos_management_client.models.Experiment :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] @@ -396,7 +396,7 @@ def begin_create_or_update( :param experiment_name: String that represents a Experiment resource name. :type experiment_name: str :param experiment: Experiment resource to be created or updated. - :type experiment: ~microsoft_azure_chaos.models.Experiment + :type experiment: ~chaos_management_client.models.Experiment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. @@ -404,7 +404,7 @@ def begin_create_or_update( :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 either Experiment or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~microsoft_azure_chaos.models.Experiment] + :rtype: ~azure.core.polling.LROPoller[~chaos_management_client.models.Experiment] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -522,7 +522,7 @@ def begin_cancel( :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 either ExperimentCancelOperationResult or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~microsoft_azure_chaos.models.ExperimentCancelOperationResult] + :rtype: ~azure.core.polling.LROPoller[~chaos_management_client.models.ExperimentCancelOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -585,7 +585,7 @@ def start( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentStartOperationResult, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentStartOperationResult + :rtype: ~chaos_management_client.models.ExperimentStartOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStartOperationResult"] @@ -645,7 +645,7 @@ def list_all_statuses( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentStatusListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.ExperimentStatusListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.ExperimentStatusListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStatusListResult"] @@ -724,7 +724,7 @@ def get_status( :type status_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentStatus, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentStatus + :rtype: ~chaos_management_client.models.ExperimentStatus :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentStatus"] @@ -785,7 +785,7 @@ def list_execution_details( :type experiment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ExperimentExecutionDetailsListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.ExperimentExecutionDetailsListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.ExperimentExecutionDetailsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentExecutionDetailsListResult"] @@ -864,7 +864,7 @@ def get_execution_details( :type execution_details_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ExperimentExecutionDetails, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.ExperimentExecutionDetails + :rtype: ~chaos_management_client.models.ExperimentExecutionDetails :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentExecutionDetails"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_operations.py index f785532c90e0..f9c85feec236 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_operations.py @@ -30,7 +30,7 @@ class Operations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -54,7 +54,7 @@ def list_all( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.OperationListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_target_types_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_target_types_operations.py index c9fa1c2ca892..31127b8e1ae6 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_target_types_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_target_types_operations.py @@ -30,7 +30,7 @@ class TargetTypesOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,7 +60,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TargetTypeListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.TargetTypeListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.TargetTypeListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetTypeListResult"] @@ -137,7 +137,7 @@ def get( :type target_type_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: TargetType, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.TargetType + :rtype: ~chaos_management_client.models.TargetType :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetType"] diff --git a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_targets_operations.py b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_targets_operations.py index 3243564aedbf..d7a993a2ddf2 100644 --- a/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_targets_operations.py +++ b/sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_targets_operations.py @@ -30,7 +30,7 @@ class TargetsOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~microsoft_azure_chaos.models + :type models: ~chaos_management_client.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -69,7 +69,7 @@ def list( :type continuation_token_parameter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TargetListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~microsoft_azure_chaos.models.TargetListResult] + :rtype: ~azure.core.paging.ItemPaged[~chaos_management_client.models.TargetListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.TargetListResult"] @@ -158,7 +158,7 @@ def get( :type target_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Target, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Target + :rtype: ~chaos_management_client.models.Target :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Target"] @@ -299,10 +299,10 @@ def create_or_update( :param target_name: String that represents a Target resource name. :type target_name: str :param target: Target resource to be created or updated. - :type target: ~microsoft_azure_chaos.models.Target + :type target: ~chaos_management_client.models.Target :keyword callable cls: A custom type or function that will be passed the direct response :return: Target, or the result of cls(response) - :rtype: ~microsoft_azure_chaos.models.Target + :rtype: ~chaos_management_client.models.Target :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Target"]