Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/mariadbManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
33 changes: 18 additions & 15 deletions lib/services/mariadbManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,43 @@ uid: azure-arm-mariadb
summary: *content

---
# Microsoft Azure SDK for Node.js - MariaDBManagementClient
**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.**
## Microsoft Azure SDK for Node.js - MariaDBManagementClient

This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features
### Features


## How to Install
### How to Install

```bash
npm install azure-arm-mariadb
```

## How to use
### How to use

### Authentication, client creation and get servers as an example.
#### Authentication, client creation, and get servers as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const MariaDBManagementClient = require("azure-arm-mariadb");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new MariaDBManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const serverName = "testserverName";
return client.servers.get(resourceGroupName, serverName).then((result) => {
console.log("The result is:");
console.log(result);
});
const subscriptionId = "<Subscription_Id>";
const client = new MariaDBManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const serverName = "testserverName";

return client.servers.get(resourceGroupName, serverName).then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects
```
### Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
12 changes: 6 additions & 6 deletions lib/services/mariadbManagement/lib/models/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ const models = require('./index');
class Configuration extends models['ProxyResource'] {
/**
* Create a Configuration.
* @member {string} [value] Value of the configuration.
* @member {string} [description] Description of the configuration.
* @member {string} [defaultValue] Default value of the configuration.
* @member {string} [dataType] Data type of the configuration.
* @member {string} [allowedValues] Allowed values of the configuration.
* @member {string} [source] Source of the configuration.
* @property {string} [value] Value of the configuration.
* @property {string} [description] Description of the configuration.
* @property {string} [defaultValue] Default value of the configuration.
* @property {string} [dataType] Data type of the configuration.
* @property {string} [allowedValues] Allowed values of the configuration.
* @property {string} [source] Source of the configuration.
*/
constructor() {
super();
Expand Down
4 changes: 2 additions & 2 deletions lib/services/mariadbManagement/lib/models/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const models = require('./index');
class Database extends models['ProxyResource'] {
/**
* Create a Database.
* @member {string} [charset] The charset of the database.
* @member {string} [collation] The collation of the database.
* @property {string} [charset] The charset of the database.
* @property {string} [collation] The collation of the database.
*/
constructor() {
super();
Expand Down
8 changes: 4 additions & 4 deletions lib/services/mariadbManagement/lib/models/firewallRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const models = require('./index');
class FirewallRule extends models['ProxyResource'] {
/**
* Create a FirewallRule.
* @member {string} startIpAddress The start IP address of the server
* @property {string} startIpAddress The start IP address of the server
* firewall rule. Must be IPv4 format.
* @member {string} endIpAddress The end IP address of the server firewall
* @property {string} endIpAddress The end IP address of the server firewall
* rule. Must be IPv4 format.
*/
constructor() {
Expand Down Expand Up @@ -71,7 +71,7 @@ class FirewallRule extends models['ProxyResource'] {
required: true,
serializedName: 'properties.startIpAddress',
constraints: {
Pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
Pattern: /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/
},
type: {
name: 'String'
Expand All @@ -81,7 +81,7 @@ class FirewallRule extends models['ProxyResource'] {
required: true,
serializedName: 'properties.endIpAddress',
constraints: {
Pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
Pattern: /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/
},
type: {
name: 'String'
Expand Down
Loading