@azure/arm-mysql 5.0.0-alpha.20211112.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -10
- package/README.md +4 -0
- package/dist/index.js +33 -53
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +18 -18
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +29 -29
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/mySQLManagementClient.d.ts +4 -2
- package/dist-esm/src/mySQLManagementClient.d.ts.map +1 -1
- package/dist-esm/src/mySQLManagementClient.js +30 -3
- package/dist-esm/src/mySQLManagementClient.js.map +1 -1
- package/dist-esm/src/operations/advisors.d.ts +2 -2
- package/dist-esm/src/operations/advisors.d.ts.map +1 -1
- package/dist-esm/src/operations/advisors.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +2 -2
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts +2 -2
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +2 -2
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts +2 -2
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts +2 -2
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts +2 -2
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts +2 -2
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
- package/dist-esm/src/operations/logFiles.d.ts +2 -2
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/queryTexts.d.ts +2 -2
- package/dist-esm/src/operations/queryTexts.d.ts.map +1 -1
- package/dist-esm/src/operations/queryTexts.js.map +1 -1
- package/dist-esm/src/operations/recommendedActions.d.ts +2 -2
- package/dist-esm/src/operations/recommendedActions.d.ts.map +1 -1
- package/dist-esm/src/operations/recommendedActions.js.map +1 -1
- package/dist-esm/src/operations/recoverableServers.d.ts +2 -2
- package/dist-esm/src/operations/recoverableServers.d.ts.map +1 -1
- package/dist-esm/src/operations/recoverableServers.js.map +1 -1
- package/dist-esm/src/operations/replicas.d.ts +2 -2
- package/dist-esm/src/operations/replicas.d.ts.map +1 -1
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.d.ts +2 -2
- package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
- package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts +2 -2
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
- package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
- package/dist-esm/src/operations/serverKeys.d.ts +2 -2
- package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
- package/dist-esm/src/operations/serverKeys.js.map +1 -1
- package/dist-esm/src/operations/serverParameters.d.ts +2 -2
- package/dist-esm/src/operations/serverParameters.d.ts.map +1 -1
- package/dist-esm/src/operations/serverParameters.js.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts +2 -2
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts +2 -2
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/topQueryStatistics.d.ts +2 -2
- package/dist-esm/src/operations/topQueryStatistics.d.ts.map +1 -1
- package/dist-esm/src/operations/topQueryStatistics.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.d.ts +2 -2
- package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
- package/dist-esm/src/operations/waitStatistics.d.ts +2 -2
- package/dist-esm/src/operations/waitStatistics.d.ts.map +1 -1
- package/dist-esm/src/operations/waitStatistics.js.map +1 -1
- package/package.json +9 -18
- package/review/arm-mysql.api.md +5 -10
- package/src/index.ts +0 -1
- package/src/models/index.ts +19 -19
- package/src/models/mappers.ts +30 -30
- package/src/mySQLManagementClient.ts +43 -3
- package/src/operations/advisors.ts +3 -3
- package/src/operations/checkNameAvailability.ts +3 -3
- package/src/operations/configurations.ts +3 -3
- package/src/operations/databases.ts +3 -3
- package/src/operations/firewallRules.ts +3 -3
- package/src/operations/locationBasedPerformanceTier.ts +3 -3
- package/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts +3 -3
- package/src/operations/locationBasedRecommendedActionSessionsResult.ts +3 -3
- package/src/operations/logFiles.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/src/operations/privateEndpointConnections.ts +3 -3
- package/src/operations/privateLinkResources.ts +3 -3
- package/src/operations/queryTexts.ts +3 -3
- package/src/operations/recommendedActions.ts +3 -3
- package/src/operations/recoverableServers.ts +3 -3
- package/src/operations/replicas.ts +3 -3
- package/src/operations/serverAdministrators.ts +3 -3
- package/src/operations/serverBasedPerformanceTier.ts +3 -3
- package/src/operations/serverKeys.ts +3 -3
- package/src/operations/serverParameters.ts +3 -3
- package/src/operations/serverSecurityAlertPolicies.ts +3 -3
- package/src/operations/servers.ts +3 -3
- package/src/operations/topQueryStatistics.ts +3 -3
- package/src/operations/virtualNetworkRules.ts +3 -3
- package/src/operations/waitStatistics.ts +3 -3
- package/types/arm-mysql.d.ts +3 -13
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/mySQLManagementClientContext.d.ts +0 -15
- package/dist-esm/src/mySQLManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/mySQLManagementClientContext.js +0 -48
- package/dist-esm/src/mySQLManagementClientContext.js.map +0 -1
- package/src/mySQLManagementClientContext.ts +0 -68
|
@@ -11,7 +11,7 @@ import { PrivateLinkResources } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
PrivateLinkResource,
|
|
17
17
|
PrivateLinkResourcesListByServerNextOptionalParams,
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
/// <reference lib="esnext.asynciterable" />
|
|
26
26
|
/** Class containing PrivateLinkResources operations. */
|
|
27
27
|
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
28
|
-
private readonly client:
|
|
28
|
+
private readonly client: MySQLManagementClient;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Initialize a new instance of the class PrivateLinkResources class.
|
|
32
32
|
* @param client Reference to the service client
|
|
33
33
|
*/
|
|
34
|
-
constructor(client:
|
|
34
|
+
constructor(client: MySQLManagementClient) {
|
|
35
35
|
this.client = client;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -11,7 +11,7 @@ import { QueryTexts } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
QueryText,
|
|
17
17
|
QueryTextsListByServerNextOptionalParams,
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
/// <reference lib="esnext.asynciterable" />
|
|
26
26
|
/** Class containing QueryTexts operations. */
|
|
27
27
|
export class QueryTextsImpl implements QueryTexts {
|
|
28
|
-
private readonly client:
|
|
28
|
+
private readonly client: MySQLManagementClient;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Initialize a new instance of the class QueryTexts class.
|
|
32
32
|
* @param client Reference to the service client
|
|
33
33
|
*/
|
|
34
|
-
constructor(client:
|
|
34
|
+
constructor(client: MySQLManagementClient) {
|
|
35
35
|
this.client = client;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -11,7 +11,7 @@ import { RecommendedActions } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
RecommendationAction,
|
|
17
17
|
RecommendedActionsListByServerNextOptionalParams,
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
/// <reference lib="esnext.asynciterable" />
|
|
26
26
|
/** Class containing RecommendedActions operations. */
|
|
27
27
|
export class RecommendedActionsImpl implements RecommendedActions {
|
|
28
|
-
private readonly client:
|
|
28
|
+
private readonly client: MySQLManagementClient;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Initialize a new instance of the class RecommendedActions class.
|
|
32
32
|
* @param client Reference to the service client
|
|
33
33
|
*/
|
|
34
|
-
constructor(client:
|
|
34
|
+
constructor(client: MySQLManagementClient) {
|
|
35
35
|
this.client = client;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -10,7 +10,7 @@ import { RecoverableServers } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
RecoverableServersGetOptionalParams,
|
|
16
16
|
RecoverableServersGetResponse
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
|
|
19
19
|
/** Class containing RecoverableServers operations. */
|
|
20
20
|
export class RecoverableServersImpl implements RecoverableServers {
|
|
21
|
-
private readonly client:
|
|
21
|
+
private readonly client: MySQLManagementClient;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Initialize a new instance of the class RecoverableServers class.
|
|
25
25
|
* @param client Reference to the service client
|
|
26
26
|
*/
|
|
27
|
-
constructor(client:
|
|
27
|
+
constructor(client: MySQLManagementClient) {
|
|
28
28
|
this.client = client;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -11,7 +11,7 @@ import { Replicas } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Server,
|
|
17
17
|
ReplicasListByServerOptionalParams,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
/// <reference lib="esnext.asynciterable" />
|
|
22
22
|
/** Class containing Replicas operations. */
|
|
23
23
|
export class ReplicasImpl implements Replicas {
|
|
24
|
-
private readonly client:
|
|
24
|
+
private readonly client: MySQLManagementClient;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Initialize a new instance of the class Replicas class.
|
|
28
28
|
* @param client Reference to the service client
|
|
29
29
|
*/
|
|
30
|
-
constructor(client:
|
|
30
|
+
constructor(client: MySQLManagementClient) {
|
|
31
31
|
this.client = client;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -11,7 +11,7 @@ import { ServerAdministrators } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
/// <reference lib="esnext.asynciterable" />
|
|
29
29
|
/** Class containing ServerAdministrators operations. */
|
|
30
30
|
export class ServerAdministratorsImpl implements ServerAdministrators {
|
|
31
|
-
private readonly client:
|
|
31
|
+
private readonly client: MySQLManagementClient;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Initialize a new instance of the class ServerAdministrators class.
|
|
35
35
|
* @param client Reference to the service client
|
|
36
36
|
*/
|
|
37
|
-
constructor(client:
|
|
37
|
+
constructor(client: MySQLManagementClient) {
|
|
38
38
|
this.client = client;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -11,7 +11,7 @@ import { ServerBasedPerformanceTier } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
PerformanceTierProperties,
|
|
17
17
|
ServerBasedPerformanceTierListOptionalParams,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
/** Class containing ServerBasedPerformanceTier operations. */
|
|
23
23
|
export class ServerBasedPerformanceTierImpl
|
|
24
24
|
implements ServerBasedPerformanceTier {
|
|
25
|
-
private readonly client:
|
|
25
|
+
private readonly client: MySQLManagementClient;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Initialize a new instance of the class ServerBasedPerformanceTier class.
|
|
29
29
|
* @param client Reference to the service client
|
|
30
30
|
*/
|
|
31
|
-
constructor(client:
|
|
31
|
+
constructor(client: MySQLManagementClient) {
|
|
32
32
|
this.client = client;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -11,7 +11,7 @@ import { ServerKeys } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
/// <reference lib="esnext.asynciterable" />
|
|
31
31
|
/** Class containing ServerKeys operations. */
|
|
32
32
|
export class ServerKeysImpl implements ServerKeys {
|
|
33
|
-
private readonly client:
|
|
33
|
+
private readonly client: MySQLManagementClient;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Initialize a new instance of the class ServerKeys class.
|
|
37
37
|
* @param client Reference to the service client
|
|
38
38
|
*/
|
|
39
|
-
constructor(client:
|
|
39
|
+
constructor(client: MySQLManagementClient) {
|
|
40
40
|
this.client = client;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -10,7 +10,7 @@ import { ServerParameters } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
14
14
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
15
|
import { LroImpl } from "../lroImpl";
|
|
16
16
|
import {
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
|
|
22
22
|
/** Class containing ServerParameters operations. */
|
|
23
23
|
export class ServerParametersImpl implements ServerParameters {
|
|
24
|
-
private readonly client:
|
|
24
|
+
private readonly client: MySQLManagementClient;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Initialize a new instance of the class ServerParameters class.
|
|
28
28
|
* @param client Reference to the service client
|
|
29
29
|
*/
|
|
30
|
-
constructor(client:
|
|
30
|
+
constructor(client: MySQLManagementClient) {
|
|
31
31
|
this.client = client;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -11,7 +11,7 @@ import { ServerSecurityAlertPolicies } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
/** Class containing ServerSecurityAlertPolicies operations. */
|
|
32
32
|
export class ServerSecurityAlertPoliciesImpl
|
|
33
33
|
implements ServerSecurityAlertPolicies {
|
|
34
|
-
private readonly client:
|
|
34
|
+
private readonly client: MySQLManagementClient;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Initialize a new instance of the class ServerSecurityAlertPolicies class.
|
|
38
38
|
* @param client Reference to the service client
|
|
39
39
|
*/
|
|
40
|
-
constructor(client:
|
|
40
|
+
constructor(client: MySQLManagementClient) {
|
|
41
41
|
this.client = client;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -11,7 +11,7 @@ import { Servers } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
/// <reference lib="esnext.asynciterable" />
|
|
40
40
|
/** Class containing Servers operations. */
|
|
41
41
|
export class ServersImpl implements Servers {
|
|
42
|
-
private readonly client:
|
|
42
|
+
private readonly client: MySQLManagementClient;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Initialize a new instance of the class Servers class.
|
|
46
46
|
* @param client Reference to the service client
|
|
47
47
|
*/
|
|
48
|
-
constructor(client:
|
|
48
|
+
constructor(client: MySQLManagementClient) {
|
|
49
49
|
this.client = client;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -11,7 +11,7 @@ import { TopQueryStatistics } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
QueryStatistic,
|
|
17
17
|
TopQueryStatisticsInput,
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
27
27
|
/** Class containing TopQueryStatistics operations. */
|
|
28
28
|
export class TopQueryStatisticsImpl implements TopQueryStatistics {
|
|
29
|
-
private readonly client:
|
|
29
|
+
private readonly client: MySQLManagementClient;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Initialize a new instance of the class TopQueryStatistics class.
|
|
33
33
|
* @param client Reference to the service client
|
|
34
34
|
*/
|
|
35
|
-
constructor(client:
|
|
35
|
+
constructor(client: MySQLManagementClient) {
|
|
36
36
|
this.client = client;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -11,7 +11,7 @@ import { VirtualNetworkRules } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
/// <reference lib="esnext.asynciterable" />
|
|
31
31
|
/** Class containing VirtualNetworkRules operations. */
|
|
32
32
|
export class VirtualNetworkRulesImpl implements VirtualNetworkRules {
|
|
33
|
-
private readonly client:
|
|
33
|
+
private readonly client: MySQLManagementClient;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Initialize a new instance of the class VirtualNetworkRules class.
|
|
37
37
|
* @param client Reference to the service client
|
|
38
38
|
*/
|
|
39
|
-
constructor(client:
|
|
39
|
+
constructor(client: MySQLManagementClient) {
|
|
40
40
|
this.client = client;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -11,7 +11,7 @@ import { WaitStatistics } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { MySQLManagementClient } from "../mySQLManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
WaitStatistic,
|
|
17
17
|
WaitStatisticsInput,
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
27
27
|
/** Class containing WaitStatistics operations. */
|
|
28
28
|
export class WaitStatisticsImpl implements WaitStatistics {
|
|
29
|
-
private readonly client:
|
|
29
|
+
private readonly client: MySQLManagementClient;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Initialize a new instance of the class WaitStatistics class.
|
|
33
33
|
* @param client Reference to the service client
|
|
34
34
|
*/
|
|
35
|
-
constructor(client:
|
|
35
|
+
constructor(client: MySQLManagementClient) {
|
|
36
36
|
this.client = client;
|
|
37
37
|
}
|
|
38
38
|
|
package/types/arm-mysql.d.ts
CHANGED
|
@@ -720,7 +720,9 @@ export declare type LogFilesListByServerResponse = LogFileListResult;
|
|
|
720
720
|
*/
|
|
721
721
|
export declare type MinimalTlsVersionEnum = string;
|
|
722
722
|
|
|
723
|
-
export declare class MySQLManagementClient extends
|
|
723
|
+
export declare class MySQLManagementClient extends coreClient.ServiceClient {
|
|
724
|
+
$host: string;
|
|
725
|
+
subscriptionId: string;
|
|
724
726
|
/**
|
|
725
727
|
* Initializes a new instance of the MySQLManagementClient class.
|
|
726
728
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -780,18 +782,6 @@ export declare class MySQLManagementClient extends MySQLManagementClientContext
|
|
|
780
782
|
serverKeys: ServerKeys;
|
|
781
783
|
}
|
|
782
784
|
|
|
783
|
-
export declare class MySQLManagementClientContext extends coreClient.ServiceClient {
|
|
784
|
-
$host: string;
|
|
785
|
-
subscriptionId: string;
|
|
786
|
-
/**
|
|
787
|
-
* Initializes a new instance of the MySQLManagementClientContext class.
|
|
788
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
789
|
-
* @param subscriptionId The ID of the target subscription.
|
|
790
|
-
* @param options The parameter options
|
|
791
|
-
*/
|
|
792
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MySQLManagementClientOptionalParams);
|
|
793
|
-
}
|
|
794
|
-
|
|
795
785
|
/** Optional parameters. */
|
|
796
786
|
export declare interface MySQLManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
797
787
|
/** server parameter */
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as coreClient from "@azure/core-client";
|
|
2
|
-
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { MySQLManagementClientOptionalParams } from "./models";
|
|
4
|
-
export declare class MySQLManagementClientContext extends coreClient.ServiceClient {
|
|
5
|
-
$host: string;
|
|
6
|
-
subscriptionId: string;
|
|
7
|
-
/**
|
|
8
|
-
* Initializes a new instance of the MySQLManagementClientContext class.
|
|
9
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10
|
-
* @param subscriptionId The ID of the target subscription.
|
|
11
|
-
* @param options The parameter options
|
|
12
|
-
*/
|
|
13
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MySQLManagementClientOptionalParams);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=mySQLManagementClientContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mySQLManagementClientContext.d.ts","sourceRoot":"","sources":["../../src/mySQLManagementClientContext.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC;CA0ChD"}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
import * as coreClient from "@azure/core-client";
|
|
9
|
-
export class MySQLManagementClientContext extends coreClient.ServiceClient {
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new instance of the MySQLManagementClientContext class.
|
|
12
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
13
|
-
* @param subscriptionId The ID of the target subscription.
|
|
14
|
-
* @param options The parameter options
|
|
15
|
-
*/
|
|
16
|
-
constructor(credentials, subscriptionId, options) {
|
|
17
|
-
if (credentials === undefined) {
|
|
18
|
-
throw new Error("'credentials' cannot be null");
|
|
19
|
-
}
|
|
20
|
-
if (subscriptionId === undefined) {
|
|
21
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
22
|
-
}
|
|
23
|
-
// Initializing default values for options
|
|
24
|
-
if (!options) {
|
|
25
|
-
options = {};
|
|
26
|
-
}
|
|
27
|
-
const defaults = {
|
|
28
|
-
requestContentType: "application/json; charset=utf-8",
|
|
29
|
-
credential: credentials
|
|
30
|
-
};
|
|
31
|
-
const packageDetails = `azsdk-js-arm-mysql/5.0.0-beta.1`;
|
|
32
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
33
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
34
|
-
: `${packageDetails}`;
|
|
35
|
-
if (!options.credentialScopes) {
|
|
36
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
37
|
-
}
|
|
38
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
39
|
-
userAgentPrefix
|
|
40
|
-
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
41
|
-
super(optionsWithDefaults);
|
|
42
|
-
// Parameter assignments
|
|
43
|
-
this.subscriptionId = subscriptionId;
|
|
44
|
-
// Assigning values to Constant parameters
|
|
45
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=mySQLManagementClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mySQLManagementClientContext.js","sourceRoot":"","sources":["../../src/mySQLManagementClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IAIxE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as coreAuth from "@azure/core-auth";
|
|
11
|
-
import { MySQLManagementClientOptionalParams } from "./models";
|
|
12
|
-
|
|
13
|
-
export class MySQLManagementClientContext extends coreClient.ServiceClient {
|
|
14
|
-
$host: string;
|
|
15
|
-
subscriptionId: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Initializes a new instance of the MySQLManagementClientContext class.
|
|
19
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
20
|
-
* @param subscriptionId The ID of the target subscription.
|
|
21
|
-
* @param options The parameter options
|
|
22
|
-
*/
|
|
23
|
-
constructor(
|
|
24
|
-
credentials: coreAuth.TokenCredential,
|
|
25
|
-
subscriptionId: string,
|
|
26
|
-
options?: MySQLManagementClientOptionalParams
|
|
27
|
-
) {
|
|
28
|
-
if (credentials === undefined) {
|
|
29
|
-
throw new Error("'credentials' cannot be null");
|
|
30
|
-
}
|
|
31
|
-
if (subscriptionId === undefined) {
|
|
32
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Initializing default values for options
|
|
36
|
-
if (!options) {
|
|
37
|
-
options = {};
|
|
38
|
-
}
|
|
39
|
-
const defaults: MySQLManagementClientOptionalParams = {
|
|
40
|
-
requestContentType: "application/json; charset=utf-8",
|
|
41
|
-
credential: credentials
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const packageDetails = `azsdk-js-arm-mysql/5.0.0-beta.1`;
|
|
45
|
-
const userAgentPrefix =
|
|
46
|
-
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
47
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
48
|
-
: `${packageDetails}`;
|
|
49
|
-
|
|
50
|
-
if (!options.credentialScopes) {
|
|
51
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
52
|
-
}
|
|
53
|
-
const optionsWithDefaults = {
|
|
54
|
-
...defaults,
|
|
55
|
-
...options,
|
|
56
|
-
userAgentOptions: {
|
|
57
|
-
userAgentPrefix
|
|
58
|
-
},
|
|
59
|
-
baseUri: options.endpoint || "https://management.azure.com"
|
|
60
|
-
};
|
|
61
|
-
super(optionsWithDefaults);
|
|
62
|
-
// Parameter assignments
|
|
63
|
-
this.subscriptionId = subscriptionId;
|
|
64
|
-
|
|
65
|
-
// Assigning values to Constant parameters
|
|
66
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
67
|
-
}
|
|
68
|
-
}
|