Skip to content

Commit f28101e

Browse files
author
SDK Automation
committed
Generated from ff1e11c67c28cf17008e44908fd0dcfb10f45c55
removed duplicate tracked resource definition
1 parent 2794060 commit f28101e

Some content is hidden

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

51 files changed

+5050
-470
lines changed

sdk/mariadb/arm-mariadb/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/mariadb/arm-mariadb/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ npm install @azure/arm-mariadb
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
@@ -99,4 +100,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
99100

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

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

sdk/mariadb/arm-mariadb/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "1.4.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/mariaDBManagementClient.js",
2121
"types": "./esm/mariaDBManagementClient.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/mariadb/arm-mariadb",
3030
"repository": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
*/
1010

1111
import * as msRest from "@azure/ms-rest-js";
12+
import * as msRestAzure from "@azure/ms-rest-azure-js";
1213
import * as Models from "./models";
1314
import * as Mappers from "./models/mappers";
15+
import * as Parameters from "./models/parameters";
1416
import * as operations from "./operations";
1517
import { MariaDBManagementClientContext } from "./mariaDBManagementClientContext";
1618

@@ -26,13 +28,22 @@ class MariaDBManagementClient extends MariaDBManagementClientContext {
2628
logFiles: operations.LogFiles;
2729
locationBasedPerformanceTier: operations.LocationBasedPerformanceTier;
2830
checkNameAvailability: operations.CheckNameAvailability;
29-
serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies;
3031
operations: operations.Operations;
32+
queryTexts: operations.QueryTexts;
33+
topQueryStatistics: operations.TopQueryStatistics;
34+
waitStatistics: operations.WaitStatistics;
35+
advisors: operations.Advisors;
36+
recommendedActions: operations.RecommendedActions;
37+
locationBasedRecommendedActionSessionsOperationStatus: operations.LocationBasedRecommendedActionSessionsOperationStatus;
38+
locationBasedRecommendedActionSessionsResult: operations.LocationBasedRecommendedActionSessionsResult;
39+
privateEndpointConnections: operations.PrivateEndpointConnections;
40+
privateLinkResources: operations.PrivateLinkResources;
41+
serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies;
3142

3243
/**
3344
* Initializes a new instance of the MariaDBManagementClient class.
3445
* @param credentials Credentials needed for the client to connect to Azure.
35-
* @param subscriptionId The subscription ID that identifies an Azure subscription.
46+
* @param subscriptionId The ID of the target subscription.
3647
* @param [options] The parameter options
3748
*/
3849
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) {
@@ -46,12 +57,83 @@ class MariaDBManagementClient extends MariaDBManagementClientContext {
4657
this.logFiles = new operations.LogFiles(this);
4758
this.locationBasedPerformanceTier = new operations.LocationBasedPerformanceTier(this);
4859
this.checkNameAvailability = new operations.CheckNameAvailability(this);
49-
this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this);
5060
this.operations = new operations.Operations(this);
61+
this.queryTexts = new operations.QueryTexts(this);
62+
this.topQueryStatistics = new operations.TopQueryStatistics(this);
63+
this.waitStatistics = new operations.WaitStatistics(this);
64+
this.advisors = new operations.Advisors(this);
65+
this.recommendedActions = new operations.RecommendedActions(this);
66+
this.locationBasedRecommendedActionSessionsOperationStatus = new operations.LocationBasedRecommendedActionSessionsOperationStatus(this);
67+
this.locationBasedRecommendedActionSessionsResult = new operations.LocationBasedRecommendedActionSessionsResult(this);
68+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
69+
this.privateLinkResources = new operations.PrivateLinkResources(this);
70+
this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this);
71+
}
72+
73+
/**
74+
* Create recommendation action session for the advisor.
75+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
76+
* @param serverName The name of the server.
77+
* @param advisorName The advisor name for recommendation action.
78+
* @param databaseName The name of the database.
79+
* @param [options] The optional parameters
80+
* @returns Promise<msRest.RestResponse>
81+
*/
82+
createRecommendedActionSession(resourceGroupName: string, serverName: string, advisorName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
83+
return this.beginCreateRecommendedActionSession(resourceGroupName,serverName,advisorName,databaseName,options)
84+
.then(lroPoller => lroPoller.pollUntilFinished());
85+
}
86+
87+
/**
88+
* Create recommendation action session for the advisor.
89+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
90+
* @param serverName The name of the server.
91+
* @param advisorName The advisor name for recommendation action.
92+
* @param databaseName The name of the database.
93+
* @param [options] The optional parameters
94+
* @returns Promise<msRestAzure.LROPoller>
95+
*/
96+
beginCreateRecommendedActionSession(resourceGroupName: string, serverName: string, advisorName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
97+
return this.sendLRORequest(
98+
{
99+
resourceGroupName,
100+
serverName,
101+
advisorName,
102+
databaseName,
103+
options
104+
},
105+
beginCreateRecommendedActionSessionOperationSpec,
106+
options);
51107
}
52108
}
53109

