How to use the azure-mgmt-sql.azure.mgmt.sql.models.CompleteDatabaseRestoreDefinition function in azure-mgmt-sql

To help you get started, we’ve selected a few azure-mgmt-sql 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-sql / azure / mgmt / sql / operations / managed_databases_operations.py View on Github external
def _complete_restore_initial(
            self, location_name, operation_id, last_backup_name, custom_headers=None, raw=False, **operation_config):
        parameters = models.CompleteDatabaseRestoreDefinition(last_backup_name=last_backup_name)

        # Construct URL
        url = self.complete_restore.metadata['url']
        path_format_arguments = {
            'locationName': self._serialize.url("location_name", location_name, 'str'),
            'operationId': self._serialize.url("operation_id", operation_id, 'str'),
            'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, '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')

        # Construct headers
        header_parameters = {}