How to use the azure-mgmt-rdbms.azure.mgmt.rdbms.mysql.models.Database function in azure-mgmt-rdbms

To help you get started, we’ve selected a few azure-mgmt-rdbms 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-rdbms / azure / mgmt / rdbms / mysql / operations / databases_operations.py View on Github external
def _create_or_update_initial(
            self, resource_group_name, server_name, database_name, charset=None, collation=None, custom_headers=None, raw=False, **operation_config):
        parameters = models.Database(charset=charset, collation=collation)

        # Construct URL
        url = self.create_or_update.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'),
            'serverName': self._serialize.url("server_name", server_name, 'str'),
            'databaseName': self._serialize.url("database_name", database_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')

        # Construct headers

azure-mgmt-rdbms

Microsoft Azure RDBMS Management Client Library for Python

MIT
Latest version published 3 years ago

Package Health Score

76 / 100
Full package analysis

Similar packages