diff --git a/sdk/resources/azure-mgmt-resource/_meta.json b/sdk/resources/azure-mgmt-resource/_meta.json index b9d5777abbc..b778f503ab9 100644 --- a/sdk/resources/azure-mgmt-resource/_meta.json +++ b/sdk/resources/azure-mgmt-resource/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.3.0", - "use": "@autorest/python@5.6.6", - "commit": "14d2ddf809ea5c8ce9d6017b5ab1aca96df05643", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.1" + ], + "commit": "6816683ce2d163a8ba62f426202fdcfbe7b68e35", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/resources/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.6 --version=3.3.0", + "autorest_command": "autorest specification/resources/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.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", "readme": "specification/resources/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/operations/_deployment_scripts_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/operations/_deployment_scripts_operations.py index 96dae7960eb..50fde68987e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/operations/_deployment_scripts_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/operations/_deployment_scripts_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, script_name: str, deployment_script: "_models.DeploymentScript", - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentScript"] error_map = { @@ -106,7 +106,7 @@ async def begin_create( resource_group_name: str, script_name: str, deployment_script: "_models.DeploymentScript", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentScript"]: """Creates a deployment script. @@ -118,8 +118,8 @@ async def begin_create( :type deployment_script: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.DeploymentScript :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentScript or the result of cls(response) @@ -177,7 +177,7 @@ async def update( resource_group_name: str, script_name: str, deployment_script: Optional["_models.DeploymentScriptUpdateParameter"] = None, - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": """Updates deployment script tags with specified values. @@ -246,7 +246,7 @@ async def get( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": """Gets a deployment script with a given name. @@ -305,7 +305,7 @@ async def delete( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a deployment script. When operation completes, status code 200 returned without content. @@ -360,7 +360,7 @@ async def delete( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentScriptListResult"]: """Lists all deployment scripts for a given subscription. @@ -429,7 +429,7 @@ async def get_logs( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> "_models.ScriptLogsList": """Gets deployment script logs for a given deployment script name. @@ -489,7 +489,7 @@ async def get_logs_default( resource_group_name: str, script_name: str, tail: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.ScriptLog": """Gets deployment script logs for a given deployment script name. @@ -553,7 +553,7 @@ async def get_logs_default( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentScriptListResult"]: """Lists deployments scripts. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models.py index 103bafbf271..a772e98f7e7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models.py @@ -162,7 +162,7 @@ class AzureCliScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -219,7 +219,7 @@ class AzureCliScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -338,7 +338,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] """ _validation = { @@ -353,7 +353,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, } def __init__( @@ -417,7 +417,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_cli_version: Required. Azure CLI module version to be used. :type az_cli_version: str """ @@ -445,7 +445,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_cli_version': {'key': 'azCliVersion', 'type': 'str'}, } @@ -519,7 +519,7 @@ class AzurePowerShellScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -576,7 +576,7 @@ class AzurePowerShellScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -659,7 +659,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_power_shell_version: Required. Azure PowerShell module version to be used. :type az_power_shell_version: str """ @@ -687,7 +687,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_power_shell_version': {'key': 'azPowerShellVersion', 'type': 'str'}, } @@ -873,7 +873,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -883,7 +883,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models_py3.py index f72b7b675c5..a6440ff343e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/models/_models_py3.py @@ -171,7 +171,7 @@ class AzureCliScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -228,7 +228,7 @@ class AzureCliScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -372,7 +372,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] """ _validation = { @@ -387,7 +387,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, } def __init__( @@ -455,7 +455,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_cli_version: Required. Azure CLI module version to be used. :type az_cli_version: str """ @@ -483,7 +483,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_cli_version': {'key': 'azCliVersion', 'type': 'str'}, } @@ -570,7 +570,7 @@ class AzurePowerShellScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -627,7 +627,7 @@ class AzurePowerShellScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -726,7 +726,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_power_shell_version: Required. Azure PowerShell module version to be used. :type az_power_shell_version: str """ @@ -754,7 +754,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_power_shell_version': {'key': 'azPowerShellVersion', 'type': 'str'}, } @@ -965,7 +965,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -975,7 +975,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/operations/_deployment_scripts_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/operations/_deployment_scripts_operations.py index 8c1ed64e037..58aa817bb0a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/operations/_deployment_scripts_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/operations/_deployment_scripts_operations.py @@ -124,8 +124,8 @@ def begin_create( :type deployment_script: ~azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models.DeploymentScript :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentScript or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/aio/operations/_deployment_scripts_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/aio/operations/_deployment_scripts_operations.py index 88be6e18af9..cc586d9a00a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/aio/operations/_deployment_scripts_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/aio/operations/_deployment_scripts_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, script_name: str, deployment_script: "_models.DeploymentScript", - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentScript"] error_map = { @@ -106,7 +106,7 @@ async def begin_create( resource_group_name: str, script_name: str, deployment_script: "_models.DeploymentScript", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentScript"]: """Creates a deployment script. @@ -118,8 +118,8 @@ async def begin_create( :type deployment_script: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.DeploymentScript :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentScript or the result of cls(response) @@ -177,7 +177,7 @@ async def update( resource_group_name: str, script_name: str, deployment_script: Optional["_models.DeploymentScriptUpdateParameter"] = None, - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": """Updates deployment script tags with specified values. @@ -246,7 +246,7 @@ async def get( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentScript": """Gets a deployment script with a given name. @@ -305,7 +305,7 @@ async def delete( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a deployment script. When operation completes, status code 200 returned without content. @@ -360,7 +360,7 @@ async def delete( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentScriptListResult"]: """Lists all deployment scripts for a given subscription. @@ -429,7 +429,7 @@ async def get_logs( self, resource_group_name: str, script_name: str, - **kwargs + **kwargs: Any ) -> "_models.ScriptLogsList": """Gets deployment script logs for a given deployment script name. @@ -489,7 +489,7 @@ async def get_logs_default( resource_group_name: str, script_name: str, tail: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.ScriptLog": """Gets deployment script logs for a given deployment script name. @@ -553,7 +553,7 @@ async def get_logs_default( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentScriptListResult"]: """Lists deployments scripts. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models.py index 3dfea412e24..e5405b15ba1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models.py @@ -159,7 +159,7 @@ class AzureCliScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -215,7 +215,7 @@ class AzureCliScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -334,7 +334,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] """ _validation = { @@ -349,7 +349,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, } def __init__( @@ -413,7 +413,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_cli_version: Required. Azure CLI module version to be used. :type az_cli_version: str """ @@ -441,7 +441,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_cli_version': {'key': 'azCliVersion', 'type': 'str'}, } @@ -514,7 +514,7 @@ class AzurePowerShellScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -570,7 +570,7 @@ class AzurePowerShellScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -653,7 +653,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_power_shell_version: Required. Azure PowerShell module version to be used. :type az_power_shell_version: str """ @@ -681,7 +681,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_power_shell_version': {'key': 'azPowerShellVersion', 'type': 'str'}, } @@ -866,7 +866,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -876,7 +876,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models_py3.py index c513794d3f7..b5cf071ee16 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/models/_models_py3.py @@ -168,7 +168,7 @@ class AzureCliScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -224,7 +224,7 @@ class AzureCliScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -368,7 +368,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] """ _validation = { @@ -383,7 +383,7 @@ class DeploymentScriptPropertiesBase(msrest.serialization.Model): 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, } def __init__( @@ -451,7 +451,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_cli_version: Required. Azure CLI module version to be used. :type az_cli_version: str """ @@ -479,7 +479,7 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_cli_version': {'key': 'azCliVersion', 'type': 'str'}, } @@ -565,7 +565,7 @@ class AzurePowerShellScript(DeploymentScript): :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param primary_script_uri: Uri for the script. This is the entry point for the external script. :type primary_script_uri: str :param supporting_script_uris: Supporting files for the external script. @@ -621,7 +621,7 @@ class AzurePowerShellScript(DeploymentScript): 'cleanup_preference': {'key': 'properties.cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'properties.outputs', 'type': '{str}'}, + 'outputs': {'key': 'properties.outputs', 'type': '{object}'}, 'primary_script_uri': {'key': 'properties.primaryScriptUri', 'type': 'str'}, 'supporting_script_uris': {'key': 'properties.supportingScriptUris', 'type': '[str]'}, 'script_content': {'key': 'properties.scriptContent', 'type': 'str'}, @@ -720,7 +720,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf :ivar status: Contains the results of script execution. :vartype status: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.ScriptStatus :ivar outputs: List of script outputs. - :vartype outputs: dict[str, str] + :vartype outputs: dict[str, any] :param az_power_shell_version: Required. Azure PowerShell module version to be used. :type az_power_shell_version: str """ @@ -748,7 +748,7 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf 'cleanup_preference': {'key': 'cleanupPreference', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'ScriptStatus'}, - 'outputs': {'key': 'outputs', 'type': '{str}'}, + 'outputs': {'key': 'outputs', 'type': '{object}'}, 'az_power_shell_version': {'key': 'azPowerShellVersion', 'type': 'str'}, } @@ -958,7 +958,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -968,7 +968,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/operations/_deployment_scripts_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/operations/_deployment_scripts_operations.py index 7cb95df0606..41beba8c8ee 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/operations/_deployment_scripts_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/operations/_deployment_scripts_operations.py @@ -124,8 +124,8 @@ def begin_create( :type deployment_script: ~azure.mgmt.resource.deploymentscripts.v2020_10_01.models.DeploymentScript :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentScript or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_operations_mixin.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_operations_mixin.py index b9fbae65c61..cbdfbf26135 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_operations_mixin.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_operations_mixin.py @@ -23,7 +23,7 @@ class FeatureClientOperationsMixin(object): def list_operations( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.OperationListResult"]: """Lists all of the available Microsoft.Features REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_metadata.json index 300d4d75b67..d7dec292e39 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_metadata.json @@ -111,7 +111,7 @@ }, "async": { "coroutine": false, - "signature": "def list_operations(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.OperationListResult\"]:\n", + "signature": "def list_operations(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OperationListResult\"]:\n", "doc": "\"\"\"Lists all of the available Microsoft.Features REST API operations.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OperationListResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resource.features.v2015_12_01.models.OperationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_feature_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_feature_client_operations.py index 84086940cf5..ddcb79c6221 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_feature_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_feature_client_operations.py @@ -23,7 +23,7 @@ class FeatureClientOperationsMixin: def list_operations( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Features REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_features_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_features_operations.py index aa7dd05d2fa..f5a83a23573 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_features_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/operations/_features_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.FeatureOperationsListResult"]: """Gets all the preview features that are available through AFEC for the subscription. @@ -110,7 +110,7 @@ async def get_next(next_link=None): def list( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.FeatureOperationsListResult"]: """Gets all the preview features in a provider namespace that are available through AFEC for the subscription. @@ -183,7 +183,7 @@ async def get( self, resource_provider_namespace: str, feature_name: str, - **kwargs + **kwargs: Any ) -> "_models.FeatureResult": """Gets the preview feature with the specified name. @@ -241,7 +241,7 @@ async def register( self, resource_provider_namespace: str, feature_name: str, - **kwargs + **kwargs: Any ) -> "_models.FeatureResult": """Registers the preview feature for the subscription. @@ -299,7 +299,7 @@ async def unregister( self, resource_provider_namespace: str, feature_name: str, - **kwargs + **kwargs: Any ) -> "_models.FeatureResult": """Unregisters the preview feature for the subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_operations.py index 43219e31b0f..1b9a6d0f78a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_resource_links_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_resource_links_operations.py index 4ce07f5eede..755c09877c0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_resource_links_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/operations/_resource_links_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def delete( self, link_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a resource link with the specified ID. @@ -96,7 +96,7 @@ async def create_or_update( self, link_id: str, parameters: "_models.ResourceLink", - **kwargs + **kwargs: Any ) -> "_models.ResourceLink": """Creates or updates a resource link between the specified resources. @@ -163,7 +163,7 @@ async def create_or_update( async def get( self, link_id: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceLink": """Gets a resource link with the specified ID. @@ -217,7 +217,7 @@ async def get( def list_at_subscription( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceLinkResult"]: """Gets all the linked resources for the subscription. @@ -290,7 +290,7 @@ def list_at_source_scope( self, scope: str, filter: Optional[str] = "atScope()", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceLinkResult"]: """Gets a list of resource links at and below the specified source scope. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py index 755a37f48f2..30c649dc63f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py @@ -96,7 +96,7 @@ class ResourceLink(msrest.serialization.Model): :ivar name: The name of the resource link. :vartype name: str :ivar type: The resource link object. - :vartype type: str + :vartype type: any :param properties: Properties for resource link. :type properties: ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties """ @@ -110,7 +110,7 @@ class ResourceLink(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py index 4a9f24d2e6a..30ed79eafad 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py @@ -109,7 +109,7 @@ class ResourceLink(msrest.serialization.Model): :ivar name: The name of the resource link. :vartype name: str :ivar type: The resource link object. - :vartype type: str + :vartype type: any :param properties: Properties for resource link. :type properties: ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties """ @@ -123,7 +123,7 @@ class ResourceLink(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/aio/operations/_management_locks_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/aio/operations/_management_locks_operations.py index 5c20fdd98ef..7c76b1233eb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/aio/operations/_management_locks_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/aio/operations/_management_locks_operations.py @@ -46,7 +46,7 @@ async def create_or_update_at_resource_group_level( resource_group_name: str, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Create or update a management lock at the resource group level. @@ -115,7 +115,7 @@ async def delete_at_resource_group_level( self, resource_group_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the management lock of a resource group. @@ -168,7 +168,7 @@ async def get_at_resource_group_level( self, resource_group_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Gets a management lock at the resource group level. @@ -231,7 +231,7 @@ async def create_or_update_at_resource_level( resource_name: str, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Create or update a management lock at the resource level or any level below resource. @@ -316,7 +316,7 @@ async def delete_at_resource_level( resource_type: str, resource_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the management lock of a resource or any level below resource. @@ -381,7 +381,7 @@ async def create_or_update_at_subscription_level( self, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Create or update a management lock at the subscription level. @@ -446,7 +446,7 @@ async def create_or_update_at_subscription_level( async def delete_at_subscription_level( self, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the management lock of a subscription. @@ -495,7 +495,7 @@ async def delete_at_subscription_level( async def get( self, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Gets the management lock of a scope. @@ -550,7 +550,7 @@ def list_at_resource_group_level( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks of a resource group. @@ -629,7 +629,7 @@ def list_at_resource_level( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks of a resource or any level below resource. @@ -715,7 +715,7 @@ async def get_next(next_link=None): def list_at_subscription_level( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks of a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_authorization_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_authorization_operations_operations.py index 6458adbb88a..053cbcd3ce1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_authorization_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_authorization_operations_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Authorization REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_management_locks_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_management_locks_operations.py index 27ec1b80b82..62139d55fa3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_management_locks_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_management_locks_operations.py @@ -46,7 +46,7 @@ async def create_or_update_at_resource_group_level( resource_group_name: str, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Creates or updates a management lock at the resource group level. @@ -121,7 +121,7 @@ async def delete_at_resource_group_level( self, resource_group_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a management lock at the resource group level. @@ -178,7 +178,7 @@ async def get_at_resource_group_level( self, resource_group_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Gets a management lock at the resource group level. @@ -237,7 +237,7 @@ async def create_or_update_by_scope( scope: str, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Create or update a management lock by scope. @@ -309,7 +309,7 @@ async def delete_by_scope( self, scope: str, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a management lock by scope. @@ -361,7 +361,7 @@ async def get_by_scope( self, scope: str, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Get a management lock by scope. @@ -423,7 +423,7 @@ async def create_or_update_at_resource_level( resource_name: str, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Creates or updates a management lock at the resource level or any level below the resource. @@ -514,7 +514,7 @@ async def delete_at_resource_level( resource_type: str, resource_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the management lock of a resource or any level below the resource. @@ -589,7 +589,7 @@ async def get_at_resource_level( resource_type: str, resource_name: str, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Get the management lock of a resource or any level below resource. @@ -660,7 +660,7 @@ async def create_or_update_at_subscription_level( self, lock_name: str, parameters: "_models.ManagementLockObject", - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Creates or updates a management lock at the subscription level. @@ -731,7 +731,7 @@ async def create_or_update_at_subscription_level( async def delete_at_subscription_level( self, lock_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the management lock at the subscription level. @@ -784,7 +784,7 @@ async def delete_at_subscription_level( async def get_at_subscription_level( self, lock_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagementLockObject": """Gets a management lock at the subscription level. @@ -839,7 +839,7 @@ def list_at_resource_group_level( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks for a resource group. @@ -918,7 +918,7 @@ def list_at_resource_level( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks for a resource or any level below resource. @@ -1005,7 +1005,7 @@ async def get_next(next_link=None): def list_at_subscription_level( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks for a subscription. @@ -1077,7 +1077,7 @@ def list_by_scope( self, scope: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagementLockListResult"]: """Gets all the management locks for a scope. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_metadata.json index ac5baceeeb3..cbc4f9791d8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_metadata.json @@ -112,7 +112,7 @@ }, "async": { "coroutine": false, - "signature": "def list_operations(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.OperationListResult\"]:\n", + "signature": "def list_operations(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OperationListResult\"]:\n", "doc": "\"\"\"Lists all of the available Microsoft.Solutions REST API operations.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OperationListResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resource.managedapplications.models.OperationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_client_operations.py index 687395592a7..79f939e8e84 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_client_operations.py @@ -23,7 +23,7 @@ class ApplicationClientOperationsMixin: def list_operations( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Solutions REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_definitions_operations.py index 406ac923a18..c857b105d5f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_application_definitions_operations.py @@ -47,7 +47,7 @@ async def get( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ApplicationDefinition"]: """Gets the managed application definition. @@ -108,7 +108,7 @@ async def _delete_initial( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -153,7 +153,7 @@ async def begin_delete( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the managed application definition. @@ -163,8 +163,8 @@ async def begin_delete( :type application_definition_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -218,7 +218,7 @@ async def _create_or_update_initial( resource_group_name: str, application_definition_name: str, parameters: "_models.ApplicationDefinition", - **kwargs + **kwargs: Any ) -> "_models.ApplicationDefinition": cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationDefinition"] error_map = { @@ -276,7 +276,7 @@ async def begin_create_or_update( resource_group_name: str, application_definition_name: str, parameters: "_models.ApplicationDefinition", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ApplicationDefinition"]: """Creates a new managed application definition. @@ -289,8 +289,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.managedapplications.models.ApplicationDefinition :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ApplicationDefinition or the result of cls(response) @@ -346,7 +346,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ApplicationDefinitionListResult"]: """Lists the managed application definitions in a resource group. @@ -418,7 +418,7 @@ async def get_by_id( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ApplicationDefinition"]: """Gets the managed application definition. @@ -479,7 +479,7 @@ async def _delete_by_id_initial( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -524,7 +524,7 @@ async def begin_delete_by_id( self, resource_group_name: str, application_definition_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the managed application definition. @@ -534,8 +534,8 @@ async def begin_delete_by_id( :type application_definition_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -589,7 +589,7 @@ async def _create_or_update_by_id_initial( resource_group_name: str, application_definition_name: str, parameters: "_models.ApplicationDefinition", - **kwargs + **kwargs: Any ) -> "_models.ApplicationDefinition": cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationDefinition"] error_map = { @@ -647,7 +647,7 @@ async def begin_create_or_update_by_id( resource_group_name: str, application_definition_name: str, parameters: "_models.ApplicationDefinition", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ApplicationDefinition"]: """Creates a new managed application definition. @@ -660,8 +660,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.managedapplications.models.ApplicationDefinition :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ApplicationDefinition or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_applications_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_applications_operations.py index f3a57f34b65..5f14cf1cea5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_applications_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/operations/_applications_operations.py @@ -47,7 +47,7 @@ async def get( self, resource_group_name: str, application_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.Application"]: """Gets the managed application. @@ -108,7 +108,7 @@ async def _delete_initial( self, resource_group_name: str, application_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -153,7 +153,7 @@ async def begin_delete( self, resource_group_name: str, application_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the managed application. @@ -163,8 +163,8 @@ async def begin_delete( :type application_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -218,7 +218,7 @@ async def _create_or_update_initial( resource_group_name: str, application_name: str, parameters: "_models.Application", - **kwargs + **kwargs: Any ) -> "_models.Application": cls = kwargs.pop('cls', None) # type: ClsType["_models.Application"] error_map = { @@ -276,7 +276,7 @@ async def begin_create_or_update( resource_group_name: str, application_name: str, parameters: "_models.Application", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Application"]: """Creates a new managed application. @@ -288,8 +288,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.managedapplications.models.Application :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Application or the result of cls(response) @@ -347,7 +347,7 @@ async def update( resource_group_name: str, application_name: str, parameters: Optional["_models.ApplicationPatchable"] = None, - **kwargs + **kwargs: Any ) -> "_models.Application": """Updates an existing managed application. The only value that can be updated via PATCH currently is the tags. @@ -416,7 +416,7 @@ async def update( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ApplicationListResult"]: """Gets all the applications within a resource group. @@ -486,7 +486,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ApplicationListResult"]: """Gets all the applications within a subscription. @@ -554,7 +554,7 @@ async def get_next(next_link=None): async def get_by_id( self, application_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.Application"]: """Gets the managed application. @@ -612,7 +612,7 @@ async def get_by_id( async def _delete_by_id_initial( self, application_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -654,7 +654,7 @@ async def _delete_by_id_initial( async def begin_delete_by_id( self, application_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the managed application. @@ -664,8 +664,8 @@ async def begin_delete_by_id( :type application_id: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -715,7 +715,7 @@ async def _create_or_update_by_id_initial( self, application_id: str, parameters: "_models.Application", - **kwargs + **kwargs: Any ) -> "_models.Application": cls = kwargs.pop('cls', None) # type: ClsType["_models.Application"] error_map = { @@ -770,7 +770,7 @@ async def begin_create_or_update_by_id( self, application_id: str, parameters: "_models.Application", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Application"]: """Creates a new managed application. @@ -782,8 +782,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.managedapplications.models.Application :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Application or the result of cls(response) @@ -837,7 +837,7 @@ async def update_by_id( self, application_id: str, parameters: Optional["_models.Application"] = None, - **kwargs + **kwargs: Any ) -> "_models.Application": """Updates an existing managed application. The only value that can be updated via PATCH currently is the tags. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py index bfb3c06f646..61565808b77 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py @@ -138,9 +138,9 @@ class Application(GenericResource): :type application_definition_id: str :param parameters: Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :ivar outputs: Name and value pairs that define the managed application outputs. - :vartype outputs: str + :vartype outputs: any :ivar provisioning_state: The managed application provisioning state. Possible values include: "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Updating". @@ -171,8 +171,8 @@ class Application(GenericResource): 'kind': {'key': 'kind', 'type': 'str'}, 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, - 'outputs': {'key': 'properties.outputs', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -261,10 +261,10 @@ class ApplicationDefinition(GenericResource): :type package_file_uri: str :param main_template: The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. - :type main_template: str + :type main_template: any :param create_ui_definition: The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. - :type create_ui_definition: str + :type create_ui_definition: any """ _validation = { @@ -291,8 +291,8 @@ class ApplicationDefinition(GenericResource): 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'str'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, } def __init__( @@ -390,9 +390,9 @@ class ApplicationPatchable(GenericResource): :type application_definition_id: str :param parameters: Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :ivar outputs: Name and value pairs that define the managed application outputs. - :vartype outputs: str + :vartype outputs: any :ivar provisioning_state: The managed application provisioning state. Possible values include: "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Updating". @@ -422,8 +422,8 @@ class ApplicationPatchable(GenericResource): 'kind': {'key': 'kind', 'type': 'str'}, 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, - 'outputs': {'key': 'properties.outputs', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py index 9ab92fb9efc..0cc531b3c60 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -151,9 +151,9 @@ class Application(GenericResource): :type application_definition_id: str :param parameters: Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :ivar outputs: Name and value pairs that define the managed application outputs. - :vartype outputs: str + :vartype outputs: any :ivar provisioning_state: The managed application provisioning state. Possible values include: "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Updating". @@ -184,8 +184,8 @@ class Application(GenericResource): 'kind': {'key': 'kind', 'type': 'str'}, 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, - 'outputs': {'key': 'properties.outputs', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -201,7 +201,7 @@ def __init__( identity: Optional["Identity"] = None, plan: Optional["Plan"] = None, application_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(Application, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) @@ -289,10 +289,10 @@ class ApplicationDefinition(GenericResource): :type package_file_uri: str :param main_template: The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. - :type main_template: str + :type main_template: any :param create_ui_definition: The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. - :type create_ui_definition: str + :type create_ui_definition: any """ _validation = { @@ -319,8 +319,8 @@ class ApplicationDefinition(GenericResource): 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'str'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, } def __init__( @@ -338,8 +338,8 @@ def __init__( artifacts: Optional[List["ApplicationArtifact"]] = None, description: Optional[str] = None, package_file_uri: Optional[str] = None, - main_template: Optional[str] = None, - create_ui_definition: Optional[str] = None, + main_template: Optional[Any] = None, + create_ui_definition: Optional[Any] = None, **kwargs ): super(ApplicationDefinition, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) @@ -439,9 +439,9 @@ class ApplicationPatchable(GenericResource): :type application_definition_id: str :param parameters: Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :ivar outputs: Name and value pairs that define the managed application outputs. - :vartype outputs: str + :vartype outputs: any :ivar provisioning_state: The managed application provisioning state. Possible values include: "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Updating". @@ -471,8 +471,8 @@ class ApplicationPatchable(GenericResource): 'kind': {'key': 'kind', 'type': 'str'}, 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, - 'outputs': {'key': 'properties.outputs', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -488,7 +488,7 @@ def __init__( kind: Optional[str] = None, managed_resource_group_id: Optional[str] = None, application_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(ApplicationPatchable, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py index 3465d11ba75..96e0612e8fd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py @@ -170,8 +170,8 @@ def begin_delete( :type application_definition_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -298,8 +298,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.managedapplications.models.ApplicationDefinition :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ApplicationDefinition or the result of cls(response) @@ -547,8 +547,8 @@ def begin_delete_by_id( :type application_definition_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -675,8 +675,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.managedapplications.models.ApplicationDefinition :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ApplicationDefinition or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py index 200c1016e28..8ea24c2e4ba 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py @@ -170,8 +170,8 @@ def begin_delete( :type application_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -297,8 +297,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.managedapplications.models.Application :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Application or the result of cls(response) @@ -679,8 +679,8 @@ def begin_delete_by_id( :type application_id: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -799,8 +799,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.managedapplications.models.Application :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Application or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_assignments_operations.py index 8131ac6da22..f4bd0ddf1ec 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment. @@ -103,7 +103,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment. @@ -170,7 +170,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment. @@ -227,7 +227,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for the resource group. @@ -306,7 +306,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for a resource. @@ -393,7 +393,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets all the policy assignments for a subscription. @@ -464,7 +464,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment by ID. @@ -525,7 +525,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment by ID. @@ -594,7 +594,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_definitions_operations.py index 31e67ce125f..1d20c16ea1f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition. @@ -106,7 +106,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition. @@ -155,7 +155,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition. @@ -209,7 +209,7 @@ async def get( def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py index 7ad9879a794..fcb721f90b9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py @@ -89,7 +89,7 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any """ _validation = { @@ -102,7 +102,7 @@ class PolicyDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py index 408afa2db19..8a4027c8b4d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union import msrest.serialization @@ -103,7 +103,7 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any """ _validation = { @@ -116,7 +116,7 @@ class PolicyDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, } def __init__( @@ -126,7 +126,7 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, + policy_rule: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_assignments_operations.py index 570bc7ac856..01cf1f8dfb6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment. @@ -103,7 +103,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment. @@ -170,7 +170,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment. @@ -227,7 +227,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for the resource group. @@ -306,7 +306,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for a resource. @@ -393,7 +393,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets all the policy assignments for a subscription. @@ -464,7 +464,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment by ID. @@ -525,7 +525,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment by ID. @@ -594,7 +594,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_definitions_operations.py index 140aafef0f6..5552f093393 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition. @@ -106,7 +106,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition. @@ -155,7 +155,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition. @@ -209,7 +209,7 @@ async def get( def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py index 517a9d7fa73..b588d470c39 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py @@ -89,7 +89,7 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any """ _validation = { @@ -102,7 +102,7 @@ class PolicyDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py index 1c54e0caa8e..9e4cbc48be9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union import msrest.serialization @@ -103,7 +103,7 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any """ _validation = { @@ -116,7 +116,7 @@ class PolicyDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, } def __init__( @@ -126,7 +126,7 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, + policy_rule: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_assignments_operations.py index c3ed63f09a6..b0de69c7611 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -105,7 +105,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment. @@ -172,7 +172,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment. @@ -229,7 +229,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for the resource group. @@ -308,7 +308,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for a resource. @@ -395,7 +395,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets all the policy assignments for a subscription. @@ -466,7 +466,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment by ID. @@ -527,7 +527,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment by ID. @@ -596,7 +596,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_definitions_operations.py index 57877e70786..1ca5d755f68 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition. @@ -106,7 +106,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition. @@ -155,7 +155,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition. @@ -209,7 +209,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the built in policy definition. @@ -264,7 +264,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition at management group level. @@ -328,7 +328,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition at management group level. @@ -380,7 +380,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition at management group level. @@ -435,7 +435,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription. @@ -501,7 +501,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the built in policy definitions. @@ -564,7 +564,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription at management group level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py index 26ab7756b3e..d52de85cc82 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py @@ -27,7 +27,7 @@ class PolicyAssignment(msrest.serialization.Model): :param scope: The scope for the policy assignment. :type scope: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str """ @@ -43,7 +43,7 @@ class PolicyAssignment(msrest.serialization.Model): 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, } @@ -105,11 +105,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -124,9 +124,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py index 5700c33f0a6..b88e39b3636 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union import msrest.serialization @@ -31,7 +31,7 @@ class PolicyAssignment(msrest.serialization.Model): :param scope: The scope for the policy assignment. :type scope: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str """ @@ -47,7 +47,7 @@ class PolicyAssignment(msrest.serialization.Model): 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, } @@ -59,7 +59,7 @@ def __init__( display_name: Optional[str] = None, policy_definition_id: Optional[str] = None, scope: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, **kwargs ): @@ -120,11 +120,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -139,9 +139,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -151,9 +151,9 @@ def __init__( mode: Optional[Union[str, "PolicyMode"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_assignments_operations.py index a7decebc5e6..ab41d880dfd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -106,7 +106,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment. @@ -174,7 +174,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment. @@ -232,7 +232,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for the resource group. @@ -312,7 +312,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets policy assignments for a resource. @@ -400,7 +400,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Gets all the policy assignments for a subscription. @@ -472,7 +472,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Deletes a policy assignment by ID. @@ -534,7 +534,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates a policy assignment by ID. @@ -604,7 +604,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Gets a policy assignment by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_definitions_operations.py index 7bfcc79a816..3f2f805d727 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition. @@ -106,7 +106,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition. @@ -155,7 +155,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition. @@ -209,7 +209,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the built in policy definition. @@ -264,7 +264,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition at management group level. @@ -328,7 +328,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition at management group level. @@ -380,7 +380,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Gets the policy definition at management group level. @@ -435,7 +435,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription. @@ -501,7 +501,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the built in policy definitions. @@ -564,7 +564,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Gets all the policy definitions for a subscription at management group level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_set_definitions_operations.py index b91b18e3a9e..f0755eac4c9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -111,7 +111,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -163,7 +163,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Gets the policy set definition. @@ -218,7 +218,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Gets the built in policy set definition. @@ -271,7 +271,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Gets all the policy set definitions for a subscription. @@ -338,7 +338,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Gets all the built in policy set definitions. @@ -404,7 +404,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition at management group level. @@ -473,7 +473,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition at management group level. @@ -528,7 +528,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Gets the policy set definition at management group level. @@ -585,7 +585,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Gets all the policy set definitions for a subscription at management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py index 0bc3e41c325..2ce6f3740a6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py @@ -59,11 +59,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -81,9 +81,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -147,11 +147,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -166,9 +166,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -216,12 +216,12 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( @@ -252,10 +252,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] @@ -274,8 +274,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py index 4b0cb125564..a846efcf063 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -67,11 +67,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -89,9 +89,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -102,9 +102,9 @@ def __init__( policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(PolicyAssignment, self).__init__(**kwargs) @@ -167,11 +167,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -186,9 +186,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -198,9 +198,9 @@ def __init__( mode: Optional[Union[str, "PolicyMode"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) @@ -247,19 +247,19 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( self, *, policy_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinitionReference, self).__init__(**kwargs) @@ -286,10 +286,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] @@ -308,8 +308,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } @@ -319,8 +319,8 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_assignments_operations.py index 5de77a62473..f38b7b785ef 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -114,7 +114,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -187,7 +187,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -252,7 +252,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -344,7 +344,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -457,7 +457,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -541,7 +541,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -607,7 +607,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -680,7 +680,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_definitions_operations.py index f7e4014b60a..7dae0843da2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -160,7 +160,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -216,7 +216,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -273,7 +273,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -340,7 +340,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -394,7 +394,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -452,7 +452,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -520,7 +520,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -585,7 +585,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_set_definitions_operations.py index 9a0bc91c6a0..cd114a495b4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -114,7 +114,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -168,7 +168,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -226,7 +226,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -281,7 +281,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -350,7 +350,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -418,7 +418,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -490,7 +490,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -548,7 +548,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -608,7 +608,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py index f4de200638b..84a5e6886a4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py @@ -60,11 +60,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -82,9 +82,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -150,11 +150,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -171,9 +171,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -222,12 +222,12 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( @@ -258,10 +258,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] @@ -280,8 +280,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py index ec256ec63dd..82c1ea315fe 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -68,11 +68,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -90,9 +90,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -103,9 +103,9 @@ def __init__( policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(PolicyAssignment, self).__init__(**kwargs) @@ -170,11 +170,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -191,9 +191,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -203,9 +203,9 @@ def __init__( mode: Optional[Union[str, "PolicyMode"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) @@ -253,19 +253,19 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( self, *, policy_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinitionReference, self).__init__(**kwargs) @@ -292,10 +292,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] @@ -314,8 +314,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } @@ -325,8 +325,8 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_assignments_operations.py index 2de7446abc0..4f36d69fe2d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -114,7 +114,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -187,7 +187,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -252,7 +252,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -344,7 +344,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -457,7 +457,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -541,7 +541,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -607,7 +607,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -680,7 +680,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_definitions_operations.py index 59d0c856b51..641ba9a4778 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -160,7 +160,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -216,7 +216,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -273,7 +273,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -340,7 +340,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -394,7 +394,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -452,7 +452,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -520,7 +520,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -585,7 +585,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_set_definitions_operations.py index 11090fa7fc1..40965f0d920 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -114,7 +114,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -168,7 +168,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -226,7 +226,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -281,7 +281,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -350,7 +350,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -418,7 +418,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -490,7 +490,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -548,7 +548,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -608,7 +608,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py index ad5dcb935f2..f05b3d31fcd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py @@ -99,11 +99,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -123,9 +123,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -193,11 +193,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -214,9 +214,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -265,12 +265,12 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( @@ -301,10 +301,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] @@ -323,8 +323,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py index aa9674eca55..6a870ebcec5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -109,11 +109,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -133,9 +133,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -148,9 +148,9 @@ def __init__( policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(PolicyAssignment, self).__init__(**kwargs) @@ -217,11 +217,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -238,9 +238,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -250,9 +250,9 @@ def __init__( mode: Optional[Union[str, "PolicyMode"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) @@ -300,19 +300,19 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( self, *, policy_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinitionReference, self).__init__(**kwargs) @@ -339,10 +339,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] @@ -361,8 +361,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } @@ -372,8 +372,8 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_assignments_operations.py index 090ff00edec..d4392d5938b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -114,7 +114,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -187,7 +187,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -252,7 +252,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -344,7 +344,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -457,7 +457,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -541,7 +541,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -607,7 +607,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -680,7 +680,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_definitions_operations.py index ef72c9e8cf0..7a359b11feb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -160,7 +160,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -216,7 +216,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -273,7 +273,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -340,7 +340,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -394,7 +394,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -452,7 +452,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -520,7 +520,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -585,7 +585,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_set_definitions_operations.py index de85a62ff5e..4dc6ccdf961 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -114,7 +114,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -168,7 +168,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -226,7 +226,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -281,7 +281,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -350,7 +350,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -418,7 +418,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -490,7 +490,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -548,7 +548,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -608,7 +608,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models.py index d315f146a43..d65ebe1d887 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models.py @@ -99,11 +99,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -123,9 +123,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -193,11 +193,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -214,9 +214,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -265,12 +265,12 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( @@ -301,10 +301,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2019_01_01.models.PolicyDefinitionReference] @@ -323,8 +323,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models_py3.py index 5e7c9b168fe..ba254bf17eb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_01_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -109,11 +109,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any """ _validation = { @@ -133,9 +133,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -148,9 +148,9 @@ def __init__( policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(PolicyAssignment, self).__init__(**kwargs) @@ -217,11 +217,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -238,9 +238,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -250,9 +250,9 @@ def __init__( mode: Optional[str] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) @@ -300,19 +300,19 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( self, *, policy_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinitionReference, self).__init__(**kwargs) @@ -339,10 +339,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2019_01_01.models.PolicyDefinitionReference] @@ -361,8 +361,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } @@ -372,8 +372,8 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_assignments_operations.py index b78d5315d47..2e973367bac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -114,7 +114,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -187,7 +187,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -252,7 +252,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -344,7 +344,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -457,7 +457,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -541,7 +541,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -607,7 +607,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -680,7 +680,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_definitions_operations.py index 4bef5e7e2be..ceb47eb0102 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -160,7 +160,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -216,7 +216,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -273,7 +273,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -340,7 +340,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -394,7 +394,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -452,7 +452,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -520,7 +520,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -585,7 +585,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_set_definitions_operations.py index 66223428bf5..662da992341 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -114,7 +114,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -168,7 +168,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -226,7 +226,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -281,7 +281,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -350,7 +350,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -418,7 +418,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -490,7 +490,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -548,7 +548,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -608,7 +608,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models.py index 91ea0ae9a74..291aaf61dfa 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models.py @@ -99,11 +99,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2019_06_01.models.EnforcementMode @@ -126,9 +126,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, } @@ -198,11 +198,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -219,9 +219,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -270,12 +270,12 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( @@ -306,10 +306,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2019_06_01.models.PolicyDefinitionReference] @@ -328,8 +328,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models_py3.py index c8550b0e126..967a978184b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_06_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import List, Optional, Union +from typing import Any, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -109,11 +109,11 @@ class PolicyAssignment(msrest.serialization.Model): :param not_scopes: The policy's excluded scopes. :type not_scopes: list[str] :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any :param description: This message will be part of response in case of policy violation. :type description: str :param metadata: The policy assignment metadata. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2019_06_01.models.EnforcementMode @@ -136,9 +136,9 @@ class PolicyAssignment(msrest.serialization.Model): 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, 'scope': {'key': 'properties.scope', 'type': 'str'}, 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, } @@ -152,9 +152,9 @@ def __init__( policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, enforcement_mode: Optional[Union[str, "EnforcementMode"]] = None, **kwargs ): @@ -223,11 +223,11 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. - :type metadata: str + :type metadata: any :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _validation = { @@ -244,9 +244,9 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, } def __init__( @@ -256,9 +256,9 @@ def __init__( mode: Optional[str] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinition, self).__init__(**kwargs) @@ -306,19 +306,19 @@ class PolicyDefinitionReference(msrest.serialization.Model): :param policy_definition_id: The ID of the policy definition or policy set definition. :type policy_definition_id: str :param parameters: Required if a parameter is used in policy rule. - :type parameters: str + :type parameters: any """ _attribute_map = { 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, } def __init__( self, *, policy_definition_id: Optional[str] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, **kwargs ): super(PolicyDefinitionReference, self).__init__(**kwargs) @@ -345,10 +345,10 @@ class PolicySetDefinition(msrest.serialization.Model): :param description: The policy set definition description. :type description: str :param metadata: The policy set definition metadata. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. - :type parameters: str + :type parameters: any :param policy_definitions: An array of policy definition references. :type policy_definitions: list[~azure.mgmt.resource.policy.v2019_06_01.models.PolicyDefinitionReference] @@ -367,8 +367,8 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, } @@ -378,8 +378,8 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, - parameters: Optional[str] = None, + metadata: Optional[Any] = None, + parameters: Optional[Any] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_assignments_operations.py index fde45942622..557bf3dfa85 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -113,7 +113,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -185,7 +185,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -249,7 +249,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -340,7 +340,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -453,7 +453,7 @@ def list_for_management_group( self, management_group_id: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a management group. @@ -534,7 +534,7 @@ async def get_next(next_link=None): def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -617,7 +617,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -682,7 +682,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -754,7 +754,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_definitions_operations.py index c003da20662..9672916190e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -162,7 +162,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -218,7 +218,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -275,7 +275,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -342,7 +342,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -398,7 +398,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -456,7 +456,7 @@ async def get_at_management_group( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -524,7 +524,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -589,7 +589,7 @@ async def get_next(next_link=None): def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_set_definitions_operations.py index 2e7ca931967..c397cc358cb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -113,7 +113,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -166,7 +166,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -223,7 +223,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -277,7 +277,7 @@ async def get_built_in( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -345,7 +345,7 @@ async def get_next(next_link=None): def list_built_in( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -412,7 +412,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -483,7 +483,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -540,7 +540,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -599,7 +599,7 @@ async def get_at_management_group( def list_by_management_group( self, management_group_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models.py index 761fdf810ec..3fa69688597 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models.py @@ -17,7 +17,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -27,7 +27,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -127,9 +127,9 @@ class ParameterDefinitionsValue(msrest.serialization.Model): "Object", "Boolean", "Integer", "Float", "DateTime". :type type: str or ~azure.mgmt.resource.policy.v2019_09_01.models.ParameterType :param allowed_values: The allowed values for the parameter. - :type allowed_values: list[str] + :type allowed_values: list[any] :param default_value: The default value for the parameter if no value is provided. - :type default_value: str + :type default_value: any :param metadata: General metadata for the parameter. :type metadata: ~azure.mgmt.resource.policy.v2019_09_01.models.ParameterDefinitionsValueMetadata @@ -137,8 +137,8 @@ class ParameterDefinitionsValue(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'ParameterDefinitionsValueMetadata'}, } @@ -158,7 +158,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, str] + :type additional_properties: dict[str, any] :param display_name: The display name for the parameter. :type display_name: str :param description: The description of the parameter. @@ -166,7 +166,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, + 'additional_properties': {'key': '', 'type': '{object}'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, } @@ -185,11 +185,11 @@ class ParameterValuesValue(msrest.serialization.Model): """The value of a parameter. :param value: The value of the parameter. - :type value: str + :type value: any """ _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, } def __init__( @@ -235,7 +235,7 @@ class PolicyAssignment(msrest.serialization.Model): :type description: str :param metadata: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2019_09_01.models.EnforcementMode @@ -260,7 +260,7 @@ class PolicyAssignment(msrest.serialization.Model): 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterValuesValue}'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, } @@ -330,10 +330,10 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. :type parameters: dict[str, @@ -354,8 +354,8 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, } @@ -502,7 +502,7 @@ class PolicySetDefinition(msrest.serialization.Model): :type description: str :param metadata: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. :type parameters: dict[str, @@ -529,7 +529,7 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, 'policy_definition_groups': {'key': 'properties.policyDefinitionGroups', 'type': '[PolicyDefinitionGroup]'}, diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models_py3.py index 187fce8c58a..4844d274e0a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -21,7 +21,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -31,7 +31,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -133,9 +133,9 @@ class ParameterDefinitionsValue(msrest.serialization.Model): "Object", "Boolean", "Integer", "Float", "DateTime". :type type: str or ~azure.mgmt.resource.policy.v2019_09_01.models.ParameterType :param allowed_values: The allowed values for the parameter. - :type allowed_values: list[str] + :type allowed_values: list[any] :param default_value: The default value for the parameter if no value is provided. - :type default_value: str + :type default_value: any :param metadata: General metadata for the parameter. :type metadata: ~azure.mgmt.resource.policy.v2019_09_01.models.ParameterDefinitionsValueMetadata @@ -143,8 +143,8 @@ class ParameterDefinitionsValue(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'ParameterDefinitionsValueMetadata'}, } @@ -152,8 +152,8 @@ def __init__( self, *, type: Optional[Union[str, "ParameterType"]] = None, - allowed_values: Optional[List[str]] = None, - default_value: Optional[str] = None, + allowed_values: Optional[List[Any]] = None, + default_value: Optional[Any] = None, metadata: Optional["ParameterDefinitionsValueMetadata"] = None, **kwargs ): @@ -169,7 +169,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, str] + :type additional_properties: dict[str, any] :param display_name: The display name for the parameter. :type display_name: str :param description: The description of the parameter. @@ -177,7 +177,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, + 'additional_properties': {'key': '', 'type': '{object}'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, } @@ -185,7 +185,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, str]] = None, + additional_properties: Optional[Dict[str, Any]] = None, display_name: Optional[str] = None, description: Optional[str] = None, **kwargs @@ -200,17 +200,17 @@ class ParameterValuesValue(msrest.serialization.Model): """The value of a parameter. :param value: The value of the parameter. - :type value: str + :type value: any """ _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, } def __init__( self, *, - value: Optional[str] = None, + value: Optional[Any] = None, **kwargs ): super(ParameterValuesValue, self).__init__(**kwargs) @@ -252,7 +252,7 @@ class PolicyAssignment(msrest.serialization.Model): :type description: str :param metadata: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2019_09_01.models.EnforcementMode @@ -277,7 +277,7 @@ class PolicyAssignment(msrest.serialization.Model): 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterValuesValue}'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, } @@ -293,7 +293,7 @@ def __init__( not_scopes: Optional[List[str]] = None, parameters: Optional[Dict[str, "ParameterValuesValue"]] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, enforcement_mode: Optional[Union[str, "EnforcementMode"]] = None, **kwargs ): @@ -362,10 +362,10 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. :type parameters: dict[str, @@ -386,8 +386,8 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, } @@ -398,8 +398,8 @@ def __init__( mode: Optional[str] = None, display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, parameters: Optional[Dict[str, "ParameterDefinitionsValue"]] = None, **kwargs ): @@ -556,7 +556,7 @@ class PolicySetDefinition(msrest.serialization.Model): :type description: str :param metadata: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. :type parameters: dict[str, @@ -583,7 +583,7 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, 'policy_definition_groups': {'key': 'properties.policyDefinitionGroups', 'type': '[PolicyDefinitionGroup]'}, @@ -595,7 +595,7 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, parameters: Optional[Dict[str, "ParameterDefinitionsValue"]] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, policy_definition_groups: Optional[List["PolicyDefinitionGroup"]] = None, diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_data_policy_manifests_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_data_policy_manifests_operations.py index a5a1bc94f56..28f9ce4fc02 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_data_policy_manifests_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_data_policy_manifests_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def get_by_policy_mode( self, policy_mode: str, - **kwargs + **kwargs: Any ) -> "_models.DataPolicyManifest": """Retrieves a data policy manifest. @@ -99,7 +99,7 @@ async def get_by_policy_mode( def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DataPolicyManifestListResult"]: """Retrieves data policy manifests. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_assignments_operations.py index 435acbf808a..3ebe2e2f092 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_assignments_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -113,7 +113,7 @@ async def create( scope: str, policy_assignment_name: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -185,7 +185,7 @@ async def get( self, scope: str, policy_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves a policy assignment. @@ -250,7 +250,7 @@ def list_for_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource group. @@ -355,7 +355,7 @@ def list_for_resource( resource_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a resource. @@ -481,7 +481,7 @@ def list_for_management_group( management_group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a management group. @@ -576,7 +576,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyAssignmentListResult"]: """Retrieves all policy assignments that apply to a subscription. @@ -671,7 +671,7 @@ async def get_next(next_link=None): async def delete_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.PolicyAssignment"]: """Deletes a policy assignment. @@ -736,7 +736,7 @@ async def create_by_id( self, policy_assignment_id: str, parameters: "_models.PolicyAssignment", - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Creates or updates a policy assignment. @@ -808,7 +808,7 @@ async def create_by_id( async def get_by_id( self, policy_assignment_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyAssignment": """Retrieves the policy assignment with the given ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_definitions_operations.py index 7aa99dd3144..5ce1f9bac12 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_definition_name: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a subscription. @@ -109,7 +109,7 @@ async def create_or_update( async def delete( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a subscription. @@ -162,7 +162,7 @@ async def delete( async def get( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a policy definition in a subscription. @@ -218,7 +218,7 @@ async def get( async def get_built_in( self, policy_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieves a built-in policy definition. @@ -275,7 +275,7 @@ async def create_or_update_at_management_group( policy_definition_name: str, management_group_id: str, parameters: "_models.PolicyDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Creates or updates a policy definition in a management group. @@ -342,7 +342,7 @@ async def delete_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy definition in a management group. @@ -398,7 +398,7 @@ async def get_at_management_group( self, policy_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyDefinition": """Retrieve a policy definition in a management group. @@ -458,7 +458,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieves policy definitions in a subscription. @@ -553,7 +553,7 @@ def list_built_in( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve built-in policy definitions. @@ -640,7 +640,7 @@ def list_by_management_group( management_group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyDefinitionListResult"]: """Retrieve policy definitions in a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_exemptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_exemptions_operations.py index 2c85ae4b87c..cfbe58839bb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_exemptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_exemptions_operations.py @@ -45,7 +45,7 @@ async def delete( self, scope: str, policy_exemption_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy exemption. @@ -108,7 +108,7 @@ async def create_or_update( scope: str, policy_exemption_name: str, parameters: "_models.PolicyExemption", - **kwargs + **kwargs: Any ) -> "_models.PolicyExemption": """Creates or updates a policy exemption. @@ -185,7 +185,7 @@ async def get( self, scope: str, policy_exemption_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicyExemption": """Retrieves a policy exemption. @@ -248,7 +248,7 @@ async def get( def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyExemptionListResult"]: """Retrieves all policy exemptions that apply to a subscription. @@ -338,7 +338,7 @@ def list_for_resource_group( self, resource_group_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyExemptionListResult"]: """Retrieves all policy exemptions that apply to a resource group. @@ -435,7 +435,7 @@ def list_for_resource( resource_type: str, resource_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyExemptionListResult"]: """Retrieves all policy exemptions that apply to a resource. @@ -554,7 +554,7 @@ def list_for_management_group( self, management_group_id: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicyExemptionListResult"]: """Retrieves all policy exemptions that apply to a management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_set_definitions_operations.py index 8bf4864ac19..dcc59547af6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/aio/operations/_policy_set_definitions_operations.py @@ -45,7 +45,7 @@ async def create_or_update( self, policy_set_definition_name: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -113,7 +113,7 @@ async def create_or_update( async def delete( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -166,7 +166,7 @@ async def delete( async def get( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -223,7 +223,7 @@ async def get( async def get_built_in( self, policy_set_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a built in policy set definition. @@ -279,7 +279,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves the policy set definitions for a subscription. @@ -374,7 +374,7 @@ def list_built_in( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves built-in policy set definitions. @@ -459,7 +459,7 @@ async def create_or_update_at_management_group( policy_set_definition_name: str, management_group_id: str, parameters: "_models.PolicySetDefinition", - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Creates or updates a policy set definition. @@ -530,7 +530,7 @@ async def delete_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a policy set definition. @@ -587,7 +587,7 @@ async def get_at_management_group( self, policy_set_definition_name: str, management_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.PolicySetDefinition": """Retrieves a policy set definition. @@ -648,7 +648,7 @@ def list_by_management_group( management_group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PolicySetDefinitionListResult"]: """Retrieves all policy set definitions in management group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models.py index 4fa622dc986..fc891799e0a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models.py @@ -159,12 +159,12 @@ class DataEffect(msrest.serialization.Model): :param name: The data effect name. :type name: str :param details_schema: The data effect details schema. - :type details_schema: str + :type details_schema: any """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'details_schema': {'key': 'detailsSchema', 'type': 'str'}, + 'details_schema': {'key': 'detailsSchema', 'type': 'object'}, } def __init__( @@ -312,7 +312,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -322,7 +322,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -456,9 +456,9 @@ class ParameterDefinitionsValue(msrest.serialization.Model): "Object", "Boolean", "Integer", "Float", "DateTime". :type type: str or ~azure.mgmt.resource.policy.v2020_09_01.models.ParameterType :param allowed_values: The allowed values for the parameter. - :type allowed_values: list[str] + :type allowed_values: list[any] :param default_value: The default value for the parameter if no value is provided. - :type default_value: str + :type default_value: any :param metadata: General metadata for the parameter. :type metadata: ~azure.mgmt.resource.policy.v2020_09_01.models.ParameterDefinitionsValueMetadata @@ -466,8 +466,8 @@ class ParameterDefinitionsValue(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'ParameterDefinitionsValueMetadata'}, } @@ -487,7 +487,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, str] + :type additional_properties: dict[str, any] :param display_name: The display name for the parameter. :type display_name: str :param description: The description of the parameter. @@ -502,7 +502,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, + 'additional_properties': {'key': '', 'type': '{object}'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'strong_type': {'key': 'strongType', 'type': 'str'}, @@ -525,11 +525,11 @@ class ParameterValuesValue(msrest.serialization.Model): """The value of a parameter. :param value: The value of the parameter. - :type value: str + :type value: any """ _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, } def __init__( @@ -573,7 +573,7 @@ class PolicyAssignment(msrest.serialization.Model): :type description: str :param metadata: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". Default value: "Default". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2020_09_01.models.EnforcementMode @@ -602,7 +602,7 @@ class PolicyAssignment(msrest.serialization.Model): 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterValuesValue}'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, 'non_compliance_messages': {'key': 'properties.nonComplianceMessages', 'type': '[NonComplianceMessage]'}, } @@ -673,10 +673,10 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. :type parameters: dict[str, @@ -697,8 +697,8 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, } @@ -859,7 +859,7 @@ class PolicyExemption(msrest.serialization.Model): :type description: str :param metadata: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any """ _validation = { @@ -882,7 +882,7 @@ class PolicyExemption(msrest.serialization.Model): 'expires_on': {'key': 'properties.expiresOn', 'type': 'iso-8601'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -952,7 +952,7 @@ class PolicySetDefinition(msrest.serialization.Model): :type description: str :param metadata: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. :type parameters: dict[str, @@ -979,7 +979,7 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, 'policy_definition_groups': {'key': 'properties.policyDefinitionGroups', 'type': '[PolicyDefinitionGroup]'}, diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py index a2141e282c0..6c2e6aa38bb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -178,19 +178,19 @@ class DataEffect(msrest.serialization.Model): :param name: The data effect name. :type name: str :param details_schema: The data effect details schema. - :type details_schema: str + :type details_schema: any """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'details_schema': {'key': 'detailsSchema', 'type': 'str'}, + 'details_schema': {'key': 'detailsSchema', 'type': 'object'}, } def __init__( self, *, name: Optional[str] = None, - details_schema: Optional[str] = None, + details_schema: Optional[Any] = None, **kwargs ): super(DataEffect, self).__init__(**kwargs) @@ -351,7 +351,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -361,7 +361,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -500,9 +500,9 @@ class ParameterDefinitionsValue(msrest.serialization.Model): "Object", "Boolean", "Integer", "Float", "DateTime". :type type: str or ~azure.mgmt.resource.policy.v2020_09_01.models.ParameterType :param allowed_values: The allowed values for the parameter. - :type allowed_values: list[str] + :type allowed_values: list[any] :param default_value: The default value for the parameter if no value is provided. - :type default_value: str + :type default_value: any :param metadata: General metadata for the parameter. :type metadata: ~azure.mgmt.resource.policy.v2020_09_01.models.ParameterDefinitionsValueMetadata @@ -510,8 +510,8 @@ class ParameterDefinitionsValue(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'ParameterDefinitionsValueMetadata'}, } @@ -519,8 +519,8 @@ def __init__( self, *, type: Optional[Union[str, "ParameterType"]] = None, - allowed_values: Optional[List[str]] = None, - default_value: Optional[str] = None, + allowed_values: Optional[List[Any]] = None, + default_value: Optional[Any] = None, metadata: Optional["ParameterDefinitionsValueMetadata"] = None, **kwargs ): @@ -536,7 +536,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, str] + :type additional_properties: dict[str, any] :param display_name: The display name for the parameter. :type display_name: str :param description: The description of the parameter. @@ -551,7 +551,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, + 'additional_properties': {'key': '', 'type': '{object}'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'strong_type': {'key': 'strongType', 'type': 'str'}, @@ -561,7 +561,7 @@ class ParameterDefinitionsValueMetadata(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, str]] = None, + additional_properties: Optional[Dict[str, Any]] = None, display_name: Optional[str] = None, description: Optional[str] = None, strong_type: Optional[str] = None, @@ -580,17 +580,17 @@ class ParameterValuesValue(msrest.serialization.Model): """The value of a parameter. :param value: The value of the parameter. - :type value: str + :type value: any """ _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, } def __init__( self, *, - value: Optional[str] = None, + value: Optional[Any] = None, **kwargs ): super(ParameterValuesValue, self).__init__(**kwargs) @@ -630,7 +630,7 @@ class PolicyAssignment(msrest.serialization.Model): :type description: str :param metadata: The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param enforcement_mode: The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: "Default", "DoNotEnforce". Default value: "Default". :type enforcement_mode: str or ~azure.mgmt.resource.policy.v2020_09_01.models.EnforcementMode @@ -659,7 +659,7 @@ class PolicyAssignment(msrest.serialization.Model): 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterValuesValue}'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'enforcement_mode': {'key': 'properties.enforcementMode', 'type': 'str'}, 'non_compliance_messages': {'key': 'properties.nonComplianceMessages', 'type': '[NonComplianceMessage]'}, } @@ -674,7 +674,7 @@ def __init__( not_scopes: Optional[List[str]] = None, parameters: Optional[Dict[str, "ParameterValuesValue"]] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, enforcement_mode: Optional[Union[str, "EnforcementMode"]] = "Default", non_compliance_messages: Optional[List["NonComplianceMessage"]] = None, **kwargs @@ -744,10 +744,10 @@ class PolicyDefinition(msrest.serialization.Model): :param description: The policy definition description. :type description: str :param policy_rule: The policy rule. - :type policy_rule: str + :type policy_rule: any :param metadata: The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The parameter definitions for parameters used in the policy rule. The keys are the parameter names. :type parameters: dict[str, @@ -768,8 +768,8 @@ class PolicyDefinition(msrest.serialization.Model): 'mode': {'key': 'properties.mode', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, } @@ -780,8 +780,8 @@ def __init__( mode: Optional[str] = "Indexed", display_name: Optional[str] = None, description: Optional[str] = None, - policy_rule: Optional[str] = None, - metadata: Optional[str] = None, + policy_rule: Optional[Any] = None, + metadata: Optional[Any] = None, parameters: Optional[Dict[str, "ParameterDefinitionsValue"]] = None, **kwargs ): @@ -952,7 +952,7 @@ class PolicyExemption(msrest.serialization.Model): :type description: str :param metadata: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any """ _validation = { @@ -975,7 +975,7 @@ class PolicyExemption(msrest.serialization.Model): 'expires_on': {'key': 'properties.expiresOn', 'type': 'iso-8601'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, } def __init__( @@ -987,7 +987,7 @@ def __init__( expires_on: Optional[datetime.datetime] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(PolicyExemption, self).__init__(**kwargs) @@ -1055,7 +1055,7 @@ class PolicySetDefinition(msrest.serialization.Model): :type description: str :param metadata: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. - :type metadata: str + :type metadata: any :param parameters: The policy set definition parameters that can be used in policy definition references. :type parameters: dict[str, @@ -1082,7 +1082,7 @@ class PolicySetDefinition(msrest.serialization.Model): 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'parameters': {'key': 'properties.parameters', 'type': '{ParameterDefinitionsValue}'}, 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, 'policy_definition_groups': {'key': 'properties.policyDefinitionGroups', 'type': '[PolicyDefinitionGroup]'}, @@ -1094,7 +1094,7 @@ def __init__( policy_type: Optional[Union[str, "PolicyType"]] = None, display_name: Optional[str] = None, description: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, parameters: Optional[Dict[str, "ParameterDefinitionsValue"]] = None, policy_definitions: Optional[List["PolicyDefinitionReference"]] = None, policy_definition_groups: Optional[List["PolicyDefinitionGroup"]] = None, diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployment_operations_operations.py index b74ea9bb876..cd6434ac7df 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Get a list of deployments operations. @@ -108,7 +108,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets a list of deployments operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployments_operations.py index 8271bae6a0a..34aba093e44 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -89,7 +89,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete deployment. @@ -99,8 +99,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -153,7 +153,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether deployment exists. @@ -209,7 +209,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -266,7 +266,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Create a named template deployment using a template. @@ -278,8 +278,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -336,7 +336,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Get a deployment. @@ -395,7 +395,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancel a currently running template deployment. @@ -449,7 +449,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validate a deployment template. @@ -518,7 +518,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports a deployment template. @@ -577,7 +577,7 @@ def list( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get a list of deployments. @@ -655,13 +655,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateHashResult @@ -689,7 +689,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_providers_operations.py index 4d6ddc4f595..ba7491795b8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters provider from a subscription. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers provider to be used with a subscription. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets a list of resource providers. @@ -230,7 +230,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets a resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resource_groups_operations.py index b5e688b3f8e..6e0460043ba 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resource_groups_operations.py @@ -49,7 +49,7 @@ def list_resources( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all of the resources under a subscription. @@ -133,7 +133,7 @@ async def get_next(next_link=None): async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether resource group exists. @@ -185,7 +185,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Create a resource group. @@ -251,7 +251,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -291,7 +291,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete resource group. @@ -300,8 +300,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -351,7 +351,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Get a resource group. @@ -407,7 +407,7 @@ async def patch( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource groups, though if a field is @@ -472,7 +472,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -534,7 +534,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets a collection of resource groups. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resources_operations.py index 0f8723dbfcf..478773bcf57 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_resources_operations.py @@ -47,7 +47,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -93,7 +93,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Move resources from one resource group to another. The resources being moved should all be in the same resource group. @@ -104,8 +104,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -158,7 +158,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all of the resources under a subscription. @@ -244,7 +244,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether resource exists. @@ -312,7 +312,7 @@ async def delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: """Delete resource and all of its resources. @@ -380,7 +380,7 @@ async def create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Create a resource. @@ -464,7 +464,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -525,7 +525,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -546,8 +546,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -615,7 +615,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Returns a resource belonging to a resource group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_tags_operations.py index 36c6654550d..89144caf68e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Delete a subscription resource tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Create a subscription resource tag value. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Create a subscription resource tag. @@ -217,7 +217,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a subscription resource tag. @@ -265,7 +265,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Get a list of subscription resource tags. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py index e67677efd73..f8c61f2a795 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py @@ -155,11 +155,11 @@ class DeploymentExportResult(msrest.serialization.Model): """DeploymentExportResult. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -289,7 +289,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :param status_code: Operation status code. :type status_code: str :param status_message: Operation status message. - :type status_message: object + :type status_message: any :param target_resource: The target resource. :type target_resource: ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource :param request: The HTTP request message. @@ -354,12 +354,12 @@ class DeploymentProperties(msrest.serialization.Model): :param template: The template content. It can be a JObject or a well formed JSON string. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The template URI. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink :param parameters: Deployment parameters. It can be a JObject or a well formed JSON string. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The parameters URI. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink :param mode: Required. The deployment mode. Possible values include: "Incremental", "Complete". @@ -373,9 +373,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -404,18 +404,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :param timestamp: The timestamp of the template deployment. :type timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink @@ -429,12 +429,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -492,7 +492,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -502,7 +502,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -647,7 +647,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: Id of the resource that manages this resource. @@ -671,7 +671,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -709,7 +709,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: Id of the resource that manages this resource. @@ -745,7 +745,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -796,11 +796,11 @@ class HttpMessage(msrest.serialization.Model): """HttpMessage. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1047,14 +1047,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """ResourceGroupExportResult. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py index 0bf2e702c8d..d5ccb3914a9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -179,17 +179,17 @@ class DeploymentExportResult(msrest.serialization.Model): """DeploymentExportResult. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -327,7 +327,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :param status_code: Operation status code. :type status_code: str :param status_message: Operation status message. - :type status_message: object + :type status_message: any :param target_resource: The target resource. :type target_resource: ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource :param request: The HTTP request message. @@ -354,7 +354,7 @@ def __init__( timestamp: Optional[datetime.datetime] = None, service_request_id: Optional[str] = None, status_code: Optional[str] = None, - status_message: Optional[object] = None, + status_message: Optional[Any] = None, target_resource: Optional["TargetResource"] = None, request: Optional["HttpMessage"] = None, response: Optional["HttpMessage"] = None, @@ -404,12 +404,12 @@ class DeploymentProperties(msrest.serialization.Model): :param template: The template content. It can be a JObject or a well formed JSON string. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The template URI. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink :param parameters: Deployment parameters. It can be a JObject or a well formed JSON string. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The parameters URI. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink :param mode: Required. The deployment mode. Possible values include: "Incremental", "Complete". @@ -423,9 +423,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -435,9 +435,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, **kwargs @@ -461,18 +461,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :param timestamp: The timestamp of the template deployment. :type timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink @@ -486,12 +486,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -503,12 +503,12 @@ def __init__( provisioning_state: Optional[str] = None, correlation_id: Optional[str] = None, timestamp: Optional[datetime.datetime] = None, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -565,7 +565,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -575,7 +575,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -726,7 +726,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: Id of the resource that manages this resource. @@ -750,7 +750,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -763,7 +763,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -797,7 +797,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: Id of the resource that manages this resource. @@ -833,7 +833,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -849,7 +849,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -897,17 +897,17 @@ class HttpMessage(msrest.serialization.Model): """HttpMessage. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1177,21 +1177,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """ResourceGroupExportResult. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py index 9f8a28012d3..9acfe29eaa9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py @@ -105,8 +105,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -287,8 +287,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -669,14 +669,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateHashResult @@ -704,7 +704,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py index e82f7730980..05adbc44302 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py @@ -309,8 +309,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py index c3a1e08bda8..daa525de774 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py @@ -110,8 +110,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -558,8 +558,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2016_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployment_operations_operations.py index 2bb2fe85b01..42ca03475c7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -108,7 +108,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployments_operations.py index 68d3ee0193c..d812b6df318 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -89,7 +89,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -109,8 +109,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -163,7 +163,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -219,7 +219,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -276,7 +276,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -291,8 +291,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -349,7 +349,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -407,7 +407,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -466,7 +466,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -537,7 +537,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -596,7 +596,7 @@ def list( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -675,13 +675,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateHashResult @@ -709,7 +709,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_providers_operations.py index 1f7891cdaa8..3780427e059 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resource_groups_operations.py index d0f5f6b58ab..4748fcd4718 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resource_groups_operations.py @@ -49,7 +49,7 @@ def list_resources( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -133,7 +133,7 @@ async def get_next(next_link=None): async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -185,7 +185,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates a resource group. @@ -250,7 +250,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -290,7 +290,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -302,8 +302,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -353,7 +353,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -409,7 +409,7 @@ async def patch( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -476,7 +476,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -538,7 +538,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resources_operations.py index 91db4cc8583..e54335c8528 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_resources_operations.py @@ -47,7 +47,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -93,7 +93,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -109,8 +109,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -163,7 +163,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -249,7 +249,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -318,7 +318,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -366,7 +366,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -385,8 +385,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -451,7 +451,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -515,7 +515,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -536,8 +536,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -606,7 +606,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -667,7 +667,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -688,8 +688,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -757,7 +757,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -826,7 +826,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -879,7 +879,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -918,7 +918,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -930,8 +930,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -983,7 +983,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1038,7 +1038,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1052,8 +1052,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1109,7 +1109,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1161,7 +1161,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1175,8 +1175,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1231,7 +1231,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_tags_operations.py index ef89a91304e..4b774031ae7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py index bed88a0441c..7686f397cb3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py @@ -166,11 +166,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -315,7 +315,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: object + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource :ivar request: The HTTP request message. @@ -399,7 +399,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink @@ -407,7 +407,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -428,9 +428,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -461,18 +461,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink @@ -493,12 +493,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -556,7 +556,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -566,7 +566,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -711,7 +711,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -736,7 +736,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -774,7 +774,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -811,7 +811,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -862,11 +862,11 @@ class HttpMessage(msrest.serialization.Model): """HttpMessage. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1134,14 +1134,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """ResourceGroupExportResult. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py index 2601ed9f82f..9b4e2a0edbb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -189,17 +189,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -349,7 +349,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: object + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource :ivar request: The HTTP request message. @@ -435,7 +435,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink @@ -443,7 +443,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -464,9 +464,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -476,9 +476,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, **kwargs @@ -504,18 +504,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink @@ -536,12 +536,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -612,7 +612,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -622,7 +622,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -773,7 +773,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -798,7 +798,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -811,7 +811,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -845,7 +845,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -882,7 +882,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -898,7 +898,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -946,17 +946,17 @@ class HttpMessage(msrest.serialization.Model): """HttpMessage. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1245,21 +1245,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """ResourceGroupExportResult. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py index 96dd53aa2a5..83fb927f0b1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py @@ -115,8 +115,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -300,8 +300,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -689,14 +689,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateHashResult @@ -724,7 +724,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py index 4841f0e3c9c..222dbbff710 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py @@ -311,8 +311,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py index 64f8fb44b7e..8c4eefc46b0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py @@ -115,8 +115,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -395,8 +395,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -548,8 +548,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -702,8 +702,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -948,8 +948,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1072,8 +1072,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1197,8 +1197,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployment_operations_operations.py index 0971370197d..e5b13cdcfb2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -108,7 +108,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployments_operations.py index c19c774f422..3cf66c28a7f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -89,7 +89,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -109,8 +109,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -163,7 +163,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -219,7 +219,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -276,7 +276,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -291,8 +291,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -349,7 +349,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -407,7 +407,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -466,7 +466,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -537,7 +537,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -596,7 +596,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -675,13 +675,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateHashResult @@ -709,7 +709,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_providers_operations.py index 38dcfce853a..74f2549454d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resource_groups_operations.py index 80c9907e613..b1ca4ebefec 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -163,7 +163,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -203,7 +203,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -215,8 +215,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -266,7 +266,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -322,7 +322,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -389,7 +389,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -451,7 +451,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resources_operations.py index 04dfeb54e41..a6e5483ead8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -134,7 +134,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -180,7 +180,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -196,8 +196,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -249,7 +249,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -295,7 +295,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -313,8 +313,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -367,7 +367,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -453,7 +453,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -522,7 +522,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -570,7 +570,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -589,8 +589,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -655,7 +655,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -719,7 +719,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -740,8 +740,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -810,7 +810,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -871,7 +871,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -892,8 +892,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -961,7 +961,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1030,7 +1030,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1083,7 +1083,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1122,7 +1122,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1134,8 +1134,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1187,7 +1187,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1242,7 +1242,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1256,8 +1256,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1313,7 +1313,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1365,7 +1365,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1379,8 +1379,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1435,7 +1435,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_tags_operations.py index e6892a6e1b7..67965b3761e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py index 2f032e2b3fa..5d63c76f44c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py @@ -166,11 +166,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -315,7 +315,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: object + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource :ivar request: The HTTP request message. @@ -399,7 +399,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink @@ -407,7 +407,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -428,9 +428,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -461,18 +461,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink @@ -493,12 +493,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -556,7 +556,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -566,7 +566,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -711,7 +711,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -736,7 +736,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -774,7 +774,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -811,7 +811,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -862,11 +862,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1138,14 +1138,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py index 5feb50be218..9fa29556c33 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -189,17 +189,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -349,7 +349,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: object + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource :ivar request: The HTTP request message. @@ -435,7 +435,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink @@ -443,7 +443,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -464,9 +464,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -476,9 +476,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, **kwargs @@ -504,18 +504,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink @@ -536,12 +536,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -612,7 +612,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -622,7 +622,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -773,7 +773,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -798,7 +798,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -811,7 +811,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -845,7 +845,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -882,7 +882,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -898,7 +898,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -946,17 +946,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1250,21 +1250,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py index 46449da9db8..6d7157440df 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py @@ -115,8 +115,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -300,8 +300,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -689,14 +689,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateHashResult @@ -724,7 +724,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py index 350efdd402b..5c00480c26b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py @@ -223,8 +223,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py index 3cea17bfe3d..d28dc5243d5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py @@ -203,8 +203,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -322,8 +322,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -602,8 +602,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -755,8 +755,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -909,8 +909,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1155,8 +1155,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1279,8 +1279,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1404,8 +1404,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployment_operations_operations.py index ff0f056910c..191ef5ea119 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -108,7 +108,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployments_operations.py index 8aca8f0477c..666953106cc 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -89,7 +89,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -109,8 +109,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -163,7 +163,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -219,7 +219,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -276,7 +276,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -291,8 +291,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -349,7 +349,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -407,7 +407,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -466,7 +466,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -537,7 +537,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -596,7 +596,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -675,13 +675,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateHashResult @@ -709,7 +709,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_providers_operations.py index 80abd3648e4..316e3513ad2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resource_groups_operations.py index 2a090a88bbf..c7b7d88fbad 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -163,7 +163,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -203,7 +203,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -215,8 +215,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -266,7 +266,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -322,7 +322,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -389,7 +389,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -451,7 +451,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resources_operations.py index 8f4b868ef51..040cb723133 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -134,7 +134,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -180,7 +180,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -196,8 +196,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -249,7 +249,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -295,7 +295,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -313,8 +313,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -367,7 +367,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -451,7 +451,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -520,7 +520,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -568,7 +568,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -587,8 +587,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -653,7 +653,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -717,7 +717,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -738,8 +738,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -808,7 +808,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -869,7 +869,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -890,8 +890,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -959,7 +959,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1028,7 +1028,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1081,7 +1081,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1120,7 +1120,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1132,8 +1132,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1185,7 +1185,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1240,7 +1240,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1254,8 +1254,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1311,7 +1311,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1363,7 +1363,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1377,8 +1377,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1433,7 +1433,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_tags_operations.py index 5f516b911a6..7e90bab924a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py index 888907bad6d..927ff88a786 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py @@ -166,11 +166,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -315,7 +315,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource :ivar request: The HTTP request message. @@ -340,7 +340,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -399,7 +399,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink @@ -407,7 +407,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -430,9 +430,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -465,18 +465,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink @@ -500,12 +500,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -565,7 +565,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -575,7 +575,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -720,7 +720,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -745,7 +745,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -783,7 +783,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -820,7 +820,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -871,11 +871,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1204,14 +1204,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py index dd1ac86cee0..e668225cc22 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -189,17 +189,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -349,7 +349,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource :ivar request: The HTTP request message. @@ -374,7 +374,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -435,7 +435,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink @@ -443,7 +443,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -466,9 +466,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -479,9 +479,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -509,18 +509,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink @@ -544,12 +544,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -559,12 +559,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -623,7 +623,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -633,7 +633,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -784,7 +784,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -809,7 +809,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -822,7 +822,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -856,7 +856,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -893,7 +893,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -909,7 +909,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -957,17 +957,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1326,21 +1326,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py index b89d85fd1d1..f5104e998f7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py @@ -115,8 +115,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -300,8 +300,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -689,14 +689,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateHashResult @@ -724,7 +724,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py index 17fe6844c0d..3ace73e79e1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py @@ -223,8 +223,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py index c00708d5747..c853a08461f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py @@ -203,8 +203,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -322,8 +322,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -600,8 +600,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -753,8 +753,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -907,8 +907,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1153,8 +1153,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1277,8 +1277,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1402,8 +1402,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployment_operations_operations.py index 48c9b2d8492..a3f5588c35d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployment_operations_operations.py @@ -45,7 +45,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -103,7 +103,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -179,7 +179,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployments_operations.py index 1599702ce84..93db4096901 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_deployments_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -86,7 +86,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -102,8 +102,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -153,7 +153,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -204,7 +204,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -259,7 +259,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -271,8 +271,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -326,7 +326,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -380,7 +380,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -435,7 +435,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -501,7 +501,7 @@ async def validate_at_subscription_scope( async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -556,7 +556,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -633,7 +633,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -675,7 +675,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -695,8 +695,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -749,7 +749,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -805,7 +805,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -862,7 +862,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -877,8 +877,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -935,7 +935,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -993,7 +993,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1052,7 +1052,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1123,7 +1123,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1182,7 +1182,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -1261,13 +1261,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateHashResult @@ -1295,7 +1295,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_operations.py index b4e4ed3f225..01837eef8a3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_providers_operations.py index 645f0a1d7f1..4c0a80905b9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resource_groups_operations.py index 9ab4c16c6ff..cf005b1d8fd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -165,7 +165,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -205,7 +205,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -217,8 +217,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -268,7 +268,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -324,7 +324,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -391,7 +391,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -453,7 +453,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resources_operations.py index 5d90d1eae97..f9fbde0f4a0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -146,7 +146,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -192,7 +192,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -208,8 +208,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -261,7 +261,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -307,7 +307,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -325,8 +325,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -379,7 +379,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -477,7 +477,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -546,7 +546,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -594,7 +594,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -613,8 +613,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -679,7 +679,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -743,7 +743,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -764,8 +764,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -834,7 +834,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -895,7 +895,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -916,8 +916,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -985,7 +985,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1054,7 +1054,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1107,7 +1107,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1146,7 +1146,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1158,8 +1158,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1211,7 +1211,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1266,7 +1266,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1280,8 +1280,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1389,7 +1389,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1403,8 +1403,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1459,7 +1459,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_tags_operations.py index 33174816fdf..2ed4abebc48 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py index 36f377e2a86..cebc07bd1ff 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -356,7 +356,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource :ivar request: The HTTP request message. @@ -381,7 +381,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -440,7 +440,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink @@ -448,7 +448,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -471,9 +471,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -506,18 +506,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink @@ -541,12 +541,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -606,7 +606,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -616,7 +616,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -761,7 +761,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -786,7 +786,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -824,7 +824,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -861,7 +861,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -912,11 +912,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1335,14 +1335,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py index da166234617..d72a930c977 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -391,7 +391,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource :ivar request: The HTTP request message. @@ -416,7 +416,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -477,7 +477,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink @@ -485,7 +485,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -508,9 +508,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -521,9 +521,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -551,18 +551,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink @@ -586,12 +586,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -601,12 +601,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -665,7 +665,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -675,7 +675,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -826,7 +826,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -851,7 +851,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -864,7 +864,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -898,7 +898,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -935,7 +935,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -951,7 +951,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -999,17 +999,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1469,21 +1469,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py index a2383a5617c..a3e0463fb3b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py @@ -108,8 +108,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -280,8 +280,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -711,8 +711,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -896,8 +896,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1285,14 +1285,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateHashResult @@ -1320,7 +1320,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py index 7b70f6eed8a..63eacb250bd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py @@ -225,8 +225,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py index 63d72ca224a..6115942e2c3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py @@ -215,8 +215,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -334,8 +334,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -626,8 +626,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -779,8 +779,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -933,8 +933,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1179,8 +1179,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1303,8 +1303,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1428,8 +1428,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployment_operations_operations.py index cfdc8e5cd64..4972567b3b1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployment_operations_operations.py @@ -45,7 +45,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -103,7 +103,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -179,7 +179,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployments_operations.py index 8a2e9714960..fda7a6016bd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_deployments_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -86,7 +86,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -102,8 +102,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -153,7 +153,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -204,7 +204,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -259,7 +259,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -271,8 +271,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -326,7 +326,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -380,7 +380,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -435,7 +435,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -501,7 +501,7 @@ async def validate_at_subscription_scope( async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -556,7 +556,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -633,7 +633,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -675,7 +675,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -695,8 +695,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -749,7 +749,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -805,7 +805,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -862,7 +862,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -877,8 +877,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -935,7 +935,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -993,7 +993,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1052,7 +1052,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1123,7 +1123,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1182,7 +1182,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -1261,13 +1261,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateHashResult @@ -1295,7 +1295,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_operations.py index 63d507148da..d366bdbbeb1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_providers_operations.py index 89d44a0cc84..ccb67c8132b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resource_groups_operations.py index 9c93223a470..33e61c946b4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -165,7 +165,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -205,7 +205,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -217,8 +217,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -268,7 +268,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -324,7 +324,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -391,7 +391,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -453,7 +453,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resources_operations.py index ba2e3d05607..bfa2c9607c1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -146,7 +146,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -192,7 +192,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -208,8 +208,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -261,7 +261,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -307,7 +307,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -325,8 +325,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -379,7 +379,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -477,7 +477,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -546,7 +546,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -594,7 +594,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -613,8 +613,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -679,7 +679,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -743,7 +743,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -764,8 +764,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -834,7 +834,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -895,7 +895,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -916,8 +916,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -985,7 +985,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1054,7 +1054,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1107,7 +1107,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1146,7 +1146,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1158,8 +1158,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1211,7 +1211,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1266,7 +1266,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1280,8 +1280,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1389,7 +1389,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1403,8 +1403,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1459,7 +1459,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_tags_operations.py index bb16c37f2c5..510debe59f7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models.py index 48fc0f00ef4..b0812105328 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -356,7 +356,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_03_01.models.TargetResource :ivar request: The HTTP request message. @@ -381,7 +381,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -440,7 +440,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateLink @@ -448,7 +448,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -471,9 +471,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -506,18 +506,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_03_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_03_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_03_01.models.ParametersLink @@ -541,12 +541,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -606,7 +606,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -616,7 +616,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -761,7 +761,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_03_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -786,7 +786,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -824,7 +824,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_03_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -861,7 +861,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -912,11 +912,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1344,14 +1344,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models_py3.py index 66d36e4f236..aa0fb941ccb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -391,7 +391,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_03_01.models.TargetResource :ivar request: The HTTP request message. @@ -416,7 +416,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -477,7 +477,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateLink @@ -485,7 +485,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -508,9 +508,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -521,9 +521,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -551,18 +551,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar timestamp: The timestamp of the template deployment. :vartype timestamp: ~datetime.datetime :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_03_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_03_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_03_01.models.ParametersLink @@ -586,12 +586,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -601,12 +601,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -665,7 +665,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -675,7 +675,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -826,7 +826,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_03_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -851,7 +851,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -864,7 +864,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -898,7 +898,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_03_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -935,7 +935,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -951,7 +951,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -999,17 +999,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1479,21 +1479,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_deployments_operations.py index 622d3419773..3d3dd3a6c2e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_deployments_operations.py @@ -108,8 +108,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -280,8 +280,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -711,8 +711,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -896,8 +896,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1285,14 +1285,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_03_01.models.TemplateHashResult @@ -1320,7 +1320,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resource_groups_operations.py index ec8b147ab28..9c99719bf85 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resource_groups_operations.py @@ -225,8 +225,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resources_operations.py index 3c317acf19b..86c14b1cc28 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_03_01/operations/_resources_operations.py @@ -215,8 +215,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -334,8 +334,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -626,8 +626,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -779,8 +779,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -933,8 +933,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1179,8 +1179,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1303,8 +1303,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1428,8 +1428,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_03_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployment_operations_operations.py index d1cdd6ab4e3..1336bba413f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -242,7 +242,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -318,7 +318,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -380,7 +380,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployments_operations.py index f8634986d1d..b8d440c0685 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -106,8 +106,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -159,7 +159,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -213,7 +213,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -269,7 +269,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -283,8 +283,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -340,7 +340,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -397,7 +397,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -455,7 +455,7 @@ async def validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -524,7 +524,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -582,7 +582,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -660,7 +660,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -700,7 +700,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -716,8 +716,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -767,7 +767,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -818,7 +818,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -873,7 +873,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -885,8 +885,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -940,7 +940,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -994,7 +994,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1049,7 +1049,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1115,7 +1115,7 @@ async def validate_at_subscription_scope( async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1170,7 +1170,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -1247,7 +1247,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1289,7 +1289,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1309,8 +1309,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1363,7 +1363,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1419,7 +1419,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1476,7 +1476,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -1491,8 +1491,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1549,7 +1549,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1607,7 +1607,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1666,7 +1666,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1737,7 +1737,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1796,7 +1796,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -1875,13 +1875,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateHashResult @@ -1909,7 +1909,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py index bfdf6d96740..e4b9af285f0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_providers_operations.py index 118990d4ac4..0a72651c1d1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resource_groups_operations.py index 4ff1944cb54..201d466dc42 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -165,7 +165,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -205,7 +205,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -217,8 +217,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -268,7 +268,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -324,7 +324,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -391,7 +391,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -453,7 +453,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resources_operations.py index 04b2ea65c0e..68ce325669d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -146,7 +146,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -192,7 +192,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -208,8 +208,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -261,7 +261,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -307,7 +307,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -325,8 +325,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -379,7 +379,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -477,7 +477,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -546,7 +546,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -594,7 +594,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -613,8 +613,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -679,7 +679,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -743,7 +743,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -764,8 +764,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -834,7 +834,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -895,7 +895,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -916,8 +916,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -985,7 +985,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1054,7 +1054,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1107,7 +1107,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1146,7 +1146,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1158,8 +1158,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1211,7 +1211,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1266,7 +1266,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1280,8 +1280,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1389,7 +1389,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1403,8 +1403,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1459,7 +1459,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_tags_operations.py index e2147b21b0e..8f5c6ec7c08 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py index a7f2bc180f6..fc053e42c1e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -358,7 +358,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_05_01.models.TargetResource :ivar request: The HTTP request message. @@ -385,7 +385,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -445,7 +445,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink @@ -453,7 +453,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -476,9 +476,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -513,18 +513,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_05_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_05_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -616,7 +616,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -626,7 +626,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -771,7 +771,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -796,7 +796,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -834,7 +834,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -871,7 +871,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -922,11 +922,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1354,14 +1354,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py index 4bd55b4802b..5632af08bb0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -393,7 +393,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_05_01.models.TargetResource :ivar request: The HTTP request message. @@ -420,7 +420,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -482,7 +482,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink @@ -490,7 +490,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -513,9 +513,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -526,9 +526,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -558,18 +558,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_05_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_05_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink @@ -595,12 +595,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -610,12 +610,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -675,7 +675,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -685,7 +685,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -836,7 +836,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -861,7 +861,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -874,7 +874,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -908,7 +908,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -945,7 +945,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -961,7 +961,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1009,17 +1009,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1489,21 +1489,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py index cb7ec7403a3..ad8af33e41c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py @@ -112,8 +112,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -292,8 +292,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -732,8 +732,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -904,8 +904,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1335,8 +1335,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1520,8 +1520,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1909,14 +1909,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateHashResult @@ -1944,7 +1944,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py index 2c0e07ea3a4..51e56c45c68 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py @@ -225,8 +225,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py index 7f8f774219c..23109f38e63 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py @@ -215,8 +215,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -334,8 +334,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -626,8 +626,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -779,8 +779,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -933,8 +933,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1179,8 +1179,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1303,8 +1303,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1428,8 +1428,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployment_operations_operations.py index fea2f0c6a58..bbfa511a990 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -242,7 +242,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -318,7 +318,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -380,7 +380,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployments_operations.py index 994b115a191..a44a4478cb5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -106,8 +106,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -159,7 +159,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -213,7 +213,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -269,7 +269,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -283,8 +283,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -340,7 +340,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -397,7 +397,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -455,7 +455,7 @@ async def validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -524,7 +524,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -582,7 +582,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -660,7 +660,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -700,7 +700,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -716,8 +716,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -767,7 +767,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -818,7 +818,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -873,7 +873,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -885,8 +885,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -940,7 +940,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -994,7 +994,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1049,7 +1049,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1115,7 +1115,7 @@ async def validate_at_subscription_scope( async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1170,7 +1170,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -1247,7 +1247,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1289,7 +1289,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1309,8 +1309,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1363,7 +1363,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1419,7 +1419,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1476,7 +1476,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -1491,8 +1491,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1549,7 +1549,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1607,7 +1607,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1666,7 +1666,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1737,7 +1737,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1796,7 +1796,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -1875,13 +1875,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateHashResult @@ -1909,7 +1909,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_operations.py index ad301959a05..4250f7390e9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_providers_operations.py index 3deb0a7e131..3f0073541ea 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -305,7 +305,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -365,7 +365,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resource_groups_operations.py index 9c6de16c04e..39c4412d75b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -98,7 +98,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -165,7 +165,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -205,7 +205,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -217,8 +217,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -268,7 +268,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -324,7 +324,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -391,7 +391,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -453,7 +453,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resources_operations.py index f34cba046c5..216b17c0db5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -146,7 +146,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -192,7 +192,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -208,8 +208,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -261,7 +261,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -307,7 +307,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -325,8 +325,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -379,7 +379,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -477,7 +477,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -546,7 +546,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -594,7 +594,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -613,8 +613,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -679,7 +679,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -743,7 +743,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -764,8 +764,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -834,7 +834,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -895,7 +895,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -916,8 +916,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -985,7 +985,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1054,7 +1054,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1107,7 +1107,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1146,7 +1146,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1158,8 +1158,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1211,7 +1211,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1266,7 +1266,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1280,8 +1280,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1389,7 +1389,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1403,8 +1403,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1459,7 +1459,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_tags_operations.py index 375df3e3daa..1936091369e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -98,7 +98,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -159,7 +159,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -221,7 +221,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -271,7 +271,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models.py index cb9de1aa260..cd35b59bb79 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -358,7 +358,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_05_10.models.TargetResource :ivar request: The HTTP request message. @@ -385,7 +385,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -445,7 +445,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateLink @@ -453,7 +453,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -476,9 +476,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -513,18 +513,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_05_10.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_05_10.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_05_10.models.ParametersLink @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -616,7 +616,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -626,7 +626,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -771,7 +771,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -796,7 +796,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -834,7 +834,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -871,7 +871,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -922,11 +922,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1354,14 +1354,14 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models_py3.py index e7b2c7da203..9586a99df71 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -393,7 +393,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_05_10.models.TargetResource :ivar request: The HTTP request message. @@ -420,7 +420,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -482,7 +482,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateLink @@ -490,7 +490,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -513,9 +513,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -526,9 +526,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -558,18 +558,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_05_10.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_05_10.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_05_10.models.ParametersLink @@ -595,12 +595,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -610,12 +610,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -675,7 +675,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -685,7 +685,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -836,7 +836,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -861,7 +861,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -874,7 +874,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -908,7 +908,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_05_10.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -945,7 +945,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -961,7 +961,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1009,17 +1009,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1489,21 +1489,21 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The error. :type error: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourceManagementErrorWithDetails """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ResourceManagementErrorWithDetails"] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_deployments_operations.py index d212e30ca91..91cf265069b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_deployments_operations.py @@ -112,8 +112,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -292,8 +292,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -732,8 +732,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -904,8 +904,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1335,8 +1335,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1520,8 +1520,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1909,14 +1909,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_05_10.models.TemplateHashResult @@ -1944,7 +1944,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resource_groups_operations.py index fff4c6fd816..91d5ac39627 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resource_groups_operations.py @@ -225,8 +225,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resources_operations.py index 1c3cbd21d51..b74be1a3fd6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_10/operations/_resources_operations.py @@ -215,8 +215,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -334,8 +334,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -626,8 +626,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -779,8 +779,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -933,8 +933,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1179,8 +1179,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1303,8 +1303,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1428,8 +1428,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_05_10.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployment_operations_operations.py index 164413b3963..92a7af95fcf 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployments_operations.py index 502f0378b64..c112ce7d845 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -530,7 +530,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -588,7 +588,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -666,7 +666,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -707,7 +707,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -723,8 +723,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -773,7 +773,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -825,7 +825,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -879,7 +879,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -891,8 +891,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -945,7 +945,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -998,7 +998,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1054,7 +1054,7 @@ async def validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1119,7 +1119,7 @@ async def validate_at_tenant_scope( async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1173,7 +1173,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1246,7 +1246,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1289,7 +1289,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1307,8 +1307,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1360,7 +1360,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1416,7 +1416,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1472,7 +1472,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1486,8 +1486,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1543,7 +1543,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1600,7 +1600,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1660,7 +1660,7 @@ async def validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1729,7 +1729,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1787,7 +1787,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -1865,7 +1865,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1907,7 +1907,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1923,8 +1923,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1974,7 +1974,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2027,7 +2027,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2082,7 +2082,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2094,8 +2094,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2149,7 +2149,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2203,7 +2203,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2260,7 +2260,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2327,7 +2327,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2385,7 +2385,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2396,8 +2396,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2451,7 +2451,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2506,7 +2506,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -2583,7 +2583,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2627,7 +2627,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2647,8 +2647,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2701,7 +2701,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2759,7 +2759,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2816,7 +2816,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -2831,8 +2831,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2889,7 +2889,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2947,7 +2947,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3008,7 +3008,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3080,7 +3080,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3140,7 +3140,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3154,8 +3154,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3212,7 +3212,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3271,7 +3271,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3350,13 +3350,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateHashResult @@ -3384,7 +3384,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py index e43e2871dcb..7302d794e0f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_providers_operations.py index 7cf326393d3..d44ceb813a4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -305,7 +305,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -365,7 +365,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resource_groups_operations.py index c413477b5af..305a55c9331 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -209,7 +209,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -221,8 +221,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -272,7 +272,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +328,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +395,7 @@ async def export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroupExportResult": """Captures the specified resource group as a template. @@ -457,7 +457,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resources_operations.py index 18aa2f1506d..4d579237625 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -146,7 +146,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -210,8 +210,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -263,7 +263,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -311,7 +311,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -329,8 +329,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -383,7 +383,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -481,7 +481,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -552,7 +552,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -602,7 +602,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -621,8 +621,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -687,7 +687,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -751,7 +751,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -772,8 +772,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -842,7 +842,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -903,7 +903,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -924,8 +924,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -993,7 +993,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1062,7 +1062,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1117,7 +1117,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1158,7 +1158,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1170,8 +1170,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1223,7 +1223,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1278,7 +1278,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1292,8 +1292,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1349,7 +1349,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1401,7 +1401,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1415,8 +1415,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1471,7 +1471,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_tags_operations.py index 863f3b4aa8f..0ad3ad39c78 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -100,7 +100,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -161,7 +161,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -223,7 +223,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -275,7 +275,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models.py index 3eaa8670dfe..1d7b125227a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -358,7 +358,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_07_01.models.TargetResource :ivar request: The HTTP request message. @@ -385,7 +385,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -445,7 +445,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink @@ -453,7 +453,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -476,9 +476,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -513,18 +513,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_07_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_07_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_07_01.models.ParametersLink @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -645,7 +645,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink @@ -653,7 +653,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -679,9 +679,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -726,7 +726,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -736,7 +736,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -881,7 +881,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_07_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -906,7 +906,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -944,7 +944,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_07_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -981,7 +981,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1032,11 +1032,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1464,13 +1464,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_07_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -1950,9 +1950,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_07_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_07_01.models.WhatIfPropertyChange] """ @@ -1965,8 +1965,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2021,9 +2021,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_07_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_07_01.models.WhatIfPropertyChange] """ @@ -2036,8 +2036,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models_py3.py index 6f6539cd3bb..4e0a77e28e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -393,7 +393,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_07_01.models.TargetResource :ivar request: The HTTP request message. @@ -420,7 +420,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -482,7 +482,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink @@ -490,7 +490,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -513,9 +513,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -526,9 +526,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -558,18 +558,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_07_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_07_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_07_01.models.ParametersLink @@ -595,12 +595,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -610,12 +610,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -707,7 +707,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateLink @@ -715,7 +715,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -741,9 +741,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -755,9 +755,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -799,7 +799,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -809,7 +809,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -960,7 +960,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_07_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -985,7 +985,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -998,7 +998,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1032,7 +1032,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_07_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1069,7 +1069,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1085,7 +1085,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1133,17 +1133,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1613,20 +1613,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_07_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2154,9 +2154,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_07_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_07_01.models.WhatIfPropertyChange] """ @@ -2169,8 +2169,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2179,8 +2179,8 @@ def __init__( *, resource_id: str, change_type: Union[str, "ChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2235,9 +2235,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_07_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_07_01.models.WhatIfPropertyChange] """ @@ -2250,8 +2250,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2260,8 +2260,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_deployments_operations.py index 8e3ccb5e2e4..5a8d707e673 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -739,8 +739,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -910,8 +910,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1333,8 +1333,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1515,8 +1515,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1959,8 +1959,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2133,8 +2133,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2440,8 +2440,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2695,8 +2695,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2882,8 +2882,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3210,8 +3210,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3408,14 +3408,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_07_01.models.TemplateHashResult @@ -3443,7 +3443,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resource_groups_operations.py index 7a714eb3538..9347c907ca8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resource_groups_operations.py @@ -229,8 +229,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resources_operations.py index 1d0b3d675a1..e0818a975e8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/operations/_resources_operations.py @@ -217,8 +217,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -338,8 +338,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -634,8 +634,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -787,8 +787,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -941,8 +941,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1191,8 +1191,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1315,8 +1315,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1440,8 +1440,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_07_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployment_operations_operations.py index 3382404a5c0..8f772af9d40 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployments_operations.py index 8eb42982472..48380695e5b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -530,7 +530,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -588,7 +588,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -666,7 +666,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -707,7 +707,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -723,8 +723,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -773,7 +773,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -825,7 +825,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -879,7 +879,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -891,8 +891,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -945,7 +945,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -998,7 +998,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1054,7 +1054,7 @@ async def validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1119,7 +1119,7 @@ async def validate_at_tenant_scope( async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1173,7 +1173,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1246,7 +1246,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1289,7 +1289,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1307,8 +1307,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1360,7 +1360,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1416,7 +1416,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1472,7 +1472,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1486,8 +1486,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1543,7 +1543,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1600,7 +1600,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1660,7 +1660,7 @@ async def validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1729,7 +1729,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1787,7 +1787,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -1865,7 +1865,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1907,7 +1907,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1923,8 +1923,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1974,7 +1974,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2027,7 +2027,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2082,7 +2082,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2094,8 +2094,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2149,7 +2149,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2203,7 +2203,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2260,7 +2260,7 @@ async def validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2327,7 +2327,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2385,7 +2385,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2396,8 +2396,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2451,7 +2451,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2506,7 +2506,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -2583,7 +2583,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2627,7 +2627,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2647,8 +2647,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2701,7 +2701,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2759,7 +2759,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2816,7 +2816,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -2831,8 +2831,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2889,7 +2889,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2947,7 +2947,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3008,7 +3008,7 @@ async def validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentValidateResult": """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3080,7 +3080,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3140,7 +3140,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3154,8 +3154,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3212,7 +3212,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3271,7 +3271,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3350,13 +3350,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateHashResult @@ -3384,7 +3384,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_operations.py index 0ab36e366bc..3401b69cc12 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_providers_operations.py index 43c29b7afaa..d85a6781a04 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -305,7 +305,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -365,7 +365,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resource_groups_operations.py index 6c2b27c8638..aa7496cc968 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -209,7 +209,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -221,8 +221,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -272,7 +272,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +328,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +395,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -448,7 +448,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -458,8 +458,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -514,7 +514,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resources_operations.py index 0df20a77bc7..0675050fa7a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_tags_operations.py index 8a72b94801e..3ab6e1d34e9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag value. @@ -100,7 +100,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a tag value. The name of the tag must already exist. @@ -161,7 +161,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a tag in the subscription. @@ -223,7 +223,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a tag from the subscription. @@ -275,7 +275,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets the names and values of all resource tags that are defined in a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py index 8e5801f7171..0001b121e04 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py @@ -200,11 +200,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -358,7 +358,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_08_01.models.TargetResource :ivar request: The HTTP request message. @@ -385,7 +385,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -445,7 +445,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink @@ -453,7 +453,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -476,9 +476,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -513,18 +513,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_08_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_08_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_08_01.models.ParametersLink @@ -550,12 +550,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -645,7 +645,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink @@ -653,7 +653,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -679,9 +679,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -726,7 +726,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -736,7 +736,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -881,7 +881,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_08_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -906,7 +906,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -944,7 +944,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_08_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -981,7 +981,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1032,11 +1032,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1464,13 +1464,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_08_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -1980,9 +1980,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_08_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_08_01.models.WhatIfPropertyChange] """ @@ -1995,8 +1995,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2051,9 +2051,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_08_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_08_01.models.WhatIfPropertyChange] """ @@ -2066,8 +2066,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models_py3.py index c45769806ef..2e1c83b01a7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -224,17 +224,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -393,7 +393,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_08_01.models.TargetResource :ivar request: The HTTP request message. @@ -420,7 +420,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -482,7 +482,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink @@ -490,7 +490,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -513,9 +513,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -526,9 +526,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -558,18 +558,18 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :param outputs: Key/value pairs that represent deployment output. - :type outputs: str + :type outputs: any :param providers: The list of resource providers needed for the deployment. :type providers: list[~azure.mgmt.resource.resources.v2019_08_01.models.Provider] :param dependencies: The list of deployment dependencies. :type dependencies: list[~azure.mgmt.resource.resources.v2019_08_01.models.Dependency] :param template: The template content. Use only one of Template or TemplateLink. - :type template: str + :type template: any :param template_link: The URI referencing the template. Use only one of Template or TemplateLink. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink :param parameters: Deployment parameters. Use only one of Parameters or ParametersLink. - :type parameters: str + :type parameters: any :param parameters_link: The URI referencing the parameters. Use only one of Parameters or ParametersLink. :type parameters_link: ~azure.mgmt.resource.resources.v2019_08_01.models.ParametersLink @@ -595,12 +595,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -610,12 +610,12 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): def __init__( self, *, - outputs: Optional[str] = None, + outputs: Optional[Any] = None, providers: Optional[List["Provider"]] = None, dependencies: Optional[List["Dependency"]] = None, - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, mode: Optional[Union[str, "DeploymentMode"]] = None, debug_setting: Optional["DebugSetting"] = None, @@ -707,7 +707,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateLink @@ -715,7 +715,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -741,9 +741,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -755,9 +755,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -799,7 +799,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -809,7 +809,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -960,7 +960,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_08_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -985,7 +985,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -998,7 +998,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1032,7 +1032,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_08_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1069,7 +1069,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1085,7 +1085,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1133,17 +1133,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1613,20 +1613,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_08_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2187,9 +2187,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_08_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_08_01.models.WhatIfPropertyChange] """ @@ -2202,8 +2202,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2212,8 +2212,8 @@ def __init__( *, resource_id: str, change_type: Union[str, "ChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2268,9 +2268,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_08_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_08_01.models.WhatIfPropertyChange] """ @@ -2283,8 +2283,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2293,8 +2293,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_deployments_operations.py index a6d2fa825b6..5b726ea983e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -739,8 +739,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -910,8 +910,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1333,8 +1333,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1515,8 +1515,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1959,8 +1959,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2133,8 +2133,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2440,8 +2440,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2695,8 +2695,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2882,8 +2882,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3210,8 +3210,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3408,14 +3408,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_08_01.models.TemplateHashResult @@ -3443,7 +3443,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resource_groups_operations.py index ea438b89b64..46bdf859f80 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resource_groups_operations.py @@ -229,8 +229,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -470,8 +470,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resources_operations.py index cccf12f94df..6dd3e135254 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_08_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployment_operations_operations.py index 7a721f5d9e7..8ccaec18d49 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployments_operations.py index afd28c8743f..f67b25664d5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def _validate_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -518,7 +518,7 @@ async def begin_validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -531,8 +531,8 @@ async def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -588,7 +588,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -646,7 +646,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -724,7 +724,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -765,7 +765,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -781,8 +781,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -883,7 +883,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -937,7 +937,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -949,8 +949,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1003,7 +1003,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1056,7 +1056,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1112,7 +1112,7 @@ async def _validate_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1167,7 +1167,7 @@ async def begin_validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1178,8 +1178,8 @@ async def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1233,7 +1233,7 @@ async def _what_if_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -1290,7 +1290,7 @@ async def begin_what_if_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -1301,8 +1301,8 @@ async def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1355,7 +1355,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1409,7 +1409,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1482,7 +1482,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1525,7 +1525,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1543,8 +1543,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1596,7 +1596,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1652,7 +1652,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1708,7 +1708,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1722,8 +1722,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1779,7 +1779,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1836,7 +1836,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1896,7 +1896,7 @@ async def _validate_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1953,7 +1953,7 @@ async def begin_validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1966,8 +1966,8 @@ async def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2024,7 +2024,7 @@ async def _what_if_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2083,7 +2083,7 @@ async def begin_what_if_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the management group. @@ -2096,8 +2096,8 @@ async def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2153,7 +2153,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2211,7 +2211,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -2289,7 +2289,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2331,7 +2331,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2347,8 +2347,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2398,7 +2398,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2451,7 +2451,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2506,7 +2506,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2518,8 +2518,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2573,7 +2573,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2627,7 +2627,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2684,7 +2684,7 @@ async def _validate_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -2740,7 +2740,7 @@ async def begin_validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2751,8 +2751,8 @@ async def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2807,7 +2807,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2865,7 +2865,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2876,8 +2876,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2931,7 +2931,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2986,7 +2986,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -3063,7 +3063,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3107,7 +3107,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -3127,8 +3127,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3181,7 +3181,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -3239,7 +3239,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -3296,7 +3296,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -3311,8 +3311,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3369,7 +3369,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -3427,7 +3427,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3488,7 +3488,7 @@ async def _validate_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -3546,7 +3546,7 @@ async def begin_validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3560,8 +3560,8 @@ async def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3619,7 +3619,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3679,7 +3679,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3693,8 +3693,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3751,7 +3751,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3810,7 +3810,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3889,13 +3889,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateHashResult @@ -3923,7 +3923,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_operations.py index 26fa281e7cc..42fa6e52664 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_providers_operations.py index 27eb4ce3a3c..05ab8a1e8f7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -98,7 +98,7 @@ async def unregister( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -153,7 +153,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -231,7 +231,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -305,7 +305,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -365,7 +365,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resource_groups_operations.py index 4ca96a24c56..3864239625f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -209,7 +209,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -221,8 +221,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -272,7 +272,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +328,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +395,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -448,7 +448,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -458,8 +458,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -514,7 +514,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resources_operations.py index 8cec5abd03e..3fd5cd31fd5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_tags_operations.py index acd7758c02a..370bb9dd649 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag value for a predefined tag name. @@ -104,7 +104,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a predefined value for a predefined tag name. @@ -168,7 +168,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a predefined tag name. @@ -231,7 +231,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag name. @@ -285,7 +285,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets a summary of tag usage under the subscription. @@ -358,7 +358,7 @@ async def create_or_update_at_scope( self, scope: str, parameters: "_models.TagsResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Creates or updates the entire set of tags on a resource or subscription. @@ -422,7 +422,7 @@ async def update_at_scope( self, scope: str, parameters: "_models.TagsPatchResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Selectively updates the set of tags on a resource or subscription. @@ -489,7 +489,7 @@ async def update_at_scope( async def get_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Gets the entire set of tags on a resource or subscription. @@ -544,7 +544,7 @@ async def get_at_scope( async def delete_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the entire set of tags on a resource or subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models.py index dd86ec2dc96..10c9c15c13e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models.py @@ -218,11 +218,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -385,7 +385,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_10_01.models.TargetResource :ivar request: The HTTP request message. @@ -414,7 +414,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -475,7 +475,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink @@ -483,7 +483,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -506,9 +506,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -543,7 +543,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2019_10_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -551,7 +551,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2019_10_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -599,11 +599,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -706,7 +706,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink @@ -714,7 +714,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -740,9 +740,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -787,7 +787,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -797,7 +797,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -942,7 +942,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -967,7 +967,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1005,7 +1005,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1042,7 +1042,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1093,11 +1093,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1555,13 +1555,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_10_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -2215,9 +2215,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_10_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_10_01.models.WhatIfPropertyChange] """ @@ -2230,8 +2230,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2286,9 +2286,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_10_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_10_01.models.WhatIfPropertyChange] """ @@ -2301,8 +2301,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models_py3.py index 7b65222fe38..c065ef352f2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -251,17 +251,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -430,7 +430,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): :ivar status_code: Operation status code. :vartype status_code: str :ivar status_message: Operation status message. - :vartype status_message: str + :vartype status_message: any :ivar target_resource: The target resource. :vartype target_resource: ~azure.mgmt.resource.resources.v2019_10_01.models.TargetResource :ivar request: The HTTP request message. @@ -459,7 +459,7 @@ class DeploymentOperationProperties(msrest.serialization.Model): 'duration': {'key': 'duration', 'type': 'str'}, 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, 'request': {'key': 'request', 'type': 'HttpMessage'}, 'response': {'key': 'response', 'type': 'HttpMessage'}, @@ -522,7 +522,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink @@ -530,7 +530,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -553,9 +553,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -566,9 +566,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -598,7 +598,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2019_10_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -606,7 +606,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2019_10_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -654,11 +654,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -766,7 +766,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink @@ -774,7 +774,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -800,9 +800,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -814,9 +814,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -858,7 +858,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -868,7 +868,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1019,7 +1019,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1044,7 +1044,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1057,7 +1057,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1091,7 +1091,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2019_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1128,7 +1128,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1144,7 +1144,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1192,17 +1192,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1702,20 +1702,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2019_10_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2431,9 +2431,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2019_10_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2019_10_01.models.WhatIfPropertyChange] """ @@ -2446,8 +2446,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2456,8 +2456,8 @@ def __init__( *, resource_id: str, change_type: Union[str, "ChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2512,9 +2512,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2019_10_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2019_10_01.models.WhatIfPropertyChange] """ @@ -2527,8 +2527,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2537,8 +2537,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_deployments_operations.py index 91275741ed9..1f93630db97 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -544,8 +544,8 @@ def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -798,8 +798,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -969,8 +969,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1202,8 +1202,8 @@ def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1327,8 +1327,8 @@ def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1573,8 +1573,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1755,8 +1755,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2003,8 +2003,8 @@ def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2135,8 +2135,8 @@ def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2390,8 +2390,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2564,8 +2564,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2801,8 +2801,8 @@ def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2928,8 +2928,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3183,8 +3183,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3370,8 +3370,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3623,8 +3623,8 @@ def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3758,8 +3758,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3956,14 +3956,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2019_10_01.models.TemplateHashResult @@ -3991,7 +3991,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resource_groups_operations.py index 3d5a642ab0d..3fe7898e0ae 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resource_groups_operations.py @@ -229,8 +229,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -470,8 +470,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py index 29815731f76..e04e5e8686c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2019_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployment_operations_operations.py index 0801c9f278b..5d7ba97f87e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployments_operations.py index d9084a0dc86..3aa5d0b97ed 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def _validate_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -518,7 +518,7 @@ async def begin_validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -531,8 +531,8 @@ async def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -588,7 +588,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -646,7 +646,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -724,7 +724,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -765,7 +765,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -781,8 +781,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -883,7 +883,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -937,7 +937,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -949,8 +949,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1003,7 +1003,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1056,7 +1056,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1112,7 +1112,7 @@ async def _validate_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1167,7 +1167,7 @@ async def begin_validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1178,8 +1178,8 @@ async def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1233,7 +1233,7 @@ async def _what_if_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -1290,7 +1290,7 @@ async def begin_what_if_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -1301,8 +1301,8 @@ async def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1355,7 +1355,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1409,7 +1409,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1482,7 +1482,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1525,7 +1525,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1543,8 +1543,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1596,7 +1596,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1652,7 +1652,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1708,7 +1708,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1722,8 +1722,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1779,7 +1779,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1836,7 +1836,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1896,7 +1896,7 @@ async def _validate_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1953,7 +1953,7 @@ async def begin_validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1966,8 +1966,8 @@ async def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2024,7 +2024,7 @@ async def _what_if_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2083,7 +2083,7 @@ async def begin_what_if_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the management group. @@ -2096,8 +2096,8 @@ async def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2153,7 +2153,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2211,7 +2211,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -2289,7 +2289,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2331,7 +2331,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2347,8 +2347,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2398,7 +2398,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2451,7 +2451,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2506,7 +2506,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2518,8 +2518,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2573,7 +2573,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2627,7 +2627,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2684,7 +2684,7 @@ async def _validate_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -2740,7 +2740,7 @@ async def begin_validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2751,8 +2751,8 @@ async def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2807,7 +2807,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2865,7 +2865,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2876,8 +2876,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2931,7 +2931,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2986,7 +2986,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -3063,7 +3063,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3107,7 +3107,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -3127,8 +3127,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3181,7 +3181,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -3239,7 +3239,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -3296,7 +3296,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -3311,8 +3311,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3369,7 +3369,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -3427,7 +3427,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3488,7 +3488,7 @@ async def _validate_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -3546,7 +3546,7 @@ async def begin_validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3560,8 +3560,8 @@ async def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3619,7 +3619,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3679,7 +3679,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3693,8 +3693,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3751,7 +3751,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3810,7 +3810,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3889,13 +3889,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateHashResult @@ -3923,7 +3923,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_operations.py index 44b828a70ae..29b3fe4f215 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_providers_operations.py index 9b04984bd56..95a24e3dcb7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -99,7 +99,7 @@ async def register_at_management_group_scope( self, resource_provider_namespace: str, group_id: str, - **kwargs + **kwargs: Any ) -> None: """Registers a management group with a resource provider. @@ -152,7 +152,7 @@ async def register_at_management_group_scope( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -207,7 +207,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -285,7 +285,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -359,7 +359,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -419,7 +419,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resource_groups_operations.py index 99d720ebc8f..af25efd1991 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,8 +167,8 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - force_deletion_resource_types: Optional[str] = None, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -188,8 +188,8 @@ async def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] - if force_deletion_resource_types is not None: - query_parameters['forceDeletionResourceTypes'] = self._serialize.query("force_deletion_resource_types", force_deletion_resource_types, 'str') + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -212,8 +212,8 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - force_deletion_resource_types: Optional[str] = None, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -223,14 +223,14 @@ async def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str - :param force_deletion_resource_types: The resource types you want to force delete. Currently, - only the following is supported: - forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. - :type force_deletion_resource_types: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -247,7 +247,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - force_deletion_resource_types=force_deletion_resource_types, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -281,7 +281,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -337,7 +337,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -404,7 +404,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -457,7 +457,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -467,8 +467,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -523,7 +523,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resources_operations.py index 45000cd7ce6..0bce012cbac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_tags_operations.py index a677cfaf943..d905bb2f83e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag value for a predefined tag name. @@ -104,7 +104,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a predefined value for a predefined tag name. @@ -168,7 +168,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a predefined tag name. @@ -231,7 +231,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag name. @@ -285,7 +285,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets a summary of tag usage under the subscription. @@ -358,7 +358,7 @@ async def create_or_update_at_scope( self, scope: str, parameters: "_models.TagsResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Creates or updates the entire set of tags on a resource or subscription. @@ -422,7 +422,7 @@ async def update_at_scope( self, scope: str, parameters: "_models.TagsPatchResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Selectively updates the set of tags on a resource or subscription. @@ -489,7 +489,7 @@ async def update_at_scope( async def get_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Gets the entire set of tags on a resource or subscription. @@ -544,7 +544,7 @@ async def get_at_scope( async def delete_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the entire set of tags on a resource or subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models.py index 903db549424..fcca90ab86b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models.py @@ -303,11 +303,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -562,7 +562,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink @@ -570,7 +570,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -598,9 +598,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -640,7 +640,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2020_06_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -648,7 +648,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2020_06_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -696,11 +696,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -803,7 +803,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink @@ -811,7 +811,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -842,9 +842,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -890,7 +890,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -900,7 +900,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1066,7 +1066,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_06_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1090,7 +1090,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1128,7 +1128,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_06_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1164,7 +1164,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1215,11 +1215,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1692,13 +1692,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2020_06_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -2378,9 +2378,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2020_06_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2020_06_01.models.WhatIfPropertyChange] """ @@ -2393,8 +2393,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2449,9 +2449,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2020_06_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2020_06_01.models.WhatIfPropertyChange] """ @@ -2464,8 +2464,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models_py3.py index befb1904629..368bc76b18d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -336,17 +336,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -609,7 +609,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink @@ -617,7 +617,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -645,9 +645,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -659,9 +659,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -696,7 +696,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2020_06_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -704,7 +704,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2020_06_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -752,11 +752,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -864,7 +864,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateLink @@ -872,7 +872,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -903,9 +903,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -918,9 +918,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -963,7 +963,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -973,7 +973,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1147,7 +1147,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_06_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1171,7 +1171,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1184,7 +1184,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1218,7 +1218,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_06_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1254,7 +1254,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1270,7 +1270,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1318,17 +1318,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1843,20 +1843,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2020_06_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2603,9 +2603,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2020_06_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2020_06_01.models.WhatIfPropertyChange] """ @@ -2618,8 +2618,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2628,8 +2628,8 @@ def __init__( *, resource_id: str, change_type: Union[str, "ChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2684,9 +2684,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2020_06_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2020_06_01.models.WhatIfPropertyChange] """ @@ -2699,8 +2699,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2709,8 +2709,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_deployments_operations.py index 8ec250c45b5..926e6f3d766 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -544,8 +544,8 @@ def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -798,8 +798,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -969,8 +969,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1202,8 +1202,8 @@ def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1327,8 +1327,8 @@ def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1573,8 +1573,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1755,8 +1755,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2003,8 +2003,8 @@ def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2135,8 +2135,8 @@ def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2390,8 +2390,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2564,8 +2564,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2801,8 +2801,8 @@ def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2928,8 +2928,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3183,8 +3183,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3370,8 +3370,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3623,8 +3623,8 @@ def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3758,8 +3758,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3956,14 +3956,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2020_06_01.models.TemplateHashResult @@ -3991,7 +3991,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resource_groups_operations.py index 464e9644e66..3eca4b6f41c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resource_groups_operations.py @@ -173,7 +173,7 @@ def create_or_update( def _delete_initial( self, resource_group_name, # type: str - force_deletion_resource_types=None, # type: Optional[str] + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> None @@ -195,8 +195,8 @@ def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] - if force_deletion_resource_types is not None: - query_parameters['forceDeletionResourceTypes'] = self._serialize.query("force_deletion_resource_types", force_deletion_resource_types, 'str') + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -219,7 +219,7 @@ def _delete_initial( def begin_delete( self, resource_group_name, # type: str - force_deletion_resource_types=None, # type: Optional[str] + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -231,14 +231,14 @@ def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str - :param force_deletion_resource_types: The resource types you want to force delete. Currently, - only the following is supported: - forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. - :type force_deletion_resource_types: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -255,7 +255,7 @@ def begin_delete( if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - force_deletion_resource_types=force_deletion_resource_types, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -479,8 +479,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resources_operations.py index 3044e2b206e..7b65e4a1cde 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_06_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployment_operations_operations.py index bc1d2dee971..0532aaf9b40 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployments_operations.py index 80942b27aac..406c817ac04 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def _validate_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -518,7 +518,7 @@ async def begin_validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -531,8 +531,8 @@ async def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -588,7 +588,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -646,7 +646,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -724,7 +724,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -765,7 +765,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -781,8 +781,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -883,7 +883,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -937,7 +937,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -949,8 +949,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1003,7 +1003,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1056,7 +1056,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1112,7 +1112,7 @@ async def _validate_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1167,7 +1167,7 @@ async def begin_validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1178,8 +1178,8 @@ async def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1233,7 +1233,7 @@ async def _what_if_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -1290,7 +1290,7 @@ async def begin_what_if_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -1301,8 +1301,8 @@ async def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1355,7 +1355,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1409,7 +1409,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1482,7 +1482,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1525,7 +1525,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1543,8 +1543,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1596,7 +1596,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1652,7 +1652,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1708,7 +1708,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1722,8 +1722,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1779,7 +1779,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1836,7 +1836,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1896,7 +1896,7 @@ async def _validate_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1953,7 +1953,7 @@ async def begin_validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1966,8 +1966,8 @@ async def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2024,7 +2024,7 @@ async def _what_if_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2083,7 +2083,7 @@ async def begin_what_if_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the management group. @@ -2096,8 +2096,8 @@ async def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2153,7 +2153,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2211,7 +2211,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -2289,7 +2289,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2331,7 +2331,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2347,8 +2347,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2398,7 +2398,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2451,7 +2451,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2506,7 +2506,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2518,8 +2518,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2573,7 +2573,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2627,7 +2627,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2684,7 +2684,7 @@ async def _validate_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -2740,7 +2740,7 @@ async def begin_validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2751,8 +2751,8 @@ async def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2807,7 +2807,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2865,7 +2865,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2876,8 +2876,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2931,7 +2931,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2986,7 +2986,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -3063,7 +3063,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3107,7 +3107,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -3127,8 +3127,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3181,7 +3181,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -3239,7 +3239,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -3296,7 +3296,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -3311,8 +3311,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3369,7 +3369,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -3427,7 +3427,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3488,7 +3488,7 @@ async def _validate_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -3546,7 +3546,7 @@ async def begin_validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3560,8 +3560,8 @@ async def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3619,7 +3619,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3679,7 +3679,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3693,8 +3693,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3751,7 +3751,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3810,7 +3810,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3889,13 +3889,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateHashResult @@ -3923,7 +3923,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_operations.py index 689228a6c6e..e277e786782 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_provider_resource_types_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_provider_resource_types_operations.py index 11db6dd69f8..bcad068044f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_provider_resource_types_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_provider_resource_types_operations.py @@ -44,7 +44,7 @@ async def list( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProviderResourceTypeListResult": """List the resource types for a specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_providers_operations.py index 2a570c8c915..ea6ef4749a5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -99,7 +99,7 @@ async def register_at_management_group_scope( self, resource_provider_namespace: str, group_id: str, - **kwargs + **kwargs: Any ) -> None: """Registers a management group with a resource provider. @@ -152,7 +152,7 @@ async def register_at_management_group_scope( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -207,7 +207,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -285,7 +285,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -359,7 +359,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -419,7 +419,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resource_groups_operations.py index aa8c1bed826..817110fcdc3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,7 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -209,7 +209,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -221,8 +221,8 @@ async def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -272,7 +272,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +328,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +395,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -448,7 +448,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -458,8 +458,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -514,7 +514,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resources_operations.py index 472ee885b75..7171b958b6b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_tags_operations.py index 92cea48f822..0e8eee6a0a3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag value for a predefined tag name. @@ -104,7 +104,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a predefined value for a predefined tag name. @@ -168,7 +168,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a predefined tag name. @@ -231,7 +231,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag name. @@ -285,7 +285,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets a summary of tag usage under the subscription. @@ -358,7 +358,7 @@ async def create_or_update_at_scope( self, scope: str, parameters: "_models.TagsResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Creates or updates the entire set of tags on a resource or subscription. @@ -422,7 +422,7 @@ async def update_at_scope( self, scope: str, parameters: "_models.TagsPatchResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Selectively updates the set of tags on a resource or subscription. @@ -489,7 +489,7 @@ async def update_at_scope( async def get_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Gets the entire set of tags on a resource or subscription. @@ -544,7 +544,7 @@ async def get_at_scope( async def delete_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the entire set of tags on a resource or subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models.py index a46c4b469eb..9fbb3c5c51e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models.py @@ -303,11 +303,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -562,7 +562,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink @@ -570,7 +570,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -598,9 +598,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -640,7 +640,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2020_10_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -648,7 +648,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2020_10_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -696,11 +696,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -803,7 +803,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink @@ -811,7 +811,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -842,9 +842,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -890,7 +890,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -900,7 +900,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1066,7 +1066,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1090,7 +1090,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1128,7 +1128,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1164,7 +1164,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1215,11 +1215,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1753,13 +1753,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2020_10_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -2446,9 +2446,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2020_10_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2020_10_01.models.WhatIfPropertyChange] """ @@ -2461,8 +2461,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2517,9 +2517,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2020_10_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2020_10_01.models.WhatIfPropertyChange] """ @@ -2532,8 +2532,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models_py3.py index 0cb8fc8ca88..43546fd1edd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -336,17 +336,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -609,7 +609,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink @@ -617,7 +617,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -645,9 +645,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -659,9 +659,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -696,7 +696,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2020_10_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -704,7 +704,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2020_10_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -752,11 +752,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -864,7 +864,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateLink @@ -872,7 +872,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -903,9 +903,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -918,9 +918,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -963,7 +963,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -973,7 +973,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1147,7 +1147,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1171,7 +1171,7 @@ class GenericResource(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1184,7 +1184,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1218,7 +1218,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2020_10_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1254,7 +1254,7 @@ class GenericResourceExpanded(GenericResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1270,7 +1270,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1318,17 +1318,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1911,20 +1911,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2020_10_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2679,9 +2679,9 @@ class WhatIfChange(msrest.serialization.Model): "NoChange", "Modify". :type change_type: str or ~azure.mgmt.resource.resources.v2020_10_01.models.ChangeType :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2020_10_01.models.WhatIfPropertyChange] """ @@ -2694,8 +2694,8 @@ class WhatIfChange(msrest.serialization.Model): _attribute_map = { 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2704,8 +2704,8 @@ def __init__( *, resource_id: str, change_type: Union[str, "ChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2760,9 +2760,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2020_10_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2020_10_01.models.WhatIfPropertyChange] """ @@ -2775,8 +2775,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2785,8 +2785,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_deployments_operations.py index 52e36c47929..3fc79edca65 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -544,8 +544,8 @@ def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -798,8 +798,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -969,8 +969,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1202,8 +1202,8 @@ def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1327,8 +1327,8 @@ def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1573,8 +1573,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1755,8 +1755,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2003,8 +2003,8 @@ def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2135,8 +2135,8 @@ def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2390,8 +2390,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2564,8 +2564,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2801,8 +2801,8 @@ def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2928,8 +2928,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3183,8 +3183,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3370,8 +3370,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3623,8 +3623,8 @@ def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3758,8 +3758,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3956,14 +3956,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2020_10_01.models.TemplateHashResult @@ -3991,7 +3991,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resource_groups_operations.py index 2e09799d8c9..a52d9e377c6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resource_groups_operations.py @@ -229,8 +229,8 @@ def begin_delete( :type resource_group_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -470,8 +470,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resources_operations.py index d542d3c1b93..50063aea13a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2020_10_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployment_operations_operations.py index 6ebc5bf57f2..786cf495ab7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployments_operations.py index 50db0c369ac..65ed90bb8bc 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def _validate_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -518,7 +518,7 @@ async def begin_validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -531,8 +531,8 @@ async def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -588,7 +588,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -646,7 +646,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -724,7 +724,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -765,7 +765,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -781,8 +781,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -883,7 +883,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -937,7 +937,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -949,8 +949,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1003,7 +1003,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1056,7 +1056,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1112,7 +1112,7 @@ async def _validate_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1167,7 +1167,7 @@ async def begin_validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1178,8 +1178,8 @@ async def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1233,7 +1233,7 @@ async def _what_if_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -1290,7 +1290,7 @@ async def begin_what_if_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -1301,8 +1301,8 @@ async def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1355,7 +1355,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1409,7 +1409,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1482,7 +1482,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1525,7 +1525,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1543,8 +1543,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1596,7 +1596,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1652,7 +1652,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1708,7 +1708,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1722,8 +1722,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1779,7 +1779,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1836,7 +1836,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1896,7 +1896,7 @@ async def _validate_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1953,7 +1953,7 @@ async def begin_validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1966,8 +1966,8 @@ async def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2024,7 +2024,7 @@ async def _what_if_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2083,7 +2083,7 @@ async def begin_what_if_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the management group. @@ -2096,8 +2096,8 @@ async def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2153,7 +2153,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2211,7 +2211,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -2289,7 +2289,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2331,7 +2331,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2347,8 +2347,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2398,7 +2398,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2451,7 +2451,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2506,7 +2506,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2518,8 +2518,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2573,7 +2573,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2627,7 +2627,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2684,7 +2684,7 @@ async def _validate_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -2740,7 +2740,7 @@ async def begin_validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2751,8 +2751,8 @@ async def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2807,7 +2807,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2865,7 +2865,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2876,8 +2876,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2931,7 +2931,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2986,7 +2986,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -3063,7 +3063,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3107,7 +3107,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -3127,8 +3127,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3181,7 +3181,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -3239,7 +3239,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -3296,7 +3296,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -3311,8 +3311,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3369,7 +3369,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -3427,7 +3427,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3488,7 +3488,7 @@ async def _validate_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -3546,7 +3546,7 @@ async def begin_validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3560,8 +3560,8 @@ async def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3619,7 +3619,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3679,7 +3679,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3693,8 +3693,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3751,7 +3751,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3810,7 +3810,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3889,13 +3889,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateHashResult @@ -3923,7 +3923,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_operations.py index 9b9f544376c..3c99bef2d85 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_provider_resource_types_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_provider_resource_types_operations.py index 517d3b627cd..4650265c662 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_provider_resource_types_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_provider_resource_types_operations.py @@ -44,7 +44,7 @@ async def list( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProviderResourceTypeListResult": """List the resource types for a specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_providers_operations.py index 85fbb1ba4c0..f6d141ffa83 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -99,7 +99,7 @@ async def register_at_management_group_scope( self, resource_provider_namespace: str, group_id: str, - **kwargs + **kwargs: Any ) -> None: """Registers a management group with a resource provider. @@ -152,7 +152,7 @@ async def register_at_management_group_scope( async def register( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -207,7 +207,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -285,7 +285,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -359,7 +359,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -419,7 +419,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resource_groups_operations.py index ee7f7b20027..be2f4123b77 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,8 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -187,6 +188,8 @@ async def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -209,7 +212,8 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -219,10 +223,14 @@ async def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -239,6 +247,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -272,7 +281,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +337,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +404,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -448,7 +457,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -458,8 +467,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -514,7 +523,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resources_operations.py index 8f3dcbf20a3..014693a7a92 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_tags_operations.py index 59ed54caabe..f8df30e3787 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag value for a predefined tag name. @@ -104,7 +104,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a predefined value for a predefined tag name. @@ -168,7 +168,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a predefined tag name. @@ -231,7 +231,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag name. @@ -285,7 +285,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets a summary of tag usage under the subscription. @@ -358,7 +358,7 @@ async def create_or_update_at_scope( self, scope: str, parameters: "_models.TagsResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Creates or updates the entire set of tags on a resource or subscription. @@ -422,7 +422,7 @@ async def update_at_scope( self, scope: str, parameters: "_models.TagsPatchResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Selectively updates the set of tags on a resource or subscription. @@ -489,7 +489,7 @@ async def update_at_scope( async def get_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Gets the entire set of tags on a resource or subscription. @@ -544,7 +544,7 @@ async def get_at_scope( async def delete_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the entire set of tags on a resource or subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models.py index 07bb57de5cf..db85b967a1d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models.py @@ -303,11 +303,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -562,7 +562,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink @@ -570,7 +570,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -598,9 +598,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -640,7 +640,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2021_01_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -648,7 +648,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2021_01_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -696,11 +696,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -803,7 +803,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink @@ -811,7 +811,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -842,9 +842,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -890,7 +890,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -900,7 +900,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1095,7 +1095,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_01_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1121,7 +1121,7 @@ class GenericResource(Resource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1161,7 +1161,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_01_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1199,7 +1199,7 @@ class GenericResourceExpanded(GenericResource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1250,11 +1250,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1784,13 +1784,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2021_01_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -2479,9 +2479,9 @@ class WhatIfChange(msrest.serialization.Model): :param unsupported_reason: The explanation about why the resource is unsupported by What-If. :type unsupported_reason: str :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2021_01_01.models.WhatIfPropertyChange] """ @@ -2495,8 +2495,8 @@ class WhatIfChange(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, 'unsupported_reason': {'key': 'unsupportedReason', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2552,9 +2552,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2021_01_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2021_01_01.models.WhatIfPropertyChange] """ @@ -2567,8 +2567,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models_py3.py index d02b664bbe5..61fd5439970 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -336,17 +336,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -609,7 +609,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink @@ -617,7 +617,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -645,9 +645,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -659,9 +659,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -696,7 +696,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2021_01_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -704,7 +704,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2021_01_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -752,11 +752,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -864,7 +864,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateLink @@ -872,7 +872,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -903,9 +903,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -918,9 +918,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -963,7 +963,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -973,7 +973,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1180,7 +1180,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_01_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1206,7 +1206,7 @@ class GenericResource(Resource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1220,7 +1220,7 @@ def __init__( extended_location: Optional["ExtendedLocation"] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1256,7 +1256,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_01_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1294,7 +1294,7 @@ class GenericResourceExpanded(GenericResource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1311,7 +1311,7 @@ def __init__( extended_location: Optional["ExtendedLocation"] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1359,17 +1359,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -1947,20 +1947,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2021_01_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2717,9 +2717,9 @@ class WhatIfChange(msrest.serialization.Model): :param unsupported_reason: The explanation about why the resource is unsupported by What-If. :type unsupported_reason: str :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2021_01_01.models.WhatIfPropertyChange] """ @@ -2733,8 +2733,8 @@ class WhatIfChange(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, 'unsupported_reason': {'key': 'unsupportedReason', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2744,8 +2744,8 @@ def __init__( resource_id: str, change_type: Union[str, "ChangeType"], unsupported_reason: Optional[str] = None, - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2801,9 +2801,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2021_01_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2021_01_01.models.WhatIfPropertyChange] """ @@ -2816,8 +2816,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -2826,8 +2826,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_deployments_operations.py index db8ca0d657f..1449cb13309 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -544,8 +544,8 @@ def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -798,8 +798,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -969,8 +969,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1202,8 +1202,8 @@ def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1327,8 +1327,8 @@ def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1573,8 +1573,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1755,8 +1755,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2003,8 +2003,8 @@ def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2135,8 +2135,8 @@ def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2390,8 +2390,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2564,8 +2564,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2801,8 +2801,8 @@ def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2928,8 +2928,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3183,8 +3183,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3370,8 +3370,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3623,8 +3623,8 @@ def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3758,8 +3758,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3956,14 +3956,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2021_01_01.models.TemplateHashResult @@ -3991,7 +3991,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resource_groups_operations.py index 69ae66188b2..dfa0b226ff2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resource_groups_operations.py @@ -173,6 +173,7 @@ def create_or_update( def _delete_initial( self, resource_group_name, # type: str + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> None @@ -194,6 +195,8 @@ def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -216,6 +219,7 @@ def _delete_initial( def begin_delete( self, resource_group_name, # type: str + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -227,10 +231,14 @@ def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -247,6 +255,7 @@ def begin_delete( if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -470,8 +479,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resources_operations.py index 52bbba01fc8..2d864eb2f3e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_01_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployment_operations_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployment_operations_operations.py index 983cb00ece5..a79b2bc3448 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployment_operations_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployment_operations_operations.py @@ -46,7 +46,7 @@ async def get_at_scope( scope: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -107,7 +107,7 @@ def list_at_scope( scope: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -184,7 +184,7 @@ async def get_at_tenant_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -241,7 +241,7 @@ def list_at_tenant_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -316,7 +316,7 @@ async def get_at_management_group_scope( group_id: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -377,7 +377,7 @@ def list_at_management_group_scope( group_id: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -454,7 +454,7 @@ async def get_at_subscription_scope( self, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -512,7 +512,7 @@ def list_at_subscription_scope( self, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. @@ -588,7 +588,7 @@ async def get( resource_group_name: str, deployment_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentOperation": """Gets a deployments operation. @@ -650,7 +650,7 @@ def list( resource_group_name: str, deployment_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentOperationsListResult"]: """Gets all deployments operations for a deployment. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployments_operations.py index 4f6c11a7635..db533e6df80 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_deployments_operations.py @@ -47,7 +47,7 @@ async def _delete_at_scope_initial( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -90,7 +90,7 @@ async def begin_delete_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -108,8 +108,8 @@ async def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -161,7 +161,7 @@ async def check_existence_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -217,7 +217,7 @@ async def _create_or_update_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -273,7 +273,7 @@ async def begin_create_or_update_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at a given scope. @@ -287,8 +287,8 @@ async def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -344,7 +344,7 @@ async def get_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -401,7 +401,7 @@ async def cancel_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -461,7 +461,7 @@ async def _validate_at_scope_initial( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -518,7 +518,7 @@ async def begin_validate_at_scope( scope: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -531,8 +531,8 @@ async def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -588,7 +588,7 @@ async def export_template_at_scope( self, scope: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -646,7 +646,7 @@ def list_at_scope( scope: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the given scope. @@ -724,7 +724,7 @@ async def get_next(next_link=None): async def _delete_at_tenant_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -765,7 +765,7 @@ async def _delete_at_tenant_scope_initial( async def begin_delete_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -781,8 +781,8 @@ async def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -883,7 +883,7 @@ async def _create_or_update_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -937,7 +937,7 @@ async def begin_create_or_update_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at tenant scope. @@ -949,8 +949,8 @@ async def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1003,7 +1003,7 @@ def get_long_running_output(pipeline_response): async def get_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1056,7 +1056,7 @@ async def get_at_tenant_scope( async def cancel_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1112,7 +1112,7 @@ async def _validate_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1167,7 +1167,7 @@ async def begin_validate_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1178,8 +1178,8 @@ async def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1233,7 +1233,7 @@ async def _what_if_at_tenant_scope_initial( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -1290,7 +1290,7 @@ async def begin_what_if_at_tenant_scope( self, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -1301,8 +1301,8 @@ async def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1355,7 +1355,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_tenant_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -1409,7 +1409,7 @@ def list_at_tenant_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments at the tenant scope. @@ -1482,7 +1482,7 @@ async def _delete_at_management_group_scope_initial( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1525,7 +1525,7 @@ async def begin_delete_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -1543,8 +1543,8 @@ async def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1596,7 +1596,7 @@ async def check_existence_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -1652,7 +1652,7 @@ async def _create_or_update_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -1708,7 +1708,7 @@ async def begin_create_or_update_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at management group scope. @@ -1722,8 +1722,8 @@ async def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1779,7 +1779,7 @@ async def get_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -1836,7 +1836,7 @@ async def cancel_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -1896,7 +1896,7 @@ async def _validate_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -1953,7 +1953,7 @@ async def begin_validate_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -1966,8 +1966,8 @@ async def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2024,7 +2024,7 @@ async def _what_if_at_management_group_scope_initial( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2083,7 +2083,7 @@ async def begin_what_if_at_management_group_scope( group_id: str, deployment_name: str, parameters: "_models.ScopedDeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the management group. @@ -2096,8 +2096,8 @@ async def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2153,7 +2153,7 @@ async def export_template_at_management_group_scope( self, group_id: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2211,7 +2211,7 @@ def list_at_management_group_scope( group_id: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a management group. @@ -2289,7 +2289,7 @@ async def get_next(next_link=None): async def _delete_at_subscription_scope_initial( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2331,7 +2331,7 @@ async def _delete_at_subscription_scope_initial( async def begin_delete_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -2347,8 +2347,8 @@ async def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2398,7 +2398,7 @@ def get_long_running_output(pipeline_response): async def check_existence_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -2451,7 +2451,7 @@ async def _create_or_update_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -2506,7 +2506,7 @@ async def begin_create_or_update_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources at subscription scope. @@ -2518,8 +2518,8 @@ async def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2573,7 +2573,7 @@ def get_long_running_output(pipeline_response): async def get_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -2627,7 +2627,7 @@ async def get_at_subscription_scope( async def cancel_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -2684,7 +2684,7 @@ async def _validate_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -2740,7 +2740,7 @@ async def begin_validate_at_subscription_scope( self, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -2751,8 +2751,8 @@ async def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2807,7 +2807,7 @@ async def _what_if_at_subscription_scope_initial( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -2865,7 +2865,7 @@ async def begin_what_if_at_subscription_scope( self, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -2876,8 +2876,8 @@ async def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2931,7 +2931,7 @@ def get_long_running_output(pipeline_response): async def export_template_at_subscription_scope( self, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -2986,7 +2986,7 @@ def list_at_subscription_scope( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a subscription. @@ -3063,7 +3063,7 @@ async def _delete_initial( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3107,7 +3107,7 @@ async def begin_delete( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a deployment from the deployment history. @@ -3127,8 +3127,8 @@ async def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3181,7 +3181,7 @@ async def check_existence( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether the deployment exists. @@ -3239,7 +3239,7 @@ async def _create_or_update_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": cls = kwargs.pop('cls', None) # type: ClsType["_models.DeploymentExtended"] error_map = { @@ -3296,7 +3296,7 @@ async def begin_create_or_update( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentExtended"]: """Deploys resources to a resource group. @@ -3311,8 +3311,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3369,7 +3369,7 @@ async def get( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExtended": """Gets a deployment. @@ -3427,7 +3427,7 @@ async def cancel( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a currently running template deployment. @@ -3488,7 +3488,7 @@ async def _validate_initial( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> Optional["_models.DeploymentValidateResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DeploymentValidateResult"]] error_map = { @@ -3546,7 +3546,7 @@ async def begin_validate( resource_group_name: str, deployment_name: str, parameters: "_models.Deployment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DeploymentValidateResult"]: """Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. @@ -3560,8 +3560,8 @@ async def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3619,7 +3619,7 @@ async def _what_if_initial( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> Optional["_models.WhatIfOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WhatIfOperationResult"]] error_map = { @@ -3679,7 +3679,7 @@ async def begin_what_if( resource_group_name: str, deployment_name: str, parameters: "_models.DeploymentWhatIf", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WhatIfOperationResult"]: """Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -3693,8 +3693,8 @@ async def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3751,7 +3751,7 @@ async def export_template( self, resource_group_name: str, deployment_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeploymentExportResult": """Exports the template used for specified deployment. @@ -3810,7 +3810,7 @@ def list_by_resource_group( resource_group_name: str, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeploymentListResult"]: """Get all the deployments for a resource group. @@ -3889,13 +3889,13 @@ async def get_next(next_link=None): async def calculate_template_hash( self, - template: str, - **kwargs + template: Any, + **kwargs: Any ) -> "_models.TemplateHashResult": """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateHashResult @@ -3923,7 +3923,7 @@ async def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_operations.py index 2be70fd12f1..78b0d9cd9ed 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_provider_resource_types_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_provider_resource_types_operations.py index e8e35a536da..2a0cbbdfcbe 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_provider_resource_types_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_provider_resource_types_operations.py @@ -44,7 +44,7 @@ async def list( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProviderResourceTypeListResult": """List the resource types for a specified resource provider. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_providers_operations.py index a95ebaa9e31..694e9dc9377 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_providers_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def unregister( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Unregisters a subscription from a resource provider. @@ -99,7 +99,7 @@ async def register_at_management_group_scope( self, resource_provider_namespace: str, group_id: str, - **kwargs + **kwargs: Any ) -> None: """Registers a management group with a resource provider. @@ -152,7 +152,7 @@ async def register_at_management_group_scope( async def provider_permissions( self, resource_provider_namespace: str, - **kwargs + **kwargs: Any ) -> "_models.ProviderPermissionListResult": """Get the provider permissions. @@ -207,7 +207,7 @@ async def register( self, resource_provider_namespace: str, properties: Optional["_models.ProviderRegistrationRequest"] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Registers a subscription with a resource provider. @@ -272,7 +272,7 @@ def list( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for a subscription. @@ -350,7 +350,7 @@ def list_at_tenant_scope( self, top: Optional[int] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProviderListResult"]: """Gets all resource providers for the tenant. @@ -424,7 +424,7 @@ async def get( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider. @@ -484,7 +484,7 @@ async def get_at_tenant_scope( self, resource_provider_namespace: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Provider": """Gets the specified resource provider at the tenant level. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resource_groups_operations.py index ce020ee8530..cff4525e67c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resource_groups_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_existence( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource group exists. @@ -100,7 +100,7 @@ async def create_or_update( self, resource_group_name: str, parameters: "_models.ResourceGroup", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Creates or updates a resource group. @@ -167,7 +167,8 @@ async def create_or_update( async def _delete_initial( self, resource_group_name: str, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -187,6 +188,8 @@ async def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -209,7 +212,8 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - **kwargs + force_deletion_types: Optional[str] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource group. @@ -219,10 +223,14 @@ async def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -239,6 +247,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -272,7 +281,7 @@ def get_long_running_output(pipeline_response): async def get( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Gets a resource group. @@ -328,7 +337,7 @@ async def update( self, resource_group_name: str, parameters: "_models.ResourceGroupPatchable", - **kwargs + **kwargs: Any ) -> "_models.ResourceGroup": """Updates a resource group. @@ -395,7 +404,7 @@ async def _export_template_initial( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.ResourceGroupExportResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ResourceGroupExportResult"]] error_map = { @@ -448,7 +457,7 @@ async def begin_export_template( self, resource_group_name: str, parameters: "_models.ExportTemplateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourceGroupExportResult"]: """Captures the specified resource group as a template. @@ -458,8 +467,8 @@ async def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) @@ -514,7 +523,7 @@ def list( self, filter: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceGroupListResult"]: """Gets all the resource groups for a subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resources_operations.py index 096bdb37dbb..4451948f8c3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_resources_operations.py @@ -49,7 +49,7 @@ def list_by_resource_group( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources for a resource group. @@ -147,7 +147,7 @@ async def _move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -195,7 +195,7 @@ async def begin_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves resources from one resource group to another resource group. @@ -211,8 +211,8 @@ async def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -264,7 +264,7 @@ async def _validate_move_resources_initial( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -312,7 +312,7 @@ async def begin_validate_move_resources( self, source_resource_group_name: str, parameters: "_models.ResourcesMoveInfo", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Validates whether resources can be moved from one resource group to another resource group. @@ -330,8 +330,8 @@ async def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -384,7 +384,7 @@ def list( filter: Optional[str] = None, expand: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceListResult"]: """Get all the resources in a subscription. @@ -483,7 +483,7 @@ async def check_existence( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks whether a resource exists. @@ -554,7 +554,7 @@ async def _delete_initial( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -604,7 +604,7 @@ async def begin_delete( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource. @@ -623,8 +623,8 @@ async def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -689,7 +689,7 @@ async def _create_or_update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -753,7 +753,7 @@ async def begin_create_or_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Creates a resource. @@ -774,8 +774,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -844,7 +844,7 @@ async def _update_initial( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -905,7 +905,7 @@ async def begin_update( resource_name: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource. @@ -926,8 +926,8 @@ async def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -995,7 +995,7 @@ async def get( resource_type: str, resource_name: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource. @@ -1064,7 +1064,7 @@ async def check_existence_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> bool: """Checks by ID whether a resource exists. @@ -1119,7 +1119,7 @@ async def _delete_by_id_initial( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1160,7 +1160,7 @@ async def begin_delete_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a resource by ID. @@ -1172,8 +1172,8 @@ async def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1225,7 +1225,7 @@ async def _create_or_update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1280,7 +1280,7 @@ async def begin_create_or_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Create a resource by ID. @@ -1294,8 +1294,8 @@ async def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1351,7 +1351,7 @@ async def _update_by_id_initial( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> Optional["_models.GenericResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GenericResource"]] error_map = { @@ -1403,7 +1403,7 @@ async def begin_update_by_id( resource_id: str, api_version: str, parameters: "_models.GenericResource", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GenericResource"]: """Updates a resource by ID. @@ -1417,8 +1417,8 @@ async def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1473,7 +1473,7 @@ async def get_by_id( self, resource_id: str, api_version: str, - **kwargs + **kwargs: Any ) -> "_models.GenericResource": """Gets a resource by ID. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_tags_operations.py index 4e4b16fc2fb..162a607fdfe 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/aio/operations/_tags_operations.py @@ -45,7 +45,7 @@ async def delete_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag value for a predefined tag name. @@ -104,7 +104,7 @@ async def create_or_update_value( self, tag_name: str, tag_value: str, - **kwargs + **kwargs: Any ) -> "_models.TagValue": """Creates a predefined value for a predefined tag name. @@ -168,7 +168,7 @@ async def create_or_update_value( async def create_or_update( self, tag_name: str, - **kwargs + **kwargs: Any ) -> "_models.TagDetails": """Creates a predefined tag name. @@ -231,7 +231,7 @@ async def create_or_update( async def delete( self, tag_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a predefined tag name. @@ -285,7 +285,7 @@ async def delete( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TagsListResult"]: """Gets a summary of tag usage under the subscription. @@ -358,7 +358,7 @@ async def create_or_update_at_scope( self, scope: str, parameters: "_models.TagsResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Creates or updates the entire set of tags on a resource or subscription. @@ -422,7 +422,7 @@ async def update_at_scope( self, scope: str, parameters: "_models.TagsPatchResource", - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Selectively updates the set of tags on a resource or subscription. @@ -489,7 +489,7 @@ async def update_at_scope( async def get_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> "_models.TagsResource": """Gets the entire set of tags on a resource or subscription. @@ -544,7 +544,7 @@ async def get_at_scope( async def delete_at_scope( self, scope: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the entire set of tags on a resource or subscription. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models.py index 0fb569131d8..780af0ee0cd 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models.py @@ -303,11 +303,11 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -562,7 +562,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink @@ -570,7 +570,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -598,9 +598,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -640,7 +640,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2021_04_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -648,7 +648,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2021_04_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -696,11 +696,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -803,7 +803,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink @@ -811,7 +811,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -842,9 +842,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -890,7 +890,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -900,7 +900,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1095,7 +1095,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_04_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1121,7 +1121,7 @@ class GenericResource(Resource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1161,7 +1161,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_04_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1199,7 +1199,7 @@ class GenericResourceExpanded(GenericResource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1250,11 +1250,11 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( @@ -1923,13 +1923,13 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2021_04_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } @@ -2653,9 +2653,9 @@ class WhatIfChange(msrest.serialization.Model): :param unsupported_reason: The explanation about why the resource is unsupported by What-If. :type unsupported_reason: str :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2021_04_01.models.WhatIfPropertyChange] """ @@ -2669,8 +2669,8 @@ class WhatIfChange(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, 'unsupported_reason': {'key': 'unsupportedReason', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2726,9 +2726,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2021_04_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2021_04_01.models.WhatIfPropertyChange] """ @@ -2741,8 +2741,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models_py3.py index a526a7f6cec..59501980744 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -336,17 +336,17 @@ class DeploymentExportResult(msrest.serialization.Model): """The deployment export result. :param template: The template content. - :type template: str + :type template: any """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(DeploymentExportResult, self).__init__(**kwargs) @@ -609,7 +609,7 @@ class DeploymentProperties(msrest.serialization.Model): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink @@ -617,7 +617,7 @@ class DeploymentProperties(msrest.serialization.Model): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -645,9 +645,9 @@ class DeploymentProperties(msrest.serialization.Model): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -659,9 +659,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -696,7 +696,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar duration: The duration of the template deployment. :vartype duration: str :ivar outputs: Key/value pairs that represent deployment output. - :vartype outputs: str + :vartype outputs: any :ivar providers: The list of resource providers needed for the deployment. :vartype providers: list[~azure.mgmt.resource.resources.v2021_04_01.models.Provider] :ivar dependencies: The list of deployment dependencies. @@ -704,7 +704,7 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): :ivar template_link: The URI referencing the template. :vartype template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink :ivar parameters: Deployment parameters. - :vartype parameters: str + :vartype parameters: any :ivar parameters_link: The URI referencing the parameters. :vartype parameters_link: ~azure.mgmt.resource.resources.v2021_04_01.models.ParametersLink :ivar mode: The deployment mode. Possible values are Incremental and Complete. Possible values @@ -752,11 +752,11 @@ class DeploymentPropertiesExtended(msrest.serialization.Model): 'correlation_id': {'key': 'correlationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'duration': {'key': 'duration', 'type': 'str'}, - 'outputs': {'key': 'outputs', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, 'providers': {'key': 'providers', 'type': '[Provider]'}, 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -864,7 +864,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. - :type template: str + :type template: any :param template_link: The URI of the template. Use either the templateLink property or the template property, but not both. :type template_link: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateLink @@ -872,7 +872,7 @@ class DeploymentWhatIfProperties(DeploymentProperties): You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. - :type parameters: str + :type parameters: any :param parameters_link: The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. @@ -903,9 +903,9 @@ class DeploymentWhatIfProperties(DeploymentProperties): } _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, 'mode': {'key': 'mode', 'type': 'str'}, 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, @@ -918,9 +918,9 @@ def __init__( self, *, mode: Union[str, "DeploymentMode"], - template: Optional[str] = None, + template: Optional[Any] = None, template_link: Optional["TemplateLink"] = None, - parameters: Optional[str] = None, + parameters: Optional[Any] = None, parameters_link: Optional["ParametersLink"] = None, debug_setting: Optional["DebugSetting"] = None, on_error_deployment: Optional["OnErrorDeployment"] = None, @@ -963,7 +963,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -973,7 +973,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -1180,7 +1180,7 @@ class GenericResource(Resource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_04_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1206,7 +1206,7 @@ class GenericResource(Resource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1220,7 +1220,7 @@ def __init__( extended_location: Optional["ExtendedLocation"] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1256,7 +1256,7 @@ class GenericResourceExpanded(GenericResource): :param plan: The plan of the resource. :type plan: ~azure.mgmt.resource.resources.v2021_04_01.models.Plan :param properties: The resource properties. - :type properties: str + :type properties: any :param kind: The kind of the resource. :type kind: str :param managed_by: ID of the resource that manages this resource. @@ -1294,7 +1294,7 @@ class GenericResourceExpanded(GenericResource): 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'kind': {'key': 'kind', 'type': 'str'}, 'managed_by': {'key': 'managedBy', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, @@ -1311,7 +1311,7 @@ def __init__( extended_location: Optional["ExtendedLocation"] = None, tags: Optional[Dict[str, str]] = None, plan: Optional["Plan"] = None, - properties: Optional[str] = None, + properties: Optional[Any] = None, kind: Optional[str] = None, managed_by: Optional[str] = None, sku: Optional["Sku"] = None, @@ -1359,17 +1359,17 @@ class HttpMessage(msrest.serialization.Model): """HTTP message. :param content: HTTP message content. - :type content: str + :type content: any """ _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'object'}, } def __init__( self, *, - content: Optional[str] = None, + content: Optional[Any] = None, **kwargs ): super(HttpMessage, self).__init__(**kwargs) @@ -2103,20 +2103,20 @@ class ResourceGroupExportResult(msrest.serialization.Model): """Resource group export result. :param template: The template content. - :type template: str + :type template: any :param error: The template export error. :type error: ~azure.mgmt.resource.resources.v2021_04_01.models.ErrorResponse """ _attribute_map = { - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__( self, *, - template: Optional[str] = None, + template: Optional[Any] = None, error: Optional["ErrorResponse"] = None, **kwargs ): @@ -2914,9 +2914,9 @@ class WhatIfChange(msrest.serialization.Model): :param unsupported_reason: The explanation about why the resource is unsupported by What-If. :type unsupported_reason: str :param before: The snapshot of the resource before the deployment is executed. - :type before: str + :type before: any :param after: The predicted snapshot of the resource after the deployment is executed. - :type after: str + :type after: any :param delta: The predicted changes to resource properties. :type delta: list[~azure.mgmt.resource.resources.v2021_04_01.models.WhatIfPropertyChange] """ @@ -2930,8 +2930,8 @@ class WhatIfChange(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'change_type': {'key': 'changeType', 'type': 'str'}, 'unsupported_reason': {'key': 'unsupportedReason', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'delta': {'key': 'delta', 'type': '[WhatIfPropertyChange]'}, } @@ -2941,8 +2941,8 @@ def __init__( resource_id: str, change_type: Union[str, "ChangeType"], unsupported_reason: Optional[str] = None, - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, delta: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): @@ -2998,9 +2998,9 @@ class WhatIfPropertyChange(msrest.serialization.Model): :type property_change_type: str or ~azure.mgmt.resource.resources.v2021_04_01.models.PropertyChangeType :param before: The value of the property before the deployment is executed. - :type before: str + :type before: any :param after: The value of the property after the deployment is executed. - :type after: str + :type after: any :param children: Nested property changes. :type children: list[~azure.mgmt.resource.resources.v2021_04_01.models.WhatIfPropertyChange] """ @@ -3013,8 +3013,8 @@ class WhatIfPropertyChange(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'property_change_type': {'key': 'propertyChangeType', 'type': 'str'}, - 'before': {'key': 'before', 'type': 'str'}, - 'after': {'key': 'after', 'type': 'str'}, + 'before': {'key': 'before', 'type': 'object'}, + 'after': {'key': 'after', 'type': 'object'}, 'children': {'key': 'children', 'type': '[WhatIfPropertyChange]'}, } @@ -3023,8 +3023,8 @@ def __init__( *, path: str, property_change_type: Union[str, "PropertyChangeType"], - before: Optional[str] = None, - after: Optional[str] = None, + before: Optional[Any] = None, + after: Optional[Any] = None, children: Optional[List["WhatIfPropertyChange"]] = None, **kwargs ): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_deployments_operations.py index 0818bab4e3b..36fda6cde6f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_deployments_operations.py @@ -114,8 +114,8 @@ def begin_delete_at_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -296,8 +296,8 @@ def begin_create_or_update_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -544,8 +544,8 @@ def begin_validate_at_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -798,8 +798,8 @@ def begin_delete_at_tenant_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -969,8 +969,8 @@ def begin_create_or_update_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -1202,8 +1202,8 @@ def begin_validate_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -1327,8 +1327,8 @@ def begin_what_if_at_tenant_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -1573,8 +1573,8 @@ def begin_delete_at_management_group_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1755,8 +1755,8 @@ def begin_create_or_update_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2003,8 +2003,8 @@ def begin_validate_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2135,8 +2135,8 @@ def begin_what_if_at_management_group_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ScopedDeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -2390,8 +2390,8 @@ def begin_delete_at_subscription_scope( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -2564,8 +2564,8 @@ def begin_create_or_update_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -2801,8 +2801,8 @@ def begin_validate_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -2928,8 +2928,8 @@ def begin_what_if_at_subscription_scope( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3183,8 +3183,8 @@ def begin_delete( :type deployment_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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -3370,8 +3370,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentExtended or the result of cls(response) @@ -3623,8 +3623,8 @@ def begin_validate( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.Deployment :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 DeploymentValidateResult or the result of cls(response) @@ -3758,8 +3758,8 @@ def begin_what_if( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.DeploymentWhatIf :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 WhatIfOperationResult or the result of cls(response) @@ -3956,14 +3956,14 @@ def get_next(next_link=None): def calculate_template_hash( self, - template, # type: str + template, # type: Any **kwargs # type: Any ): # type: (...) -> "_models.TemplateHashResult" """Calculate the hash of the given template. :param template: The template provided to calculate hash. - :type template: str + :type template: any :keyword callable cls: A custom type or function that will be passed the direct response :return: TemplateHashResult, or the result of cls(response) :rtype: ~azure.mgmt.resource.resources.v2021_04_01.models.TemplateHashResult @@ -3991,7 +3991,7 @@ def calculate_template_hash( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(template, 'str') + body_content = self._serialize.body(template, 'object') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py index af75838b035..eeea0d7398a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py @@ -173,6 +173,7 @@ def create_or_update( def _delete_initial( self, resource_group_name, # type: str + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> None @@ -194,6 +195,8 @@ def _delete_initial( # Construct parameters query_parameters = {} # type: Dict[str, Any] + if force_deletion_types is not None: + query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -216,6 +219,7 @@ def _delete_initial( def begin_delete( self, resource_group_name, # type: str + force_deletion_types=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -227,10 +231,14 @@ def begin_delete( :param resource_group_name: The name of the resource group to delete. The name is case insensitive. :type resource_group_name: str + :param force_deletion_types: The resource types you want to force delete. Currently, only the + following is supported: + forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets. + :type force_deletion_types: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -247,6 +255,7 @@ def begin_delete( if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, + force_deletion_types=force_deletion_types, cls=lambda x,y,z: x, **kwargs ) @@ -470,8 +479,8 @@ def begin_export_template( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ExportTemplateRequest :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ResourceGroupExportResult or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resources_operations.py index b5c8aa7b45d..8ca4aed124b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resources_operations.py @@ -218,8 +218,8 @@ def begin_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -339,8 +339,8 @@ def begin_validate_move_resources( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.ResourcesMoveInfo :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -789,8 +789,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -943,8 +943,8 @@ def begin_update( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1193,8 +1193,8 @@ def begin_delete_by_id( :type api_version: 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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 None or the result of cls(response) @@ -1317,8 +1317,8 @@ def begin_create_or_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) @@ -1442,8 +1442,8 @@ def begin_update_by_id( :type parameters: ~azure.mgmt.resource.resources.v2021_04_01.models.GenericResource :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: 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. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 GenericResource or the result of cls(response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/aio/_operations_mixin.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/aio/_operations_mixin.py index b7f7e76ba43..28b797545d9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/aio/_operations_mixin.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/aio/_operations_mixin.py @@ -23,7 +23,7 @@ class SubscriptionClientOperationsMixin(object): async def check_resource_name( self, resource_name_definition: Optional["_models.ResourceName"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckResourceNameResult": """Checks resource name validity. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_metadata.json index 8033992c1a2..fd9d33b0cdb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_metadata.json @@ -101,7 +101,7 @@ }, "async": { "coroutine": true, - "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs\n) -\u003e \"_models.CheckResourceNameResult\":\n", + "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs: Any\n) -\u003e \"_models.CheckResourceNameResult\":\n", "doc": "\"\"\"Checks resource name validity.\n\nA resource name is valid if it is not a reserved word, does not contains a reserved word and\ndoes not start with a reserved word.\n\n:param resource_name_definition: Resource object with values for resource name and resource\n type.\n:type resource_name_definition: ~azure.mgmt.resource.subscriptions.v2016_06_01.models.ResourceName\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckResourceNameResult, or the result of cls(response)\n:rtype: ~azure.mgmt.resource.subscriptions.v2016_06_01.models.CheckResourceNameResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "resource_name_definition" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_operations.py index a8fac6890b8..9d9e2d97594 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscription_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscription_client_operations.py index cef41122846..058e383a491 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscription_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscription_client_operations.py @@ -23,7 +23,7 @@ class SubscriptionClientOperationsMixin: async def check_resource_name( self, resource_name_definition: Optional["_models.ResourceName"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckResourceNameResult": """Checks resource name validity. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscriptions_operations.py index f6140982d6f..936ba9ba68e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_subscriptions_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_locations( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.LocationListResult"]: """Gets all available geo-locations. @@ -116,7 +116,7 @@ async def get_next(next_link=None): async def get( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> "_models.Subscription": """Gets details about a specified subscription. @@ -168,7 +168,7 @@ async def get( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SubscriptionListResult"]: """Gets all subscriptions for a tenant. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_tenants_operations.py index 2cd9ace83f3..c583f593ae2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/aio/operations/_tenants_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TenantListResult"]: """Gets the tenants for your account. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_metadata.json index f070ae6e57a..45847e78131 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_metadata.json @@ -101,7 +101,7 @@ }, "async": { "coroutine": true, - "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs\n) -\u003e \"_models.CheckResourceNameResult\":\n", + "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs: Any\n) -\u003e \"_models.CheckResourceNameResult\":\n", "doc": "\"\"\"Checks resource name validity.\n\nA resource name is valid if it is not a reserved word, does not contains a reserved word and\ndoes not start with a reserved word.\n\n:param resource_name_definition: Resource object with values for resource name and resource\n type.\n:type resource_name_definition: ~azure.mgmt.resource.subscriptions.v2018_06_01.models.ResourceName\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckResourceNameResult, or the result of cls(response)\n:rtype: ~azure.mgmt.resource.subscriptions.v2018_06_01.models.CheckResourceNameResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "resource_name_definition" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_operations.py index 49671f17a2b..8fd054170f9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscription_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscription_client_operations.py index 94294bb844d..119ea610e50 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscription_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscription_client_operations.py @@ -23,7 +23,7 @@ class SubscriptionClientOperationsMixin: async def check_resource_name( self, resource_name_definition: Optional["_models.ResourceName"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckResourceNameResult": """Checks resource name validity. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscriptions_operations.py index fd0dfe09488..396fbf1b477 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_subscriptions_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_locations( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.LocationListResult"]: """Gets all available geo-locations. @@ -116,7 +116,7 @@ async def get_next(next_link=None): async def get( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> "_models.Subscription": """Gets details about a specified subscription. @@ -168,7 +168,7 @@ async def get( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SubscriptionListResult"]: """Gets all subscriptions for a tenant. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_tenants_operations.py index 5d5724c9c7f..051589a6322 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/operations/_tenants_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TenantListResult"]: """Gets the tenants for your account. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_metadata.json index 3a082c2967f..54a53baf719 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_metadata.json @@ -101,7 +101,7 @@ }, "async": { "coroutine": true, - "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs\n) -\u003e \"_models.CheckResourceNameResult\":\n", + "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs: Any\n) -\u003e \"_models.CheckResourceNameResult\":\n", "doc": "\"\"\"Checks resource name validity.\n\nA resource name is valid if it is not a reserved word, does not contains a reserved word and\ndoes not start with a reserved word.\n\n:param resource_name_definition: Resource object with values for resource name and resource\n type.\n:type resource_name_definition: ~azure.mgmt.resource.subscriptions.v2019_06_01.models.ResourceName\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckResourceNameResult, or the result of cls(response)\n:rtype: ~azure.mgmt.resource.subscriptions.v2019_06_01.models.CheckResourceNameResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "resource_name_definition" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_operations.py index b7f336a1662..15d0a0ebdda 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscription_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscription_client_operations.py index 869cb91e165..6ea42433ed7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscription_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscription_client_operations.py @@ -23,7 +23,7 @@ class SubscriptionClientOperationsMixin: async def check_resource_name( self, resource_name_definition: Optional["_models.ResourceName"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckResourceNameResult": """Checks resource name validity. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscriptions_operations.py index 900311d4832..b9a0affc1a1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_subscriptions_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_locations( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.LocationListResult"]: """Gets all available geo-locations. @@ -116,7 +116,7 @@ async def get_next(next_link=None): async def get( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> "_models.Subscription": """Gets details about a specified subscription. @@ -168,7 +168,7 @@ async def get( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SubscriptionListResult"]: """Gets all subscriptions for a tenant. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_tenants_operations.py index 5f18815b8c9..a77d20786f7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_06_01/aio/operations/_tenants_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TenantListResult"]: """Gets the tenants for your account. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_metadata.json b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_metadata.json index 0d8c8df8e7b..cd790642ce1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_metadata.json +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_metadata.json @@ -101,7 +101,7 @@ }, "async": { "coroutine": true, - "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs\n) -\u003e \"_models.CheckResourceNameResult\":\n", + "signature": "async def check_resource_name(\n self,\n resource_name_definition: Optional[\"_models.ResourceName\"] = None,\n **kwargs: Any\n) -\u003e \"_models.CheckResourceNameResult\":\n", "doc": "\"\"\"Checks resource name validity.\n\nA resource name is valid if it is not a reserved word, does not contains a reserved word and\ndoes not start with a reserved word.\n\n:param resource_name_definition: Resource object with values for resource name and resource\n type.\n:type resource_name_definition: ~azure.mgmt.resource.subscriptions.v2019_11_01.models.ResourceName\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckResourceNameResult, or the result of cls(response)\n:rtype: ~azure.mgmt.resource.subscriptions.v2019_11_01.models.CheckResourceNameResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "resource_name_definition" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_operations.py index 908806a4a17..f5588e46db1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Microsoft.Resources REST API operations. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscription_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscription_client_operations.py index 2201110ad5e..9e3c80511e8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscription_client_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscription_client_operations.py @@ -23,7 +23,7 @@ class SubscriptionClientOperationsMixin: async def check_resource_name( self, resource_name_definition: Optional["_models.ResourceName"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckResourceNameResult": """Checks resource name validity. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscriptions_operations.py index dd3a18b1d83..748e3bca79a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_subscriptions_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_locations( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.LocationListResult"]: """Gets all available geo-locations. @@ -116,7 +116,7 @@ async def get_next(next_link=None): async def get( self, subscription_id: str, - **kwargs + **kwargs: Any ) -> "_models.Subscription": """Gets details about a specified subscription. @@ -168,7 +168,7 @@ async def get( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SubscriptionListResult"]: """Gets all subscriptions for a tenant. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_tenants_operations.py index b53010ae50b..508c62b0a6d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/operations/_tenants_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TenantListResult"]: """Gets the tenants for your account. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_spec_versions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_spec_versions_operations.py index 2da0b5cd5fe..35201adcc5f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_spec_versions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_spec_versions_operations.py @@ -47,7 +47,7 @@ async def create_or_update( template_spec_name: str, template_spec_version: str, template_spec_version_model: "_models.TemplateSpecVersion", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Creates or updates a Template Spec version. @@ -122,7 +122,7 @@ async def update( template_spec_name: str, template_spec_version: str, template_spec_version_update_model: Optional["_models.TemplateSpecVersionUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Updates Template Spec Version tags with specified values. @@ -196,7 +196,7 @@ async def get( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Gets a Template Spec version from a specific Template Spec. @@ -259,7 +259,7 @@ async def delete( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content. @@ -319,7 +319,7 @@ def list( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecVersionsListResult"]: """Lists all the Template Spec versions in the specified Template Spec. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_specs_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_specs_operations.py index b5b76a029b8..611488455cc 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_specs_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/aio/operations/_template_specs_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, template_spec_name: str, template_spec: "_models.TemplateSpec", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Creates or updates a Template Spec. @@ -117,7 +117,7 @@ async def update( resource_group_name: str, template_spec_name: str, template_spec: Optional["_models.TemplateSpecUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Updates Template Spec tags with specified values. @@ -187,7 +187,7 @@ async def get( resource_group_name: str, template_spec_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Gets a Template Spec with a given name. @@ -251,7 +251,7 @@ async def delete( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a Template Spec by name. When operation completes, status code 200 returned without content. @@ -307,7 +307,7 @@ async def delete( def list_by_subscription( self, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified subscriptions. @@ -381,7 +381,7 @@ def list_by_resource_group( self, resource_group_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified resource group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models.py index 1b5711e122d..e6ce0d16122 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models.py @@ -59,7 +59,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -69,7 +69,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -337,7 +337,7 @@ class TemplateSpecTemplateArtifact(TemplateSpecArtifact): :type kind: str or ~azure.mgmt.resource.templatespecs.v2019_06_01_preview.models.TemplateSpecArtifactKind :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -349,7 +349,7 @@ class TemplateSpecTemplateArtifact(TemplateSpecArtifact): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -429,7 +429,7 @@ class TemplateSpecVersion(AzureResourceBase): :param description: Template Spec version description. :type description: str :param template: The Azure Resource Manager template content. - :type template: str + :type template: any """ _validation = { @@ -450,7 +450,7 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'artifacts': {'key': 'properties.artifacts', 'type': '[TemplateSpecArtifact]'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, + 'template': {'key': 'properties.template', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models_py3.py index a15897a94ac..f0dac4565a9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -64,7 +64,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -74,7 +74,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -360,7 +360,7 @@ class TemplateSpecTemplateArtifact(TemplateSpecArtifact): :type kind: str or ~azure.mgmt.resource.templatespecs.v2019_06_01_preview.models.TemplateSpecArtifactKind :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -372,14 +372,14 @@ class TemplateSpecTemplateArtifact(TemplateSpecArtifact): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, path: str, - template: str, + template: Any, **kwargs ): super(TemplateSpecTemplateArtifact, self).__init__(path=path, **kwargs) @@ -457,7 +457,7 @@ class TemplateSpecVersion(AzureResourceBase): :param description: Template Spec version description. :type description: str :param template: The Azure Resource Manager template content. - :type template: str + :type template: any """ _validation = { @@ -478,7 +478,7 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'artifacts': {'key': 'properties.artifacts', 'type': '[TemplateSpecArtifact]'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'template': {'key': 'properties.template', 'type': 'str'}, + 'template': {'key': 'properties.template', 'type': 'object'}, } def __init__( @@ -488,7 +488,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, artifacts: Optional[List["TemplateSpecArtifact"]] = None, description: Optional[str] = None, - template: Optional[str] = None, + template: Optional[Any] = None, **kwargs ): super(TemplateSpecVersion, self).__init__(**kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_spec_versions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_spec_versions_operations.py index 553bdb16611..6a149a1b549 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_spec_versions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_spec_versions_operations.py @@ -47,7 +47,7 @@ async def create_or_update( template_spec_name: str, template_spec_version: str, template_spec_version_model: "_models.TemplateSpecVersion", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Creates or updates a Template Spec version. @@ -122,7 +122,7 @@ async def update( template_spec_name: str, template_spec_version: str, template_spec_version_update_model: Optional["_models.TemplateSpecVersionUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Updates Template Spec Version tags with specified values. @@ -196,7 +196,7 @@ async def get( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Gets a Template Spec version from a specific Template Spec. @@ -259,7 +259,7 @@ async def delete( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content. @@ -319,7 +319,7 @@ def list( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecVersionsListResult"]: """Lists all the Template Spec versions in the specified Template Spec. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_specs_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_specs_operations.py index f4dd1a56117..68bcaeb2b8a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_specs_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/aio/operations/_template_specs_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, template_spec_name: str, template_spec: "_models.TemplateSpec", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Creates or updates a Template Spec. @@ -117,7 +117,7 @@ async def update( resource_group_name: str, template_spec_name: str, template_spec: Optional["_models.TemplateSpecUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Updates Template Spec tags with specified values. @@ -187,7 +187,7 @@ async def get( resource_group_name: str, template_spec_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Gets a Template Spec with a given name. @@ -251,7 +251,7 @@ async def delete( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a Template Spec by name. When operation completes, status code 200 returned without content. @@ -307,7 +307,7 @@ async def delete( def list_by_subscription( self, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified subscriptions. @@ -381,7 +381,7 @@ def list_by_resource_group( self, resource_group_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified resource group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models.py index 91f4e053b19..ff4a9c7b982 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models.py @@ -59,7 +59,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -69,7 +69,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -136,7 +136,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): :param path: Required. A filesystem safe relative path of the artifact. :type path: str :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -146,7 +146,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -228,7 +228,7 @@ class TemplateSpec(AzureResourceBase): :type display_name: str :param metadata: The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :ivar versions: High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'. :vartype versions: dict[str, @@ -255,7 +255,7 @@ class TemplateSpec(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'versions': {'key': 'properties.versions', 'type': '{TemplateSpecVersionInfo}'}, } @@ -390,11 +390,11 @@ class TemplateSpecVersion(AzureResourceBase): list[~azure.mgmt.resource.templatespecs.v2021_03_01_preview.models.LinkedTemplateArtifact] :param metadata: The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :param main_template: The main Azure Resource Manager template content. - :type main_template: str + :type main_template: any :param ui_form_definition: The Azure Resource Manager template UI definition content. - :type ui_form_definition: str + :type ui_form_definition: any """ _validation = { @@ -415,9 +415,9 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'linked_templates': {'key': 'properties.linkedTemplates', 'type': '[LinkedTemplateArtifact]'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models_py3.py index eb404a6f2bc..33d58637d49 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_03_01_preview/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -64,7 +64,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -74,7 +74,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -141,7 +141,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): :param path: Required. A filesystem safe relative path of the artifact. :type path: str :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -151,14 +151,14 @@ class LinkedTemplateArtifact(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, path: str, - template: str, + template: Any, **kwargs ): super(LinkedTemplateArtifact, self).__init__(**kwargs) @@ -243,7 +243,7 @@ class TemplateSpec(AzureResourceBase): :type display_name: str :param metadata: The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :ivar versions: High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'. :vartype versions: dict[str, @@ -270,7 +270,7 @@ class TemplateSpec(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'versions': {'key': 'properties.versions', 'type': '{TemplateSpecVersionInfo}'}, } @@ -281,7 +281,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, display_name: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(TemplateSpec, self).__init__(**kwargs) @@ -417,11 +417,11 @@ class TemplateSpecVersion(AzureResourceBase): list[~azure.mgmt.resource.templatespecs.v2021_03_01_preview.models.LinkedTemplateArtifact] :param metadata: The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :param main_template: The main Azure Resource Manager template content. - :type main_template: str + :type main_template: any :param ui_form_definition: The Azure Resource Manager template UI definition content. - :type ui_form_definition: str + :type ui_form_definition: any """ _validation = { @@ -442,9 +442,9 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'linked_templates': {'key': 'properties.linkedTemplates', 'type': '[LinkedTemplateArtifact]'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'object'}, } def __init__( @@ -454,9 +454,9 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, linked_templates: Optional[List["LinkedTemplateArtifact"]] = None, - metadata: Optional[str] = None, - main_template: Optional[str] = None, - ui_form_definition: Optional[str] = None, + metadata: Optional[Any] = None, + main_template: Optional[Any] = None, + ui_form_definition: Optional[Any] = None, **kwargs ): super(TemplateSpecVersion, self).__init__(**kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/_version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/_version.py index 55d872662d0..e5754a47ce6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/_version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "17.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_spec_versions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_spec_versions_operations.py index bc7b3d7d249..884b4462240 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_spec_versions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_spec_versions_operations.py @@ -47,7 +47,7 @@ async def create_or_update( template_spec_name: str, template_spec_version: str, template_spec_version_model: "_models.TemplateSpecVersion", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Creates or updates a Template Spec version. @@ -122,7 +122,7 @@ async def update( template_spec_name: str, template_spec_version: str, template_spec_version_update_model: Optional["_models.TemplateSpecVersionUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Updates Template Spec Version tags with specified values. @@ -196,7 +196,7 @@ async def get( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpecVersion": """Gets a Template Spec version from a specific Template Spec. @@ -259,7 +259,7 @@ async def delete( resource_group_name: str, template_spec_name: str, template_spec_version: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content. @@ -319,7 +319,7 @@ def list( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecVersionsListResult"]: """Lists all the Template Spec versions in the specified Template Spec. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_specs_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_specs_operations.py index 4aead04f602..06f0a6e0e33 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_specs_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/aio/operations/_template_specs_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, template_spec_name: str, template_spec: "_models.TemplateSpec", - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Creates or updates a Template Spec. @@ -117,7 +117,7 @@ async def update( resource_group_name: str, template_spec_name: str, template_spec: Optional["_models.TemplateSpecUpdateModel"] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Updates Template Spec tags with specified values. @@ -187,7 +187,7 @@ async def get( resource_group_name: str, template_spec_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> "_models.TemplateSpec": """Gets a Template Spec with a given name. @@ -251,7 +251,7 @@ async def delete( self, resource_group_name: str, template_spec_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a Template Spec by name. When operation completes, status code 200 returned without content. @@ -307,7 +307,7 @@ async def delete( def list_by_subscription( self, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified subscriptions. @@ -381,7 +381,7 @@ def list_by_resource_group( self, resource_group_name: str, expand: Optional[Union[str, "_models.TemplateSpecExpandKind"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TemplateSpecsListResult"]: """Lists all the Template Specs within the specified resource group. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models.py index d4d68283b0e..fd4cf9c9c43 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models.py @@ -59,7 +59,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -69,7 +69,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -135,7 +135,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): :param path: Required. A filesystem safe relative path of the artifact. :type path: str :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -145,7 +145,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( @@ -227,7 +227,7 @@ class TemplateSpec(AzureResourceBase): :type display_name: str :param metadata: The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :ivar versions: High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'. :vartype versions: dict[str, @@ -254,7 +254,7 @@ class TemplateSpec(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'versions': {'key': 'properties.versions', 'type': '{TemplateSpecVersionInfo}'}, } @@ -389,11 +389,11 @@ class TemplateSpecVersion(AzureResourceBase): list[~azure.mgmt.resource.templatespecs.v2021_05_01.models.LinkedTemplateArtifact] :param metadata: The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :param main_template: The main Azure Resource Manager template content. - :type main_template: str + :type main_template: any :param ui_form_definition: The Azure Resource Manager template UI definition content. - :type ui_form_definition: str + :type ui_form_definition: any """ _validation = { @@ -414,9 +414,9 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'linked_templates': {'key': 'properties.linkedTemplates', 'type': '[LinkedTemplateArtifact]'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'object'}, } def __init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models_py3.py index 58169e995d3..571ab35add4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -64,7 +64,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: str + :vartype info: any """ _validation = { @@ -74,7 +74,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, } def __init__( @@ -140,7 +140,7 @@ class LinkedTemplateArtifact(msrest.serialization.Model): :param path: Required. A filesystem safe relative path of the artifact. :type path: str :param template: Required. The Azure Resource Manager template. - :type template: str + :type template: any """ _validation = { @@ -150,14 +150,14 @@ class LinkedTemplateArtifact(msrest.serialization.Model): _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'object'}, } def __init__( self, *, path: str, - template: str, + template: Any, **kwargs ): super(LinkedTemplateArtifact, self).__init__(**kwargs) @@ -242,7 +242,7 @@ class TemplateSpec(AzureResourceBase): :type display_name: str :param metadata: The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :ivar versions: High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'. :vartype versions: dict[str, @@ -269,7 +269,7 @@ class TemplateSpec(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, 'versions': {'key': 'properties.versions', 'type': '{TemplateSpecVersionInfo}'}, } @@ -280,7 +280,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, display_name: Optional[str] = None, - metadata: Optional[str] = None, + metadata: Optional[Any] = None, **kwargs ): super(TemplateSpec, self).__init__(**kwargs) @@ -416,11 +416,11 @@ class TemplateSpecVersion(AzureResourceBase): list[~azure.mgmt.resource.templatespecs.v2021_05_01.models.LinkedTemplateArtifact] :param metadata: The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - :type metadata: str + :type metadata: any :param main_template: The main Azure Resource Manager template content. - :type main_template: str + :type main_template: any :param ui_form_definition: The Azure Resource Manager template UI definition content. - :type ui_form_definition: str + :type ui_form_definition: any """ _validation = { @@ -441,9 +441,9 @@ class TemplateSpecVersion(AzureResourceBase): 'tags': {'key': 'tags', 'type': '{str}'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'linked_templates': {'key': 'properties.linkedTemplates', 'type': '[LinkedTemplateArtifact]'}, - 'metadata': {'key': 'properties.metadata', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'str'}, - 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'ui_form_definition': {'key': 'properties.uiFormDefinition', 'type': 'object'}, } def __init__( @@ -453,9 +453,9 @@ def __init__( tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, linked_templates: Optional[List["LinkedTemplateArtifact"]] = None, - metadata: Optional[str] = None, - main_template: Optional[str] = None, - ui_form_definition: Optional[str] = None, + metadata: Optional[Any] = None, + main_template: Optional[Any] = None, + ui_form_definition: Optional[Any] = None, **kwargs ): super(TemplateSpecVersion, self).__init__(**kwargs)