How to use the azure-mgmt-devtestlabs.azure.mgmt.devtestlabs.models.DetachDiskProperties function in azure-mgmt-devtestlabs

To help you get started, we’ve selected a few azure-mgmt-devtestlabs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-mgmt-devtestlabs / azure / mgmt / devtestlabs / operations / disks_operations.py View on Github external
def _detach_initial(
            self, resource_group_name, lab_name, user_name, name, leased_by_lab_vm_id=None, custom_headers=None, raw=False, **operation_config):
        detach_disk_properties = models.DetachDiskProperties(leased_by_lab_vm_id=leased_by_lab_vm_id)

        # Construct URL
        url = self.detach.metadata['url']
        path_format_arguments = {
            'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
            'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
            'labName': self._serialize.url("lab_name", lab_name, 'str'),
            'userName': self._serialize.url("user_name", user_name, 'str'),
            'name': self._serialize.url("name", name, 'str')
        }
        url = self._client.format_url(url, **path_format_arguments)

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

azure-mgmt-devtestlabs

Microsoft Azure DevTestLabs Management Client Library for Python

MIT
Latest version published 4 years ago

Package Health Score

79 / 100
Full package analysis

Similar packages