From 5e2bfb9fc1f2d8183824a22ca882df0b2446c47c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 12 Apr 2021 05:38:52 +0000 Subject: [PATCH] CodeGen from PR 13878 in Azure/azure-rest-api-specs Merge 95416650adb6a9d1d8118d1a44751bd55c83bbcc into d27a2c457fac2b4e9ba642accf49757e63c973ea --- .../azure-mgmt-resourcemover/MANIFEST.in | 1 + .../azure-mgmt-resourcemover/_meta.json | 8 ++ .../azure/mgmt/resourcemover/_metadata.json | 112 ++++++++++++++++++ .../azure/mgmt/resourcemover/_version.py | 2 +- .../_move_collections_operations.py | 28 ++--- .../operations/_move_resources_operations.py | 8 +- .../mgmt/resourcemover/models/_models.py | 45 +++---- .../mgmt/resourcemover/models/_models_py3.py | 57 ++++----- .../_move_collections_operations.py | 28 ++--- .../operations/_move_resources_operations.py | 8 +- 10 files changed, 210 insertions(+), 87 deletions(-) create mode 100644 sdk/resourcemover/azure-mgmt-resourcemover/_meta.json create mode 100644 sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_metadata.json diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/MANIFEST.in b/sdk/resourcemover/azure-mgmt-resourcemover/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/MANIFEST.in +++ b/sdk/resourcemover/azure-mgmt-resourcemover/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/_meta.json b/sdk/resourcemover/azure-mgmt-resourcemover/_meta.json new file mode 100644 index 000000000000..24394c372e8a --- /dev/null +++ b/sdk/resourcemover/azure-mgmt-resourcemover/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "3.0.6369", + "use": "@autorest/python@5.6.2", + "commit": "29915fab9c36811cca3a9f4ffed2ae2940567a5d", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/resourcemover/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.6.2 --version=3.0.6369", + "readme": "specification/resourcemover/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_metadata.json b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_metadata.json new file mode 100644 index 000000000000..5bc2a92e4aa8 --- /dev/null +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_metadata.json @@ -0,0 +1,112 @@ +{ + "chosen_version": "2021-01-01", + "total_api_version_list": ["2021-01-01"], + "client": { + "name": "ResourceMoverServiceAPI", + "filename": "_resource_mover_service_api", + "description": "A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region.", + "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\": [\"ResourceMoverServiceAPIConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "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\": [\"ResourceMoverServiceAPIConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "The Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "move_collections": "MoveCollectionsOperations", + "move_resources": "MoveResourcesOperations", + "unresolved_dependencies": "UnresolvedDependenciesOperations", + "operations_discovery": "OperationsDiscoveryOperations" + }, + "operation_mixins": { + "sync_imports": "None", + "async_imports": "None", + "operations": { + } + } +} \ No newline at end of file diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_version.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_version.py index 653b73a4a199..e5754a47ce68 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_version.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.1.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_collections_operations.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_collections_operations.py index f6abcb3efe6b..4dbc04492d80 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_collections_operations.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_collections_operations.py @@ -248,8 +248,8 @@ async def begin_delete( :type move_collection_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -438,8 +438,8 @@ async def begin_prepare( :type body: ~resource_mover_service_api.models.PrepareRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -571,8 +571,8 @@ async def begin_initiate_move( :type body: ~resource_mover_service_api.models.ResourceMoveRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -704,8 +704,8 @@ async def begin_commit( :type body: ~resource_mover_service_api.models.CommitRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -837,8 +837,8 @@ async def begin_discard( :type body: ~resource_mover_service_api.models.DiscardRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -954,8 +954,8 @@ async def begin_resolve_dependencies( :type move_collection_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) @@ -1084,8 +1084,8 @@ async def begin_bulk_remove( :type body: ~resource_mover_service_api.models.BulkRemoveRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_resources_operations.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_resources_operations.py index 3cbf40f3fe8b..6c750a15eb25 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_resources_operations.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/aio/operations/_move_resources_operations.py @@ -203,8 +203,8 @@ async def begin_create( :type body: ~resource_mover_service_api.models.MoveResource :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either MoveResource or the result of cls(response) @@ -327,8 +327,8 @@ async def begin_delete( :type move_resource_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response) diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models.py index 81b508f759cd..acdcbb563db9 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models.py @@ -513,8 +513,8 @@ class LBFrontendIPConfigurationResourceSettings(msrest.serialization.Model): :type private_ip_address: str :param private_ip_allocation_method: Gets or sets PrivateIP allocation method (Static/Dynamic). :type private_ip_allocation_method: str - :param subnet: Defines reference to a proxy resource. - :type subnet: ~resource_mover_service_api.models.ProxyResourceReference + :param subnet: Defines reference to subnet. + :type subnet: ~resource_mover_service_api.models.SubnetReference :param zones: Gets or sets the csv list of zones. :type zones: str """ @@ -523,7 +523,7 @@ class LBFrontendIPConfigurationResourceSettings(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'privateIpAllocationMethod', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'ProxyResourceReference'}, + 'subnet': {'key': 'subnet', 'type': 'SubnetReference'}, 'zones': {'key': 'zones', 'type': 'str'}, } @@ -766,7 +766,7 @@ class MoveCollectionProperties(msrest.serialization.Model): "Succeeded", "Updating", "Creating", "Failed". :vartype provisioning_state: str or ~resource_mover_service_api.models.ProvisioningState :ivar errors: Defines the move collection errors. - :vartype errors: ~resource_mover_service_api.models.MoveResourceError + :vartype errors: ~resource_mover_service_api.models.MoveCollectionPropertiesErrors """ _validation = { @@ -780,7 +780,7 @@ class MoveCollectionProperties(msrest.serialization.Model): 'source_region': {'key': 'sourceRegion', 'type': 'str'}, 'target_region': {'key': 'targetRegion', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': 'MoveResourceError'}, + 'errors': {'key': 'errors', 'type': 'MoveCollectionPropertiesErrors'}, } def __init__( @@ -1128,7 +1128,7 @@ class MoveResourceProperties(msrest.serialization.Model): :ivar source_resource_settings: Gets or sets the source resource settings. :vartype source_resource_settings: ~resource_mover_service_api.models.ResourceSettings :ivar move_status: Defines the move resource status. - :vartype move_status: ~resource_mover_service_api.models.MoveResourceStatus + :vartype move_status: ~resource_mover_service_api.models.MoveResourcePropertiesMoveStatus :ivar depends_on: Gets or sets the move resource dependencies. :vartype depends_on: list[~resource_mover_service_api.models.MoveResourceDependency] :param depends_on_overrides: Gets or sets the move resource dependencies overrides. @@ -1138,7 +1138,7 @@ class MoveResourceProperties(msrest.serialization.Model): the move collection. :vartype is_resolve_required: bool :ivar errors: Defines the move resource errors. - :vartype errors: ~resource_mover_service_api.models.MoveResourceError + :vartype errors: ~resource_mover_service_api.models.MoveResourcePropertiesErrors """ _validation = { @@ -1159,11 +1159,11 @@ class MoveResourceProperties(msrest.serialization.Model): 'existing_target_id': {'key': 'existingTargetId', 'type': 'str'}, 'resource_settings': {'key': 'resourceSettings', 'type': 'ResourceSettings'}, 'source_resource_settings': {'key': 'sourceResourceSettings', 'type': 'ResourceSettings'}, - 'move_status': {'key': 'moveStatus', 'type': 'MoveResourceStatus'}, + 'move_status': {'key': 'moveStatus', 'type': 'MoveResourcePropertiesMoveStatus'}, 'depends_on': {'key': 'dependsOn', 'type': '[MoveResourceDependency]'}, 'depends_on_overrides': {'key': 'dependsOnOverrides', 'type': '[MoveResourceDependencyOverride]'}, 'is_resolve_required': {'key': 'isResolveRequired', 'type': 'bool'}, - 'errors': {'key': 'errors', 'type': 'MoveResourceError'}, + 'errors': {'key': 'errors', 'type': 'MoveResourcePropertiesErrors'}, } def __init__( @@ -1357,29 +1357,30 @@ class NicIpConfigurationResourceSettings(msrest.serialization.Model): :type private_ip_address: str :param private_ip_allocation_method: Gets or sets the private IP address allocation method. :type private_ip_allocation_method: str - :param subnet: Defines reference to a proxy resource. - :type subnet: ~resource_mover_service_api.models.ProxyResourceReference + :param subnet: Defines reference to subnet. + :type subnet: ~resource_mover_service_api.models.SubnetReference :param primary: Gets or sets a value indicating whether this IP configuration is the primary. :type primary: bool :param load_balancer_backend_address_pools: Gets or sets the references of the load balancer backend address pools. :type load_balancer_backend_address_pools: - list[~resource_mover_service_api.models.ProxyResourceReference] + list[~resource_mover_service_api.models.LoadBalancerBackendAddressPoolReference] :param load_balancer_nat_rules: Gets or sets the references of the load balancer NAT rules. - :type load_balancer_nat_rules: list[~resource_mover_service_api.models.ProxyResourceReference] - :param public_ip: Defines reference to an Azure resource. - :type public_ip: ~resource_mover_service_api.models.AzureResourceReference + :type load_balancer_nat_rules: + list[~resource_mover_service_api.models.LoadBalancerNatRuleReference] + :param public_ip: Defines reference to a public IP. + :type public_ip: ~resource_mover_service_api.models.PublicIpReference """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'privateIpAllocationMethod', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'ProxyResourceReference'}, + 'subnet': {'key': 'subnet', 'type': 'SubnetReference'}, 'primary': {'key': 'primary', 'type': 'bool'}, - 'load_balancer_backend_address_pools': {'key': 'loadBalancerBackendAddressPools', 'type': '[ProxyResourceReference]'}, - 'load_balancer_nat_rules': {'key': 'loadBalancerNatRules', 'type': '[ProxyResourceReference]'}, - 'public_ip': {'key': 'publicIp', 'type': 'AzureResourceReference'}, + 'load_balancer_backend_address_pools': {'key': 'loadBalancerBackendAddressPools', 'type': '[LoadBalancerBackendAddressPoolReference]'}, + 'load_balancer_nat_rules': {'key': 'loadBalancerNatRules', 'type': '[LoadBalancerNatRuleReference]'}, + 'public_ip': {'key': 'publicIp', 'type': 'PublicIpReference'}, } def __init__( @@ -2038,14 +2039,14 @@ class SubnetResourceSettings(msrest.serialization.Model): :type name: str :param address_prefix: Gets or sets address prefix for the subnet. :type address_prefix: str - :param network_security_group: Defines reference to an Azure resource. - :type network_security_group: ~resource_mover_service_api.models.AzureResourceReference + :param network_security_group: Defines reference to NSG. + :type network_security_group: ~resource_mover_service_api.models.NsgReference """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'address_prefix': {'key': 'addressPrefix', 'type': 'str'}, - 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'AzureResourceReference'}, + 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'NsgReference'}, } def __init__( diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models_py3.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models_py3.py index 1538b775a474..ae70e8fa4099 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models_py3.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/models/_models_py3.py @@ -559,8 +559,8 @@ class LBFrontendIPConfigurationResourceSettings(msrest.serialization.Model): :type private_ip_address: str :param private_ip_allocation_method: Gets or sets PrivateIP allocation method (Static/Dynamic). :type private_ip_allocation_method: str - :param subnet: Defines reference to a proxy resource. - :type subnet: ~resource_mover_service_api.models.ProxyResourceReference + :param subnet: Defines reference to subnet. + :type subnet: ~resource_mover_service_api.models.SubnetReference :param zones: Gets or sets the csv list of zones. :type zones: str """ @@ -569,7 +569,7 @@ class LBFrontendIPConfigurationResourceSettings(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'privateIpAllocationMethod', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'ProxyResourceReference'}, + 'subnet': {'key': 'subnet', 'type': 'SubnetReference'}, 'zones': {'key': 'zones', 'type': 'str'}, } @@ -579,7 +579,7 @@ def __init__( name: Optional[str] = None, private_ip_address: Optional[str] = None, private_ip_allocation_method: Optional[str] = None, - subnet: Optional["ProxyResourceReference"] = None, + subnet: Optional["SubnetReference"] = None, zones: Optional[str] = None, **kwargs ): @@ -840,7 +840,7 @@ class MoveCollectionProperties(msrest.serialization.Model): "Succeeded", "Updating", "Creating", "Failed". :vartype provisioning_state: str or ~resource_mover_service_api.models.ProvisioningState :ivar errors: Defines the move collection errors. - :vartype errors: ~resource_mover_service_api.models.MoveResourceError + :vartype errors: ~resource_mover_service_api.models.MoveCollectionPropertiesErrors """ _validation = { @@ -854,7 +854,7 @@ class MoveCollectionProperties(msrest.serialization.Model): 'source_region': {'key': 'sourceRegion', 'type': 'str'}, 'target_region': {'key': 'targetRegion', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': 'MoveResourceError'}, + 'errors': {'key': 'errors', 'type': 'MoveCollectionPropertiesErrors'}, } def __init__( @@ -1233,7 +1233,7 @@ class MoveResourceProperties(msrest.serialization.Model): :ivar source_resource_settings: Gets or sets the source resource settings. :vartype source_resource_settings: ~resource_mover_service_api.models.ResourceSettings :ivar move_status: Defines the move resource status. - :vartype move_status: ~resource_mover_service_api.models.MoveResourceStatus + :vartype move_status: ~resource_mover_service_api.models.MoveResourcePropertiesMoveStatus :ivar depends_on: Gets or sets the move resource dependencies. :vartype depends_on: list[~resource_mover_service_api.models.MoveResourceDependency] :param depends_on_overrides: Gets or sets the move resource dependencies overrides. @@ -1243,7 +1243,7 @@ class MoveResourceProperties(msrest.serialization.Model): the move collection. :vartype is_resolve_required: bool :ivar errors: Defines the move resource errors. - :vartype errors: ~resource_mover_service_api.models.MoveResourceError + :vartype errors: ~resource_mover_service_api.models.MoveResourcePropertiesErrors """ _validation = { @@ -1264,11 +1264,11 @@ class MoveResourceProperties(msrest.serialization.Model): 'existing_target_id': {'key': 'existingTargetId', 'type': 'str'}, 'resource_settings': {'key': 'resourceSettings', 'type': 'ResourceSettings'}, 'source_resource_settings': {'key': 'sourceResourceSettings', 'type': 'ResourceSettings'}, - 'move_status': {'key': 'moveStatus', 'type': 'MoveResourceStatus'}, + 'move_status': {'key': 'moveStatus', 'type': 'MoveResourcePropertiesMoveStatus'}, 'depends_on': {'key': 'dependsOn', 'type': '[MoveResourceDependency]'}, 'depends_on_overrides': {'key': 'dependsOnOverrides', 'type': '[MoveResourceDependencyOverride]'}, 'is_resolve_required': {'key': 'isResolveRequired', 'type': 'bool'}, - 'errors': {'key': 'errors', 'type': 'MoveResourceError'}, + 'errors': {'key': 'errors', 'type': 'MoveResourcePropertiesErrors'}, } def __init__( @@ -1482,29 +1482,30 @@ class NicIpConfigurationResourceSettings(msrest.serialization.Model): :type private_ip_address: str :param private_ip_allocation_method: Gets or sets the private IP address allocation method. :type private_ip_allocation_method: str - :param subnet: Defines reference to a proxy resource. - :type subnet: ~resource_mover_service_api.models.ProxyResourceReference + :param subnet: Defines reference to subnet. + :type subnet: ~resource_mover_service_api.models.SubnetReference :param primary: Gets or sets a value indicating whether this IP configuration is the primary. :type primary: bool :param load_balancer_backend_address_pools: Gets or sets the references of the load balancer backend address pools. :type load_balancer_backend_address_pools: - list[~resource_mover_service_api.models.ProxyResourceReference] + list[~resource_mover_service_api.models.LoadBalancerBackendAddressPoolReference] :param load_balancer_nat_rules: Gets or sets the references of the load balancer NAT rules. - :type load_balancer_nat_rules: list[~resource_mover_service_api.models.ProxyResourceReference] - :param public_ip: Defines reference to an Azure resource. - :type public_ip: ~resource_mover_service_api.models.AzureResourceReference + :type load_balancer_nat_rules: + list[~resource_mover_service_api.models.LoadBalancerNatRuleReference] + :param public_ip: Defines reference to a public IP. + :type public_ip: ~resource_mover_service_api.models.PublicIpReference """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'private_ip_address': {'key': 'privateIpAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'privateIpAllocationMethod', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'ProxyResourceReference'}, + 'subnet': {'key': 'subnet', 'type': 'SubnetReference'}, 'primary': {'key': 'primary', 'type': 'bool'}, - 'load_balancer_backend_address_pools': {'key': 'loadBalancerBackendAddressPools', 'type': '[ProxyResourceReference]'}, - 'load_balancer_nat_rules': {'key': 'loadBalancerNatRules', 'type': '[ProxyResourceReference]'}, - 'public_ip': {'key': 'publicIp', 'type': 'AzureResourceReference'}, + 'load_balancer_backend_address_pools': {'key': 'loadBalancerBackendAddressPools', 'type': '[LoadBalancerBackendAddressPoolReference]'}, + 'load_balancer_nat_rules': {'key': 'loadBalancerNatRules', 'type': '[LoadBalancerNatRuleReference]'}, + 'public_ip': {'key': 'publicIp', 'type': 'PublicIpReference'}, } def __init__( @@ -1513,11 +1514,11 @@ def __init__( name: Optional[str] = None, private_ip_address: Optional[str] = None, private_ip_allocation_method: Optional[str] = None, - subnet: Optional["ProxyResourceReference"] = None, + subnet: Optional["SubnetReference"] = None, primary: Optional[bool] = None, - load_balancer_backend_address_pools: Optional[List["ProxyResourceReference"]] = None, - load_balancer_nat_rules: Optional[List["ProxyResourceReference"]] = None, - public_ip: Optional["AzureResourceReference"] = None, + load_balancer_backend_address_pools: Optional[List["LoadBalancerBackendAddressPoolReference"]] = None, + load_balancer_nat_rules: Optional[List["LoadBalancerNatRuleReference"]] = None, + public_ip: Optional["PublicIpReference"] = None, **kwargs ): super(NicIpConfigurationResourceSettings, self).__init__(**kwargs) @@ -2226,14 +2227,14 @@ class SubnetResourceSettings(msrest.serialization.Model): :type name: str :param address_prefix: Gets or sets address prefix for the subnet. :type address_prefix: str - :param network_security_group: Defines reference to an Azure resource. - :type network_security_group: ~resource_mover_service_api.models.AzureResourceReference + :param network_security_group: Defines reference to NSG. + :type network_security_group: ~resource_mover_service_api.models.NsgReference """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'address_prefix': {'key': 'addressPrefix', 'type': 'str'}, - 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'AzureResourceReference'}, + 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'NsgReference'}, } def __init__( @@ -2241,7 +2242,7 @@ def __init__( *, name: Optional[str] = None, address_prefix: Optional[str] = None, - network_security_group: Optional["AzureResourceReference"] = None, + network_security_group: Optional["NsgReference"] = None, **kwargs ): super(SubnetResourceSettings, self).__init__(**kwargs) diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_collections_operations.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_collections_operations.py index 7bcbe83ba037..891b069964e9 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_collections_operations.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_collections_operations.py @@ -256,8 +256,8 @@ def begin_delete( :type move_collection_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -449,8 +449,8 @@ def begin_prepare( :type body: ~resource_mover_service_api.models.PrepareRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -584,8 +584,8 @@ def begin_initiate_move( :type body: ~resource_mover_service_api.models.ResourceMoveRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -719,8 +719,8 @@ def begin_commit( :type body: ~resource_mover_service_api.models.CommitRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -854,8 +854,8 @@ def begin_discard( :type body: ~resource_mover_service_api.models.DiscardRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -973,8 +973,8 @@ def begin_resolve_dependencies( :type move_collection_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) @@ -1105,8 +1105,8 @@ def begin_bulk_remove( :type body: ~resource_mover_service_api.models.BulkRemoveRequest :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response) diff --git a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_resources_operations.py b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_resources_operations.py index 2418793fca3a..d5ce0e268179 100644 --- a/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_resources_operations.py +++ b/sdk/resourcemover/azure-mgmt-resourcemover/azure/mgmt/resourcemover/operations/_move_resources_operations.py @@ -210,8 +210,8 @@ def begin_create( :type body: ~resource_mover_service_api.models.MoveResource :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either MoveResource or the result of cls(response) @@ -336,8 +336,8 @@ def begin_delete( :type move_resource_name: str :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a 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 either OperationStatus or the result of cls(response)