Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 = {}