54110
// Operation Specifications
111+
const serializer = new msRest.Serializer(Mappers);
112+
const beginCreateRecommendedActionSessionOperationSpec: msRest.OperationSpec = {
113+
httpMethod: "POST",
114+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}/createRecommendedActionSession",
115+
urlParameters: [
116+
Parameters.subscriptionId,
117+
Parameters.resourceGroupName,
118+
Parameters.serverName,
119+
Parameters.advisorName
120+
],
121+
queryParameters: [
122+
Parameters.apiVersion,
123+
Parameters.databaseName
124+
],
125+
headerParameters: [
126+
Parameters.acceptLanguage
127+
],
128+
responses: {
129+
200: {},
130+
202: {},
131+
default: {
132+
bodyMapper: Mappers.CloudError
133+
}
134+
},
135+
serializer
136+
};
55137

56138
export {
57139
MariaDBManagementClient,

sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ const packageVersion = "1.4.0";
1717

1818
export class MariaDBManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials;
20-
subscriptionId: string;
2120
apiVersion?: string;
21+
subscriptionId: string;
2222

2323
/**
2424
* Initializes a new instance of the MariaDBManagementClient class.
2525
* @param credentials Credentials needed for the client to connect to Azure.
26-
* @param subscriptionId The subscription ID that identifies an Azure subscription.
26+
* @param subscriptionId The ID of the target subscription.
2727
* @param [options] The parameter options
2828
*/
2929
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) {
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
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+
Resource,
30+
Server,
31+
ServerPrivateEndpointConnection,
32+
ServerPrivateEndpointConnectionProperties,
33+
ServerPrivateLinkServiceConnectionStateProperty,
34+
ServerSecurityAlertPolicy,
35+
Sku,
36+
StorageProfile,
37+
TrackedResource,
38+
VirtualNetworkRule,
39+
WaitStatistic
40+
} from "../models/mappers";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
export {
1010
discriminators,
1111
CloudError,
12+
ErrorAdditionalInfo,
13+
ErrorResponse,
1214
NameAvailability,
1315
NameAvailabilityRequest
1416
} from "../models/mappers";

sdk/mariadb/arm-mariadb/src/models/configurationsMappers.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,35 @@
88

99
export {
1010
discriminators,
11+
Advisor,
12+
AzureEntityResource,
1113
BaseResource,
1214
CloudError,
1315
Configuration,
1416
ConfigurationListResult,
1517
Database,
18+
ErrorAdditionalInfo,
19+
ErrorResponse,
1620
FirewallRule,
1721
LogFile,
22+
PrivateEndpointConnection,
23+
PrivateEndpointProperty,
24+
PrivateLinkResource,
25+
PrivateLinkResourceProperties,
26+
PrivateLinkServiceConnectionStateProperty,
1827
ProxyResource,
28+
QueryStatistic,
29+
QueryText,
30+
RecommendationAction,
31+
Resource,
1932
Server,
33+
ServerPrivateEndpointConnection,
34+
ServerPrivateEndpointConnectionProperties,
35+
ServerPrivateLinkServiceConnectionStateProperty,
2036
ServerSecurityAlertPolicy,
2137
Sku,
2238
StorageProfile,
2339
TrackedResource,
24-
VirtualNetworkRule
40+
VirtualNetworkRule,
41+
WaitStatistic
2542
} from "../models/mappers";

sdk/mariadb/arm-mariadb/src/models/databasesMappers.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,35 @@
88

99
export {
1010
discriminators,
11+
Advisor,
12+
AzureEntityResource,
1113
BaseResource,
1214
CloudError,
1315
Configuration,
1416
Database,
1517
DatabaseListResult,
18+
ErrorAdditionalInfo,
19+
ErrorResponse,
1620
FirewallRule,
1721
LogFile,
22+
PrivateEndpointConnection,
23+
PrivateEndpointProperty,
24+
PrivateLinkResource,
25+
PrivateLinkResourceProperties,
26+
PrivateLinkServiceConnectionStateProperty,
1827
ProxyResource,
28+
QueryStatistic,
29+
QueryText,
30+
RecommendationAction,
31+
Resource,
1932
Server,
33+
ServerPrivateEndpointConnection,
34+
ServerPrivateEndpointConnectionProperties,
35+
ServerPrivateLinkServiceConnectionStateProperty,
2036
ServerSecurityAlertPolicy,
2137
Sku,
2238
StorageProfile,
2339
TrackedResource,
24-
VirtualNetworkRule
40+
VirtualNetworkRule,
41+
WaitStatistic
2542
} from "../models/mappers";

0 commit comments

Comments
 (0)