Skip to content

Commit f67d975

Browse files
author
SDKAuto
committed
CodeGen from PR 11884 in Azure/azure-rest-api-specs
Merge 3710c2b2c02a06a45869a75248eda927fe4a9225 into 7dddc4bf1e402b6e6737c132ecf05b74e2b53b08
1 parent 6c6ce54 commit f67d975

File tree

61 files changed

+7425
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+7425
-508
lines changed

sdk/mysql/arm-mysql/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/mysql/arm-mysql/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ npm install @azure/arm-mysql
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and get servers as an example written in TypeScript.
18+
#### nodejs - client creation and get servers as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
2728

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2830
```typescript
29-
import * as msRest from "@azure/ms-rest-js";
30-
import * as msRestAzure from "@azure/ms-rest-azure-js";
31-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
32-
import { MySQLManagementClient, MySQLManagementModels, MySQLManagementMappers } from "@azure/arm-mysql";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { MySQLManagementClient } = require("@azure/arm-mysql");
3333
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3434

3535
msRestNodeAuth.interactiveLogin().then((creds) => {
@@ -99,4 +99,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9999

100100
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
101101

102-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmysql%2Farm-mysql%2FREADME.png)
102+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mysql/arm-mysql/README.png)

sdk/mysql/arm-mysql/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "MySQLManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "3.3.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.3.2",
8-
"@azure/ms-rest-js": "^1.8.1",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,11 +20,11 @@
2020
"module": "./esm/mySQLManagementClient.js",
2121
"types": "./esm/mySQLManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
2929
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mysql/arm-mysql",
3030
"repository": {

sdk/mysql/arm-mysql/rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
Advisor,
12+
AdvisorsResultList,
13+
AzureEntityResource,
14+
BaseResource,
15+
CloudError,
16+
Configuration,
17+
Database,
18+
FirewallRule,
19+
LogFile,
20+
PrivateEndpointConnection,
21+
PrivateEndpointProperty,
22+
PrivateLinkResource,
23+
PrivateLinkResourceProperties,
24+
PrivateLinkServiceConnectionStateProperty,
25+
ProxyResource,
26+
QueryStatistic,
27+
QueryText,
28+
RecommendationAction,
29+
RecoverableServerResource,
30+
Resource,
31+
ResourceIdentity,
32+
Server,
33+
ServerAdministratorResource,
34+
ServerKey,
35+
ServerPrivateEndpointConnection,
36+
ServerPrivateEndpointConnectionProperties,
37+
ServerPrivateLinkServiceConnectionStateProperty,
38+
ServerSecurityAlertPolicy,
39+
Sku,
40+
StorageProfile,
41+
TrackedResource,
42+
VirtualNetworkRule,
43+
WaitStatistic
44+
} from "../models/mappers";

sdk/mysql/arm-mysql/src/models/checkNameAvailabilityMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,44 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11+
Advisor,
12+
AzureEntityResource,
1113
BaseResource,
1214
CloudError,
1315
Configuration,
1416
ConfigurationListResult,
1517
Database,
1618
FirewallRule,
1719
LogFile,
20+
PrivateEndpointConnection,
21+
PrivateEndpointProperty,
22+
PrivateLinkResource,
23+
PrivateLinkResourceProperties,
24+
PrivateLinkServiceConnectionStateProperty,
1825
ProxyResource,
26+
QueryStatistic,
27+
QueryText,
28+
RecommendationAction,
29+
RecoverableServerResource,
30+
Resource,
31+
ResourceIdentity,
1932
Server,
33+
ServerAdministratorResource,
34+
ServerKey,
35+
ServerPrivateEndpointConnection,
36+
ServerPrivateEndpointConnectionProperties,
37+
ServerPrivateLinkServiceConnectionStateProperty,
2038
ServerSecurityAlertPolicy,
2139
Sku,
2240
StorageProfile,
2341
TrackedResource,
24-
VirtualNetworkRule
42+
VirtualNetworkRule,
43+
WaitStatistic
2544
} from "../models/mappers";
Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,44 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11+
Advisor,
12+
AzureEntityResource,
1113
BaseResource,
1214
CloudError,
1315
Configuration,
1416
Database,
1517
DatabaseListResult,
1618
FirewallRule,
1719
LogFile,
20+
PrivateEndpointConnection,
21+
PrivateEndpointProperty,
22+
PrivateLinkResource,
23+
PrivateLinkResourceProperties,
24+
PrivateLinkServiceConnectionStateProperty,
1825
ProxyResource,
26+
QueryStatistic,
27+
QueryText,
28+
RecommendationAction,
29+
RecoverableServerResource,
30+
Resource,
31+
ResourceIdentity,
1932
Server,
33+
ServerAdministratorResource,
34+
ServerKey,
35+
ServerPrivateEndpointConnection,
36+
ServerPrivateEndpointConnectionProperties,
37+
ServerPrivateLinkServiceConnectionStateProperty,
2038
ServerSecurityAlertPolicy,
2139
Sku,
2240
StorageProfile,
2341
TrackedResource,
24-
VirtualNetworkRule
42+
VirtualNetworkRule,
43+
WaitStatistic
2544
} from "../models/mappers";
Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,44 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11+
Advisor,
12+
AzureEntityResource,
1113
BaseResource,
1214
CloudError,
1315
Configuration,
1416
Database,
1517
FirewallRule,
1618
FirewallRuleListResult,
1719
LogFile,
20+
PrivateEndpointConnection,
21+
PrivateEndpointProperty,
22+
PrivateLinkResource,
23+
PrivateLinkResourceProperties,
24+
PrivateLinkServiceConnectionStateProperty,
1825
ProxyResource,
26+
QueryStatistic,
27+
QueryText,
28+
RecommendationAction,
29+
RecoverableServerResource,
30+
Resource,
31+
ResourceIdentity,
1932
Server,
33+
ServerAdministratorResource,
34+
ServerKey,
35+
ServerPrivateEndpointConnection,
36+
ServerPrivateEndpointConnectionProperties,
37+
ServerPrivateLinkServiceConnectionStateProperty,
2038
ServerSecurityAlertPolicy,
2139
Sku,
2240
StorageProfile,
2341
TrackedResource,
24-
VirtualNetworkRule
42+
VirtualNetworkRule,
43+
WaitStatistic
2544
} from "../models/mappers";

0 commit comments

Comments
 (0)