diff --git a/sdk/mariadb/arm-mariadb/LICENSE.txt b/sdk/mariadb/arm-mariadb/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/mariadb/arm-mariadb/LICENSE.txt +++ b/sdk/mariadb/arm-mariadb/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 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 diff --git a/sdk/mariadb/arm-mariadb/README.md b/sdk/mariadb/arm-mariadb/README.md index 7a1dfd50bfe0..98ebf1e9c87a 100644 --- a/sdk/mariadb/arm-mariadb/README.md +++ b/sdk/mariadb/arm-mariadb/README.md @@ -15,21 +15,21 @@ npm install @azure/arm-mariadb ### How to use -#### nodejs - Authentication, client creation and get servers as an example written in TypeScript. +#### nodejs - client creation and get servers as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code +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 ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MariaDBManagementClient, MariaDBManagementModels, MariaDBManagementMappers } from "@azure/arm-mariadb"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { MariaDBManagementClient } = require("@azure/arm-mariadb"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -99,4 +99,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmariadb%2Farm-mariadb%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mariadb/arm-mariadb/README.png) diff --git a/sdk/mariadb/arm-mariadb/package.json b/sdk/mariadb/arm-mariadb/package.json index d9d6d2e1e6d0..390d67319e76 100644 --- a/sdk/mariadb/arm-mariadb/package.json +++ b/sdk/mariadb/arm-mariadb/package.json @@ -4,9 +4,9 @@ "description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.4.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,11 +20,11 @@ "module": "./esm/mariaDBManagementClient.js", "types": "./esm/mariaDBManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mariadb/arm-mariadb", "repository": { diff --git a/sdk/mariadb/arm-mariadb/rollup.config.js b/sdk/mariadb/arm-mariadb/rollup.config.js index 5735360934e7..eb26a93ba570 100644 --- a/sdk/mariadb/arm-mariadb/rollup.config.js +++ b/sdk/mariadb/arm-mariadb/rollup.config.js @@ -21,15 +21,15 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts index b88492aa13ab..3c9a1670de7e 100644 --- a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts +++ b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,8 +8,10 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { MariaDBManagementClientContext } from "./mariaDBManagementClientContext"; @@ -23,16 +24,28 @@ class MariaDBManagementClient extends MariaDBManagementClientContext { virtualNetworkRules: operations.VirtualNetworkRules; databases: operations.Databases; configurations: operations.Configurations; + serverParameters: operations.ServerParameters; logFiles: operations.LogFiles; + recoverableServers: operations.RecoverableServers; + serverBasedPerformanceTier: operations.ServerBasedPerformanceTier; locationBasedPerformanceTier: operations.LocationBasedPerformanceTier; checkNameAvailability: operations.CheckNameAvailability; - serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; operations: operations.Operations; + queryTexts: operations.QueryTexts; + topQueryStatistics: operations.TopQueryStatistics; + waitStatistics: operations.WaitStatistics; + advisors: operations.Advisors; + recommendedActions: operations.RecommendedActions; + locationBasedRecommendedActionSessionsOperationStatus: operations.LocationBasedRecommendedActionSessionsOperationStatus; + locationBasedRecommendedActionSessionsResult: operations.LocationBasedRecommendedActionSessionsResult; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; + serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; /** * Initializes a new instance of the MariaDBManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The subscription ID that identifies an Azure subscription. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { @@ -43,15 +56,89 @@ class MariaDBManagementClient extends MariaDBManagementClientContext { this.virtualNetworkRules = new operations.VirtualNetworkRules(this); this.databases = new operations.Databases(this); this.configurations = new operations.Configurations(this); + this.serverParameters = new operations.ServerParameters(this); this.logFiles = new operations.LogFiles(this); + this.recoverableServers = new operations.RecoverableServers(this); + this.serverBasedPerformanceTier = new operations.ServerBasedPerformanceTier(this); this.locationBasedPerformanceTier = new operations.LocationBasedPerformanceTier(this); this.checkNameAvailability = new operations.CheckNameAvailability(this); - this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); this.operations = new operations.Operations(this); + this.queryTexts = new operations.QueryTexts(this); + this.topQueryStatistics = new operations.TopQueryStatistics(this); + this.waitStatistics = new operations.WaitStatistics(this); + this.advisors = new operations.Advisors(this); + this.recommendedActions = new operations.RecommendedActions(this); + this.locationBasedRecommendedActionSessionsOperationStatus = new operations.LocationBasedRecommendedActionSessionsOperationStatus(this); + this.locationBasedRecommendedActionSessionsResult = new operations.LocationBasedRecommendedActionSessionsResult(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); + } + + /** + * Create recommendation action session for the advisor. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + createRecommendedActionSession(resourceGroupName: string, serverName: string, advisorName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateRecommendedActionSession(resourceGroupName,serverName,advisorName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create recommendation action session for the advisor. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateRecommendedActionSession(resourceGroupName: string, serverName: string, advisorName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + resourceGroupName, + serverName, + advisorName, + databaseName, + options + }, + beginCreateRecommendedActionSessionOperationSpec, + options); } } // Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginCreateRecommendedActionSessionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}/createRecommendedActionSession", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advisorName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.databaseName + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; export { MariaDBManagementClient, diff --git a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts index 9c249c826287..396580b88f24 100644 --- a/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts +++ b/sdk/mariadb/arm-mariadb/src/mariaDBManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -18,12 +17,11 @@ const packageVersion = "1.4.0"; export class MariaDBManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; subscriptionId: string; - apiVersion?: string; /** * Initializes a new instance of the MariaDBManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The subscription ID that identifies an Azure subscription. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MariaDBManagementClientOptions) { @@ -44,7 +42,6 @@ export class MariaDBManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2018-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/mariadb/arm-mariadb/src/models/advisorsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/advisorsMappers.ts new file mode 100644 index 000000000000..9011c57e8680 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/advisorsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AdvisorsResultList, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/checkNameAvailabilityMappers.ts b/sdk/mariadb/arm-mariadb/src/models/checkNameAvailabilityMappers.ts index ba8b8606adc4..127d67d9f6e5 100644 --- a/sdk/mariadb/arm-mariadb/src/models/checkNameAvailabilityMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/checkNameAvailabilityMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,6 +9,8 @@ export { discriminators, CloudError, + ErrorAdditionalInfo, + ErrorResponse, NameAvailability, NameAvailabilityRequest } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/configurationsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/configurationsMappers.ts index 3df779f095a3..55289d1e7089 100644 --- a/sdk/mariadb/arm-mariadb/src/models/configurationsMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/configurationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,36 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, ConfigurationListResult, Database, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/databasesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/databasesMappers.ts index aab1065ee094..eebed182482a 100644 --- a/sdk/mariadb/arm-mariadb/src/models/databasesMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/databasesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,36 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, DatabaseListResult, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/firewallRulesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/firewallRulesMappers.ts index 2b819a0b71bc..632354c27ad7 100644 --- a/sdk/mariadb/arm-mariadb/src/models/firewallRulesMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/firewallRulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,36 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, FirewallRuleListResult, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/index.ts b/sdk/mariadb/arm-mariadb/src/models/index.ts index 5fd1820dc05a..e51010dff0e8 100644 --- a/sdk/mariadb/arm-mariadb/src/models/index.ts +++ b/sdk/mariadb/arm-mariadb/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,38 +12,69 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Resource properties. + * An interface representing PrivateEndpointProperty. */ -export interface ProxyResource extends BaseResource { +export interface PrivateEndpointProperty extends BaseResource { /** - * Resource ID - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource id of the private endpoint. */ - readonly id?: string; + id?: string; +} + +/** + * An interface representing ServerPrivateLinkServiceConnectionStateProperty. + */ +export interface ServerPrivateLinkServiceConnectionStateProperty { + /** + * The private link service connection status. Possible values include: 'Approved', 'Pending', + * 'Rejected', 'Disconnected' + */ + status: PrivateLinkServiceConnectionStateStatus; + /** + * The private link service connection description. + */ + description: string; /** - * Resource name. + * The actions required for private link service connection. Possible values include: 'None' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; +} + +/** + * Properties of a private endpoint connection. + */ +export interface ServerPrivateEndpointConnectionProperties { /** - * Resource type. + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: ServerPrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. Possible values include: 'Approving', 'Ready', + * 'Dropping', 'Failed', 'Rejecting' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly provisioningState?: PrivateEndpointProvisioningState; } /** - * Resource properties including location and tags for track resources. + * A private endpoint connection under a server */ -export interface TrackedResource extends ProxyResource { +export interface ServerPrivateEndpointConnection { /** - * The location the resource resides in. + * Resource Id of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location: string; + readonly id?: string; /** - * Application-specific metadata in the form of key-value pairs. + * Private endpoint connection properties + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly properties?: ServerPrivateEndpointConnectionProperties; } /** @@ -90,6 +121,11 @@ export interface ServerPropertiesForCreate { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * Storage profile of a server. */ @@ -113,6 +149,11 @@ export interface ServerPropertiesForDefaultCreate { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * Storage profile of a server. */ @@ -145,6 +186,11 @@ export interface ServerPropertiesForRestore { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * Storage profile of a server. */ @@ -177,6 +223,11 @@ export interface ServerPropertiesForGeoRestore { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * Storage profile of a server. */ @@ -204,6 +255,11 @@ export interface ServerPropertiesForReplica { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * Storage profile of a server. */ @@ -221,7 +277,7 @@ export interface Sku { /** * The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. */ - name?: string; + name: string; /** * The tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', * 'GeneralPurpose', 'MemoryOptimized' @@ -241,6 +297,46 @@ export interface Sku { family?: string; } +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource + */ +export interface Resource extends BaseResource { + /** + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location: string; +} + /** * Represents a server. */ @@ -292,6 +388,16 @@ export interface Server extends TrackedResource { * The maximum number of replicas that a master server can have. */ replicaCapacity?: number; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; + /** + * List of private endpoint connections on a server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; } /** @@ -341,6 +447,11 @@ export interface ServerUpdateParameters { * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; + /** + * Whether or not public network access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccessEnum; /** * The replication role of the server. */ @@ -351,6 +462,14 @@ export interface ServerUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource + */ +export interface ProxyResource extends Resource { +} + /** * Represents a server firewall rule. */ @@ -571,6 +690,30 @@ export interface PerformanceTierProperties { * ID of the performance tier. */ id?: string; + /** + * Maximum Backup retention in days for the performance tier edition + */ + maxBackupRetentionDays?: number; + /** + * Minimum Backup retention in days for the performance tier edition + */ + minBackupRetentionDays?: number; + /** + * Max storage allowed for a server. + */ + maxStorageMB?: number; + /** + * Max storage allowed for a server. + */ + minLargeStorageMB?: number; + /** + * Max storage allowed for a server. + */ + maxLargeStorageMB?: number; + /** + * Max storage allowed for a server. + */ + minStorageMB?: number; /** * Service level objectives associated with the performance tier */ @@ -610,186 +753,1317 @@ export interface NameAvailability { } /** - * A server security alert policy. + * The resource management error additional info. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { +export interface ErrorAdditionalInfo { /** - * Specifies the state of the policy, whether it is enabled or disabled. Possible values include: - * 'Enabled', 'Disabled' + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state: ServerSecurityAlertPolicyState; + readonly type?: string; /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disabledAlerts?: string[]; + readonly info?: any; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.) + * @summary Error Response + */ +export interface ErrorResponse { /** - * Specifies an array of e-mail addresses to which the alert is sent. + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emailAddresses?: string[]; + readonly code?: string; /** - * Specifies that the alert is sent to the account administrators. + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emailAccountAdmins?: boolean; + readonly message?: string; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageEndpoint?: string; + readonly target?: string; /** - * Specifies the identifier key of the Threat Detection audit storage account. + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountAccessKey?: string; + readonly details?: ErrorResponse[]; /** - * Specifies the number of days to keep in the Threat Detection audit logs. + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * An interface representing MariaDBManagementClientOptions. + * A recoverable server resource. */ -export interface MariaDBManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface RecoverableServerResource extends ProxyResource { + /** + * The last available backup date time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastAvailableBackupDateTime?: string; + /** + * The service level objective + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceLevelObjective?: string; + /** + * Edition of the performance tier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly edition?: string; + /** + * vCore associated with the service level objective + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vCore?: number; + /** + * Hardware generation associated with the service level objective + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hardwareGeneration?: string; + /** + * The MariaDB version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; } /** - * @interface - * A list of servers. - * @extends Array + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ -export interface ServerListResult extends Array { +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; } /** - * @interface - * A list of firewall rules. - * @extends Array + * Represents a Query Text. */ -export interface FirewallRuleListResult extends Array { +export interface QueryText extends ProxyResource { + /** + * Query identifier unique to the server. + */ + queryId?: string; + /** + * Query text. + */ + queryText?: string; } /** - * @interface - * A list of virtual network rules. - * @extends Array + * Input to get top query statistics */ -export interface VirtualNetworkRuleListResult extends Array { +export interface TopQueryStatisticsInput { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Max number of top queries to return. */ - readonly nextLink?: string; + numberOfTopQueries: number; + /** + * Aggregation function name. + */ + aggregationFunction: string; + /** + * Observed metric name. + */ + observedMetric: string; + /** + * Observation start time. + */ + observationStartTime: Date; + /** + * Observation end time. + */ + observationEndTime: Date; + /** + * Aggregation interval type in ISO 8601 format. + */ + aggregationWindow: string; } /** - * @interface - * A List of databases. - * @extends Array + * Represents a Query Statistic. */ -export interface DatabaseListResult extends Array { +export interface QueryStatistic extends ProxyResource { + /** + * Database query identifier. + */ + queryId?: string; + /** + * Observation start time. + */ + startTime?: Date; + /** + * Observation end time. + */ + endTime?: Date; + /** + * Aggregation function name. + */ + aggregationFunction?: string; + /** + * The list of database names. + */ + databaseNames?: string[]; + /** + * Number of query executions in this time interval. + */ + queryExecutionCount?: number; + /** + * Metric name. + */ + metricName?: string; + /** + * Metric display name. + */ + metricDisplayName?: string; + /** + * Metric value. + */ + metricValue?: number; + /** + * Metric value unit. + */ + metricValueUnit?: string; } /** - * @interface - * A list of server configurations. - * @extends Array + * Input to get wait statistics */ -export interface ConfigurationListResult extends Array { +export interface WaitStatisticsInput { + /** + * Observation start time. + */ + observationStartTime: Date; + /** + * Observation end time. + */ + observationEndTime: Date; + /** + * Aggregation interval type in ISO 8601 format. + */ + aggregationWindow: string; } /** - * @interface - * A list of log files. - * @extends Array + * Represents a Wait Statistic. */ -export interface LogFileListResult extends Array { +export interface WaitStatistic extends ProxyResource { + /** + * Observation start time. + */ + startTime?: Date; + /** + * Observation end time. + */ + endTime?: Date; + /** + * Wait event name. + */ + eventName?: string; + /** + * Wait event type name. + */ + eventTypeName?: string; + /** + * Database query identifier. + */ + queryId?: number; + /** + * Database Name. + */ + databaseName?: string; + /** + * Database user identifier. + */ + userId?: number; + /** + * Wait event count observed in this time interval. + */ + count?: number; + /** + * Total time of wait in milliseconds in this time interval. + */ + totalTimeInMs?: number; } /** - * @interface - * A list of performance tiers. - * @extends Array + * Represents a recommendation action advisor. */ -export interface PerformanceTierListResult extends Array { +export interface Advisor extends ProxyResource { + /** + * The properties of a recommendation action advisor. + */ + properties?: any; } /** - * Defines values for ServerVersion. - * Possible values include: '5.6', '5.7' - * @readonly - * @enum {string} + * Represents a Recommendation Action. */ -export type ServerVersion = '5.6' | '5.7'; - -/** - * Defines values for SslEnforcementEnum. +export interface RecommendationAction extends ProxyResource { + /** + * Advisor name. + */ + advisorName?: string; + /** + * Recommendation action session identifier. + */ + sessionId?: string; + /** + * Recommendation action identifier. + */ + actionId?: number; + /** + * Recommendation action creation time. + */ + createdTime?: Date; + /** + * Recommendation action expiration time. + */ + expirationTime?: Date; + /** + * Recommendation action reason. + */ + reason?: string; + /** + * Recommendation action type. + */ + recommendationType?: string; + /** + * Recommendation action details. + */ + details?: { [propertyName: string]: string }; +} + +/** + * Recommendation action session operation status. + */ +export interface RecommendedActionSessionsOperationStatus { + /** + * Operation identifier. + */ + name?: string; + /** + * Operation start time. + */ + startTime?: Date; + /** + * Operation status. + */ + status?: string; +} + +/** + * An interface representing PrivateLinkServiceConnectionStateProperty. + */ +export interface PrivateLinkServiceConnectionStateProperty { + /** + * The private link service connection status. + */ + status: string; + /** + * The private link service connection description. + */ + description: string; + /** + * The actions required for private link service connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionsRequired?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; +} + +/** + * Tags object for patch operations. + */ +export interface TagsObject { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Properties of a private link resource. + */ +export interface PrivateLinkResourceProperties { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: PrivateLinkResourceProperties; +} + +/** + * A server security alert policy. + */ +export interface ServerSecurityAlertPolicy extends ProxyResource { + /** + * Specifies the state of the policy, whether it is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' + */ + state: ServerSecurityAlertPolicyState; + /** + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly + */ + disabledAlerts?: string[]; + /** + * Specifies an array of e-mail addresses to which the alert is sent. + */ + emailAddresses?: string[]; + /** + * Specifies that the alert is sent to the account administrators. + */ + emailAccountAdmins?: boolean; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. + */ + storageEndpoint?: string; + /** + * Specifies the identifier key of the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * Specifies the number of days to keep in the Threat Detection audit logs. + */ + retentionDays?: number; +} + +/** + * Optional Parameters. + */ +export interface RecommendedActionsListByServerOptionalParams extends msRest.RequestOptionsBase { + /** + * The recommendation action session identifier. + */ + sessionId?: string; +} + +/** + * Optional Parameters. + */ +export interface RecommendedActionsListByServerNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The recommendation action session identifier. + */ + sessionId?: string; +} + +/** + * An interface representing MariaDBManagementClientOptions. + */ +export interface MariaDBManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * A list of servers. + * @extends Array + */ +export interface ServerListResult extends Array { +} + +/** + * @interface + * A list of firewall rules. + * @extends Array + */ +export interface FirewallRuleListResult extends Array { +} + +/** + * @interface + * A list of virtual network rules. + * @extends Array + */ +export interface VirtualNetworkRuleListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A List of databases. + * @extends Array + */ +export interface DatabaseListResult extends Array { +} + +/** + * @interface + * A list of server configurations. + * @extends Array + */ +export interface ConfigurationListResult extends Array { +} + +/** + * @interface + * A list of log files. + * @extends Array + */ +export interface LogFileListResult extends Array { +} + +/** + * @interface + * A list of performance tiers. + * @extends Array + */ +export interface PerformanceTierListResult extends Array { +} + +/** + * @interface + * A list of query texts. + * @extends Array + */ +export interface QueryTextsResultList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of query statistics. + * @extends Array + */ +export interface TopQueryStatisticsResultList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of wait statistics. + * @extends Array + */ +export interface WaitStatisticsResultList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of query statistics. + * @extends Array + */ +export interface AdvisorsResultList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of recommendation actions. + * @extends Array + */ +export interface RecommendationActionsResultList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for ServerVersion. + * Possible values include: '5.6', '5.7' + * @readonly + * @enum {string} + */ +export type ServerVersion = '5.6' | '5.7'; + +/** + * Defines values for SslEnforcementEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SslEnforcementEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for PublicNetworkAccessEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccessEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateLinkServiceConnectionStateStatus. + * Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStateStatus = 'Approved' | 'Pending' | 'Rejected' | 'Disconnected'; + +/** + * Defines values for PrivateLinkServiceConnectionStateActionsRequire. + * Possible values include: 'None' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStateActionsRequire = 'None'; + +/** + * Defines values for PrivateEndpointProvisioningState. + * Possible values include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' + * @readonly + * @enum {string} + */ +export type PrivateEndpointProvisioningState = 'Approving' | 'Ready' | 'Dropping' | 'Failed' | 'Rejecting'; + +/** + * Defines values for ServerState. + * Possible values include: 'Ready', 'Dropping', 'Disabled' + * @readonly + * @enum {string} + */ +export type ServerState = 'Ready' | 'Dropping' | 'Disabled'; + +/** + * Defines values for GeoRedundantBackup. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type GeoRedundantBackup = 'Enabled' | 'Disabled'; + +/** + * Defines values for StorageAutogrow. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type StorageAutogrow = 'Enabled' | 'Disabled'; + +/** + * Defines values for SkuTier. + * Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized' + * @readonly + * @enum {string} + */ +export type SkuTier = 'Basic' | 'GeneralPurpose' | 'MemoryOptimized'; + +/** + * Defines values for VirtualNetworkRuleState. + * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' + * @readonly + * @enum {string} + */ +export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; + +/** + * Defines values for OperationOrigin. + * Possible values include: 'NotSpecified', 'user', 'system' + * @readonly + * @enum {string} + */ +export type OperationOrigin = 'NotSpecified' | 'user' | 'system'; + +/** + * Defines values for ServerSecurityAlertPolicyState. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type SslEnforcementEnum = 'Enabled' | 'Disabled'; +export type ServerSecurityAlertPolicyState = 'Enabled' | 'Disabled'; + +/** + * Contains response data for the create operation. + */ +export type ServersCreateResponse = Server & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ServersUpdateResponse = Server & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ServersGetResponse = Server & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ServersListByResourceGroupResponse = ServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ServersListResponse = ServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerListResult; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ServersBeginCreateResponse = Server & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ServersBeginUpdateResponse = Server & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Server; + }; +}; + +/** + * Contains response data for the listByServer operation. + */ +export type ReplicasListByServerResponse = ServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type FirewallRulesGetResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the listByServer operation. + */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRuleListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkRule; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkRule; + }; +}; /** - * Defines values for ServerState. - * Possible values include: 'Ready', 'Dropping', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type ServerState = 'Ready' | 'Dropping' | 'Disabled'; +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkRuleListResult; + }; +}; /** - * Defines values for GeoRedundantBackup. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type GeoRedundantBackup = 'Enabled' | 'Disabled'; +export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkRule; + }; +}; + +/** + * Contains response data for the listByServerNext operation. + */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkRuleListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabasesCreateOrUpdateResponse = Database & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatabasesGetResponse = Database & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; + +/** + * Contains response data for the listByServer operation. + */ +export type DatabasesListByServerResponse = DatabaseListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DatabasesBeginCreateOrUpdateResponse = Database & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ConfigurationsCreateOrUpdateResponse = Configuration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Configuration; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ConfigurationsGetResponse = Configuration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Configuration; + }; +}; + +/** + * Contains response data for the listByServer operation. + */ +export type ConfigurationsListByServerResponse = ConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConfigurationListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ConfigurationsBeginCreateOrUpdateResponse = Configuration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Configuration; + }; +}; /** - * Defines values for StorageAutogrow. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listUpdateConfigurations operation. */ -export type StorageAutogrow = 'Enabled' | 'Disabled'; +export type ServerParametersListUpdateConfigurationsResponse = ConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConfigurationListResult; + }; +}; /** - * Defines values for SkuTier. - * Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized' - * @readonly - * @enum {string} + * Contains response data for the beginListUpdateConfigurations operation. */ -export type SkuTier = 'Basic' | 'GeneralPurpose' | 'MemoryOptimized'; +export type ServerParametersBeginListUpdateConfigurationsResponse = ConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConfigurationListResult; + }; +}; /** - * Defines values for VirtualNetworkRuleState. - * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; +export type LogFilesListByServerResponse = LogFileListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogFileListResult; + }; +}; /** - * Defines values for OperationOrigin. - * Possible values include: 'NotSpecified', 'user', 'system' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type OperationOrigin = 'NotSpecified' | 'user' | 'system'; +export type RecoverableServersGetResponse = RecoverableServerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoverableServerResource; + }; +}; /** - * Defines values for ServerSecurityAlertPolicyState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ServerSecurityAlertPolicyState = 'Enabled' | 'Disabled'; +export type ServerBasedPerformanceTierListResponse = PerformanceTierListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PerformanceTierListResult; + }; +}; /** - * Contains response data for the create operation. + * Contains response data for the list operation. */ -export type ServersCreateResponse = Server & { +export type LocationBasedPerformanceTierListResponse = PerformanceTierListResult & { /** * The underlying HTTP response. */ @@ -802,14 +2076,14 @@ export type ServersCreateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: PerformanceTierListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the execute operation. */ -export type ServersUpdateResponse = Server & { +export type CheckNameAvailabilityExecuteResponse = NameAvailability & { /** * The underlying HTTP response. */ @@ -822,14 +2096,14 @@ export type ServersUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: NameAvailability; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ServersGetResponse = Server & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -842,14 +2116,14 @@ export type ServersGetResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ServersListByResourceGroupResponse = ServerListResult & { +export type QueryTextsGetResponse = QueryText & { /** * The underlying HTTP response. */ @@ -862,14 +2136,14 @@ export type ServersListByResourceGroupResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: QueryText; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByServer operation. */ -export type ServersListResponse = ServerListResult & { +export type QueryTextsListByServerResponse = QueryTextsResultList & { /** * The underlying HTTP response. */ @@ -882,14 +2156,14 @@ export type ServersListResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: QueryTextsResultList; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listByServerNext operation. */ -export type ServersBeginCreateResponse = Server & { +export type QueryTextsListByServerNextResponse = QueryTextsResultList & { /** * The underlying HTTP response. */ @@ -902,14 +2176,14 @@ export type ServersBeginCreateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: QueryTextsResultList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ServersBeginUpdateResponse = Server & { +export type TopQueryStatisticsGetResponse = QueryStatistic & { /** * The underlying HTTP response. */ @@ -922,14 +2196,14 @@ export type ServersBeginUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: QueryStatistic; }; }; /** * Contains response data for the listByServer operation. */ -export type ReplicasListByServerResponse = ServerListResult & { +export type TopQueryStatisticsListByServerResponse = TopQueryStatisticsResultList & { /** * The underlying HTTP response. */ @@ -942,14 +2216,14 @@ export type ReplicasListByServerResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: TopQueryStatisticsResultList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { +export type TopQueryStatisticsListByServerNextResponse = TopQueryStatisticsResultList & { /** * The underlying HTTP response. */ @@ -962,14 +2236,14 @@ export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: TopQueryStatisticsResultList; }; }; /** * Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule & { +export type WaitStatisticsGetResponse = WaitStatistic & { /** * The underlying HTTP response. */ @@ -982,14 +2256,14 @@ export type FirewallRulesGetResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: WaitStatistic; }; }; /** * Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult & { +export type WaitStatisticsListByServerResponse = WaitStatisticsResultList & { /** * The underlying HTTP response. */ @@ -1002,14 +2276,14 @@ export type FirewallRulesListByServerResponse = FirewallRuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRuleListResult; + parsedBody: WaitStatisticsResultList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { +export type WaitStatisticsListByServerNextResponse = WaitStatisticsResultList & { /** * The underlying HTTP response. */ @@ -1022,14 +2296,14 @@ export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: WaitStatisticsResultList; }; }; /** * Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { +export type AdvisorsGetResponse = Advisor & { /** * The underlying HTTP response. */ @@ -1042,14 +2316,14 @@ export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: Advisor; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { +export type AdvisorsListByServerResponse = AdvisorsResultList & { /** * The underlying HTTP response. */ @@ -1062,14 +2336,14 @@ export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: AdvisorsResultList; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { +export type AdvisorsListByServerNextResponse = AdvisorsResultList & { /** * The underlying HTTP response. */ @@ -1082,14 +2356,14 @@ export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResu /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: AdvisorsResultList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { +export type RecommendedActionsGetResponse = RecommendationAction & { /** * The underlying HTTP response. */ @@ -1102,14 +2376,14 @@ export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: RecommendationAction; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { +export type RecommendedActionsListByServerResponse = RecommendationActionsResultList & { /** * The underlying HTTP response. */ @@ -1122,14 +2396,14 @@ export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleList /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: RecommendationActionsResultList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type DatabasesCreateOrUpdateResponse = Database & { +export type RecommendedActionsListByServerNextResponse = RecommendationActionsResultList & { /** * The underlying HTTP response. */ @@ -1142,14 +2416,14 @@ export type DatabasesCreateOrUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: RecommendationActionsResultList; }; }; /** * Contains response data for the get operation. */ -export type DatabasesGetResponse = Database & { +export type LocationBasedRecommendedActionSessionsOperationStatusGetResponse = RecommendedActionSessionsOperationStatus & { /** * The underlying HTTP response. */ @@ -1162,14 +2436,14 @@ export type DatabasesGetResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: RecommendedActionSessionsOperationStatus; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the list operation. */ -export type DatabasesListByServerResponse = DatabaseListResult & { +export type LocationBasedRecommendedActionSessionsResultListResponse = RecommendationActionsResultList & { /** * The underlying HTTP response. */ @@ -1182,14 +2456,14 @@ export type DatabasesListByServerResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: RecommendationActionsResultList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type DatabasesBeginCreateOrUpdateResponse = Database & { +export type LocationBasedRecommendedActionSessionsResultListNextResponse = RecommendationActionsResultList & { /** * The underlying HTTP response. */ @@ -1202,14 +2476,34 @@ export type DatabasesBeginCreateOrUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: RecommendationActionsResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ConfigurationsCreateOrUpdateResponse = Configuration & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1222,14 +2516,14 @@ export type ConfigurationsCreateOrUpdateResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the updateTags operation. */ -export type ConfigurationsGetResponse = Configuration & { +export type PrivateEndpointConnectionsUpdateTagsResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1242,14 +2536,14 @@ export type ConfigurationsGetResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: PrivateEndpointConnection; }; }; /** * Contains response data for the listByServer operation. */ -export type ConfigurationsListByServerResponse = ConfigurationListResult & { +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1262,14 +2556,14 @@ export type ConfigurationsListByServerResponse = ConfigurationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ConfigurationListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type ConfigurationsBeginCreateOrUpdateResponse = Configuration & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1282,14 +2576,14 @@ export type ConfigurationsBeginCreateOrUpdateResponse = Configuration & { /** * The response body as parsed JSON or XML */ - parsedBody: Configuration; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginUpdateTags operation. */ -export type LogFilesListByServerResponse = LogFileListResult & { +export type PrivateEndpointConnectionsBeginUpdateTagsResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1302,14 +2596,14 @@ export type LogFilesListByServerResponse = LogFileListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: LogFileListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByServerNext operation. */ -export type LocationBasedPerformanceTierListResponse = PerformanceTierListResult & { +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1322,14 +2616,14 @@ export type LocationBasedPerformanceTierListResponse = PerformanceTierListResult /** * The response body as parsed JSON or XML */ - parsedBody: PerformanceTierListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the execute operation. + * Contains response data for the listByServer operation. */ -export type CheckNameAvailabilityExecuteResponse = NameAvailability & { +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -1342,14 +2636,14 @@ export type CheckNameAvailabilityExecuteResponse = NameAvailability & { /** * The response body as parsed JSON or XML */ - parsedBody: NameAvailability; + parsedBody: PrivateLinkResourceListResult; }; }; /** * Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -1362,14 +2656,34 @@ export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -1387,9 +2701,9 @@ export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAl }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -1407,9 +2721,9 @@ export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecur }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type OperationsListResponse = OperationListResult & { +export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -1422,6 +2736,6 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ServerSecurityAlertPolicy; }; }; diff --git a/sdk/mariadb/arm-mariadb/src/models/locationBasedPerformanceTierMappers.ts b/sdk/mariadb/arm-mariadb/src/models/locationBasedPerformanceTierMappers.ts index a4911d3e4ae0..b25abbd987af 100644 --- a/sdk/mariadb/arm-mariadb/src/models/locationBasedPerformanceTierMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/locationBasedPerformanceTierMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,6 +9,8 @@ export { discriminators, CloudError, + ErrorAdditionalInfo, + ErrorResponse, PerformanceTierListResult, PerformanceTierProperties, PerformanceTierServiceLevelObjectives diff --git a/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsOperationStatusMappers.ts b/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsOperationStatusMappers.ts new file mode 100644 index 000000000000..ff2a4816f96f --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsOperationStatusMappers.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + RecommendedActionSessionsOperationStatus +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsResultMappers.ts b/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsResultMappers.ts new file mode 100644 index 000000000000..5d9457960e25 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/locationBasedRecommendedActionSessionsResultMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecommendationActionsResultList, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/logFilesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/logFilesMappers.ts index b6832542b835..f2cbb3e5961d 100644 --- a/sdk/mariadb/arm-mariadb/src/models/logFilesMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/logFilesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,36 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, LogFile, LogFileListResult, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/mappers.ts b/sdk/mariadb/arm-mariadb/src/models/mappers.ts index ed38ecdfbf78..3150307e9c65 100644 --- a/sdk/mariadb/arm-mariadb/src/models/mappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,29 +12,76 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", type: { name: "Composite", - className: "ProxyResource", + className: "PrivateEndpointProperty", modelProperties: { id: { - readOnly: true, serializedName: "id", type: { name: "String" } + } + } + } +}; + +export const ServerPrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "ServerPrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "ServerPrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } }, - name: { + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { readOnly: true, - serializedName: "name", + serializedName: "actionsRequired", type: { name: "String" } + } + } + } +}; + +export const ServerPrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "ServerPrivateEndpointConnectionProperties", + type: { + name: "Composite", + className: "ServerPrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } }, - type: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "ServerPrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { readOnly: true, - serializedName: "type", + serializedName: "provisioningState", type: { name: "String" } @@ -43,29 +90,25 @@ export const ProxyResource: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const ServerPrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "ServerPrivateEndpointConnection", type: { name: "Composite", - className: "TrackedResource", + className: "ServerPrivateEndpointConnection", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - required: true, - serializedName: "location", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - tags: { - serializedName: "tags", + properties: { + readOnly: true, + serializedName: "properties", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "ServerPrivateEndpointConnectionProperties" } } } @@ -133,6 +176,12 @@ export const ServerPropertiesForCreate: msRest.CompositeMapper = { ] } }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, storageProfile: { serializedName: "storageProfile", type: { @@ -252,6 +301,7 @@ export const Sku: msRest.CompositeMapper = { className: "Sku", modelProperties: { name: { + required: true, serializedName: "name", type: { name: "String" @@ -288,6 +338,66 @@ export const Sku: msRest.CompositeMapper = { } }; +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const Server: msRest.CompositeMapper = { serializedName: "Server", type: { @@ -369,6 +479,25 @@ export const Server: msRest.CompositeMapper = { type: { name: "Number" } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } + } } } } @@ -459,6 +588,12 @@ export const ServerUpdateParameters: msRest.CompositeMapper = { ] } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, replicationRole: { serializedName: "properties.replicationRole", type: { @@ -480,6 +615,17 @@ export const ServerUpdateParameters: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const FirewallRule: msRest.CompositeMapper = { serializedName: "FirewallRule", type: { @@ -834,6 +980,42 @@ export const PerformanceTierProperties: msRest.CompositeMapper = { name: "String" } }, + maxBackupRetentionDays: { + serializedName: "maxBackupRetentionDays", + type: { + name: "Number" + } + }, + minBackupRetentionDays: { + serializedName: "minBackupRetentionDays", + type: { + name: "Number" + } + }, + maxStorageMB: { + serializedName: "maxStorageMB", + type: { + name: "Number" + } + }, + minLargeStorageMB: { + serializedName: "minLargeStorageMB", + type: { + name: "Number" + } + }, + maxLargeStorageMB: { + serializedName: "maxLargeStorageMB", + type: { + name: "Number" + } + }, + minStorageMB: { + serializedName: "minStorageMB", + type: { + name: "Number" + } + }, serviceLevelObjectives: { serializedName: "serviceLevelObjectives", type: { @@ -901,54 +1083,694 @@ export const NameAvailability: msRest.CompositeMapper = { } }; -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "ErrorAdditionalInfo", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ErrorResponse" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ErrorAdditionalInfo" } } } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + } + } + } +}; + +export const RecoverableServerResource: msRest.CompositeMapper = { + serializedName: "RecoverableServerResource", + type: { + name: "Composite", + className: "RecoverableServerResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastAvailableBackupDateTime: { + readOnly: true, + serializedName: "properties.lastAvailableBackupDateTime", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + serviceLevelObjective: { + readOnly: true, + serializedName: "properties.serviceLevelObjective", + type: { + name: "String" + } + }, + edition: { + readOnly: true, + serializedName: "properties.edition", + type: { + name: "String" + } + }, + vCore: { + readOnly: true, + serializedName: "properties.vCore", + type: { + name: "Number" + } + }, + hardwareGeneration: { + readOnly: true, + serializedName: "properties.hardwareGeneration", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const QueryText: msRest.CompositeMapper = { + serializedName: "QueryText", + type: { + name: "Composite", + className: "QueryText", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryId: { + serializedName: "properties.queryId", + type: { + name: "String" + } + }, + queryText: { + serializedName: "properties.queryText", + type: { + name: "String" + } + } + } + } +}; + +export const TopQueryStatisticsInput: msRest.CompositeMapper = { + serializedName: "TopQueryStatisticsInput", + type: { + name: "Composite", + className: "TopQueryStatisticsInput", + modelProperties: { + numberOfTopQueries: { + required: true, + serializedName: "properties.numberOfTopQueries", + type: { + name: "Number" + } + }, + aggregationFunction: { + required: true, + serializedName: "properties.aggregationFunction", + type: { + name: "String" + } + }, + observedMetric: { + required: true, + serializedName: "properties.observedMetric", + type: { + name: "String" + } + }, + observationStartTime: { + required: true, + serializedName: "properties.observationStartTime", + type: { + name: "DateTime" + } + }, + observationEndTime: { + required: true, + serializedName: "properties.observationEndTime", + type: { + name: "DateTime" + } + }, + aggregationWindow: { + required: true, + serializedName: "properties.aggregationWindow", + type: { + name: "String" + } + } + } + } +}; + +export const QueryStatistic: msRest.CompositeMapper = { + serializedName: "QueryStatistic", + type: { + name: "Composite", + className: "QueryStatistic", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryId: { + serializedName: "properties.queryId", + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + aggregationFunction: { + serializedName: "properties.aggregationFunction", + type: { + name: "String" + } + }, + databaseNames: { + serializedName: "properties.databaseNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + queryExecutionCount: { + serializedName: "properties.queryExecutionCount", + type: { + name: "Number" + } + }, + metricName: { + serializedName: "properties.metricName", + type: { + name: "String" + } + }, + metricDisplayName: { + serializedName: "properties.metricDisplayName", + type: { + name: "String" + } + }, + metricValue: { + serializedName: "properties.metricValue", + type: { + name: "Number" + } + }, + metricValueUnit: { + serializedName: "properties.metricValueUnit", + type: { + name: "String" + } + } + } + } +}; + +export const WaitStatisticsInput: msRest.CompositeMapper = { + serializedName: "WaitStatisticsInput", + type: { + name: "Composite", + className: "WaitStatisticsInput", + modelProperties: { + observationStartTime: { + required: true, + serializedName: "properties.observationStartTime", + type: { + name: "DateTime" + } + }, + observationEndTime: { + required: true, + serializedName: "properties.observationEndTime", + type: { + name: "DateTime" + } + }, + aggregationWindow: { + required: true, + serializedName: "properties.aggregationWindow", + type: { + name: "String" + } + } + } + } +}; + +export const WaitStatistic: msRest.CompositeMapper = { + serializedName: "WaitStatistic", + type: { + name: "Composite", + className: "WaitStatistic", + modelProperties: { + ...ProxyResource.type.modelProperties, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + eventName: { + serializedName: "properties.eventName", + type: { + name: "String" + } + }, + eventTypeName: { + serializedName: "properties.eventTypeName", + type: { + name: "String" + } + }, + queryId: { + serializedName: "properties.queryId", + type: { + name: "Number" + } + }, + databaseName: { + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + userId: { + serializedName: "properties.userId", + type: { + name: "Number" + } + }, + count: { + serializedName: "properties.count", + type: { + name: "Number" + } + }, + totalTimeInMs: { + serializedName: "properties.totalTimeInMs", + type: { + name: "Number" + } + } + } + } +}; + +export const Advisor: msRest.CompositeMapper = { + serializedName: "Advisor", + type: { + name: "Composite", + className: "Advisor", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const RecommendationAction: msRest.CompositeMapper = { + serializedName: "RecommendationAction", + type: { + name: "Composite", + className: "RecommendationAction", + modelProperties: { + ...ProxyResource.type.modelProperties, + advisorName: { + serializedName: "properties.advisorName", + type: { + name: "String" + } + }, + sessionId: { + serializedName: "properties.sessionId", + type: { + name: "String" + } + }, + actionId: { + serializedName: "properties.actionId", + type: { + name: "Number" + } + }, + createdTime: { + serializedName: "properties.createdTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + }, + reason: { + serializedName: "properties.reason", + type: { + name: "String" + } + }, + recommendationType: { + serializedName: "properties.recommendationType", + type: { + name: "String" + } + }, + details: { + serializedName: "properties.details", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RecommendedActionSessionsOperationStatus: msRest.CompositeMapper = { + serializedName: "RecommendedActionSessionsOperationStatus", + type: { + name: "Composite", + className: "RecommendedActionSessionsOperationStatus", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const TagsObject: msRest.CompositeMapper = { + serializedName: "TagsObject", + type: { + name: "Composite", + className: "TagsObject", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceProperties: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceProperties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + readOnly: true, + serializedName: "groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties" + } + } + } + } +}; + +export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ServerSecurityAlertPolicy", + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } @@ -1131,6 +1953,216 @@ export const PerformanceTierListResult: msRest.CompositeMapper = { } }; +export const QueryTextsResultList: msRest.CompositeMapper = { + serializedName: "QueryTextsResultList", + type: { + name: "Composite", + className: "QueryTextsResultList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryText" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TopQueryStatisticsResultList: msRest.CompositeMapper = { + serializedName: "TopQueryStatisticsResultList", + type: { + name: "Composite", + className: "TopQueryStatisticsResultList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatistic" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WaitStatisticsResultList: msRest.CompositeMapper = { + serializedName: "WaitStatisticsResultList", + type: { + name: "Composite", + className: "WaitStatisticsResultList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WaitStatistic" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AdvisorsResultList: msRest.CompositeMapper = { + serializedName: "AdvisorsResultList", + type: { + name: "Composite", + className: "AdvisorsResultList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Advisor" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RecommendationActionsResultList: msRest.CompositeMapper = { + serializedName: "RecommendationActionsResultList", + type: { + name: "Composite", + className: "RecommendationActionsResultList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendationAction" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { 'ServerPropertiesForCreate' : ServerPropertiesForCreate, 'ServerPropertiesForCreate.Default' : ServerPropertiesForDefaultCreate, diff --git a/sdk/mariadb/arm-mariadb/src/models/operationsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/operationsMappers.ts index 65fc7dd1800a..324f42f8d515 100644 --- a/sdk/mariadb/arm-mariadb/src/models/operationsMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,6 +9,8 @@ export { discriminators, CloudError, + ErrorAdditionalInfo, + ErrorResponse, Operation, OperationDisplay, OperationListResult diff --git a/sdk/mariadb/arm-mariadb/src/models/parameters.ts b/sdk/mariadb/arm-mariadb/src/models/parameters.ts index 7dbc0227f6c5..bd092ebbbf4a 100644 --- a/sdk/mariadb/arm-mariadb/src/models/parameters.ts +++ b/sdk/mariadb/arm-mariadb/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,11 +19,41 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const apiVersion: msRest.OperationQueryParameter = { +export const advisorName: msRest.OperationURLParameter = { + parameterPath: "advisorName", + mapper: { + required: true, + serializedName: "advisorName", + type: { + name: "String" + } + } +}; +export const apiVersion0: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-06-01', + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const apiVersion1: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, + isConstant: true, serializedName: "api-version", + defaultValue: '2020-01-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -60,6 +89,16 @@ export const firewallRuleName: msRest.OperationURLParameter = { } } }; +export const groupName: msRest.OperationURLParameter = { + parameterPath: "groupName", + mapper: { + required: true, + serializedName: "groupName", + type: { + name: "String" + } + } +}; export const locationName: msRest.OperationURLParameter = { parameterPath: "locationName", mapper: { @@ -81,11 +120,82 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const operationId: msRest.OperationURLParameter = { + parameterPath: "operationId", + mapper: { + required: true, + serializedName: "operationId", + type: { + name: "String" + } + } +}; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; +export const queryId: msRest.OperationURLParameter = { + parameterPath: "queryId", + mapper: { + required: true, + serializedName: "queryId", + type: { + name: "String" + } + } +}; +export const queryIds: msRest.OperationQueryParameter = { + parameterPath: "queryIds", + mapper: { + required: true, + serializedName: "queryIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi +}; +export const queryStatisticId: msRest.OperationURLParameter = { + parameterPath: "queryStatisticId", + mapper: { + required: true, + serializedName: "queryStatisticId", + type: { + name: "String" + } + } +}; +export const recommendedActionName: msRest.OperationURLParameter = { + parameterPath: "recommendedActionName", + mapper: { + required: true, + serializedName: "recommendedActionName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } @@ -113,11 +223,26 @@ export const serverName: msRest.OperationURLParameter = { } } }; +export const sessionId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "sessionId" + ], + mapper: { + serializedName: "sessionId", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -133,3 +258,13 @@ export const virtualNetworkRuleName: msRest.OperationURLParameter = { } } }; +export const waitStatisticsId: msRest.OperationURLParameter = { + parameterPath: "waitStatisticsId", + mapper: { + required: true, + serializedName: "waitStatisticsId", + type: { + name: "String" + } + } +}; diff --git a/sdk/mariadb/arm-mariadb/src/models/privateEndpointConnectionsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..e2beadccef19 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + ErrorAdditionalInfo, + ErrorResponse, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TagsObject, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/privateLinkResourcesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..fac11343e99a --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + ErrorAdditionalInfo, + ErrorResponse, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/queryTextsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/queryTextsMappers.ts new file mode 100644 index 000000000000..acfbc058ea55 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/queryTextsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + QueryTextsResultList, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/recommendedActionsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/recommendedActionsMappers.ts new file mode 100644 index 000000000000..5d9457960e25 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/recommendedActionsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecommendationActionsResultList, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/recoverableServersMappers.ts b/sdk/mariadb/arm-mariadb/src/models/recoverableServersMappers.ts new file mode 100644 index 000000000000..6342bf422a52 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/recoverableServersMappers.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + ErrorAdditionalInfo, + ErrorResponse, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/replicasMappers.ts b/sdk/mariadb/arm-mariadb/src/models/replicasMappers.ts index b86a44e417cd..35ef96f2ff7e 100644 --- a/sdk/mariadb/arm-mariadb/src/models/replicasMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/replicasMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,36 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, ServerListResult, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/serverBasedPerformanceTierMappers.ts b/sdk/mariadb/arm-mariadb/src/models/serverBasedPerformanceTierMappers.ts new file mode 100644 index 000000000000..b25abbd987af --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/serverBasedPerformanceTierMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorAdditionalInfo, + ErrorResponse, + PerformanceTierListResult, + PerformanceTierProperties, + PerformanceTierServiceLevelObjectives +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/serverParametersMappers.ts b/sdk/mariadb/arm-mariadb/src/models/serverParametersMappers.ts new file mode 100644 index 000000000000..55289d1e7089 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/serverParametersMappers.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + ConfigurationListResult, + Database, + ErrorAdditionalInfo, + ErrorResponse, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/serverSecurityAlertPoliciesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/serverSecurityAlertPoliciesMappers.ts index 9555ebb4e3ca..0ed8abd933fe 100644 --- a/sdk/mariadb/arm-mariadb/src/models/serverSecurityAlertPoliciesMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/serverSecurityAlertPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,17 +8,33 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/serversMappers.ts b/sdk/mariadb/arm-mariadb/src/models/serversMappers.ts index 4495c8e37cdd..5e70d2de4350 100644 --- a/sdk/mariadb/arm-mariadb/src/models/serversMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/serversMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,16 +8,33 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, + ErrorAdditionalInfo, + ErrorResponse, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, ServerForCreate, ServerListResult, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerPropertiesForCreate, ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, @@ -28,5 +45,6 @@ export { Sku, StorageProfile, TrackedResource, - VirtualNetworkRule + VirtualNetworkRule, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/topQueryStatisticsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/topQueryStatisticsMappers.ts new file mode 100644 index 000000000000..7c62f7b88fd7 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/topQueryStatisticsMappers.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TopQueryStatisticsInput, + TopQueryStatisticsResultList, + TrackedResource, + VirtualNetworkRule, + WaitStatistic +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/virtualNetworkRulesMappers.ts b/sdk/mariadb/arm-mariadb/src/models/virtualNetworkRulesMappers.ts index 08d2a62e7e38..8e6ebf6a5b16 100644 --- a/sdk/mariadb/arm-mariadb/src/models/virtualNetworkRulesMappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/virtualNetworkRulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,18 +8,34 @@ export { discriminators, + Advisor, + AzureEntityResource, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule, - VirtualNetworkRuleListResult + VirtualNetworkRuleListResult, + WaitStatistic } from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/models/waitStatisticsMappers.ts b/sdk/mariadb/arm-mariadb/src/models/waitStatisticsMappers.ts new file mode 100644 index 000000000000..7fab9fada246 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/models/waitStatisticsMappers.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Advisor, + AzureEntityResource, + BaseResource, + CloudError, + Configuration, + Database, + FirewallRule, + LogFile, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + QueryStatistic, + QueryText, + RecommendationAction, + RecoverableServerResource, + Resource, + Server, + ServerPrivateEndpointConnection, + ServerPrivateEndpointConnectionProperties, + ServerPrivateLinkServiceConnectionStateProperty, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule, + WaitStatistic, + WaitStatisticsInput, + WaitStatisticsResultList +} from "../models/mappers"; diff --git a/sdk/mariadb/arm-mariadb/src/operations/advisors.ts b/sdk/mariadb/arm-mariadb/src/operations/advisors.ts new file mode 100644 index 000000000000..bb167f94019a --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/advisors.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/advisorsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a Advisors. */ +export class Advisors { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a Advisors. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Get a recommendation action advisor. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, advisorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, advisorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, advisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, advisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + advisorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List recommendation action advisors. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * List recommendation action advisors. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advisorName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Advisor + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AdvisorsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AdvisorsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/checkNameAvailability.ts b/sdk/mariadb/arm-mariadb/src/operations/checkNameAvailability.ts index 1b0938cf9601..fa716ba9ef61 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/checkNameAvailability.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/checkNameAvailability.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -62,12 +61,12 @@ export class CheckNameAvailability { const serializer = new msRest.Serializer(Mappers); const executeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/checkNameAvailability", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForMariaDB/checkNameAvailability", urlParameters: [ Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/configurations.ts b/sdk/mariadb/arm-mariadb/src/operations/configurations.ts index 914801c0295b..f2d7dc76e3a6 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/configurations.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/configurations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,8 +28,7 @@ export class Configurations { /** * Updates a configuration of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param configurationName The name of the server configuration. * @param parameters The required parameters for updating a server configuration. @@ -44,8 +42,7 @@ export class Configurations { /** * Gets information about a configuration of server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param configurationName The name of the server configuration. * @param [options] The optional parameters @@ -53,16 +50,14 @@ export class Configurations { */ get(resourceGroupName: string, serverName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param configurationName The name of the server configuration. * @param callback The callback */ get(resourceGroupName: string, serverName: string, configurationName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param configurationName The name of the server configuration. * @param options The optional parameters @@ -83,23 +78,20 @@ export class Configurations { /** * List all the configurations in a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -118,8 +110,7 @@ export class Configurations { /** * Updates a configuration of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param configurationName The name of the server configuration. * @param parameters The required parameters for updating a server configuration. @@ -144,7 +135,7 @@ export class Configurations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/configurations/{configurationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -152,7 +143,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.configurationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -170,14 +161,14 @@ const getOperationSpec: msRest.OperationSpec = { const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/configurations", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -195,7 +186,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/configurations/{configurationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -203,7 +194,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.configurationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/databases.ts b/sdk/mariadb/arm-mariadb/src/operations/databases.ts index 3a6e5f71a0f1..0e75dc448e27 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/databases.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/databases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,8 +28,7 @@ export class Databases { /** * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The required parameters for creating or updating a database. @@ -44,8 +42,7 @@ export class Databases { /** * Deletes a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -58,8 +55,7 @@ export class Databases { /** * Gets information about a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -67,16 +63,14 @@ export class Databases { */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The optional parameters @@ -97,23 +91,20 @@ export class Databases { /** * List all the databases in a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -132,8 +123,7 @@ export class Databases { /** * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The required parameters for creating or updating a database. @@ -155,8 +145,7 @@ export class Databases { /** * Deletes a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -179,7 +168,7 @@ export class Databases { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/databases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -187,7 +176,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -205,14 +194,14 @@ const getOperationSpec: msRest.OperationSpec = { const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/databases", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +219,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/databases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -238,7 +227,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -267,7 +256,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/databases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -275,7 +264,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/firewallRules.ts b/sdk/mariadb/arm-mariadb/src/operations/firewallRules.ts index 796a8285006c..2c0bb3a86c3d 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/firewallRules.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/firewallRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,8 +28,7 @@ export class FirewallRules { /** * Creates a new firewall rule or updates an existing firewall rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param parameters The required parameters for creating or updating a firewall rule. @@ -44,8 +42,7 @@ export class FirewallRules { /** * Deletes a server firewall rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param [options] The optional parameters @@ -58,8 +55,7 @@ export class FirewallRules { /** * Gets information about a server firewall rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param [options] The optional parameters @@ -67,16 +63,14 @@ export class FirewallRules { */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param callback The callback */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param options The optional parameters @@ -97,23 +91,20 @@ export class FirewallRules { /** * List all the firewall rules in a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -132,8 +123,7 @@ export class FirewallRules { /** * Creates a new firewall rule or updates an existing firewall rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param parameters The required parameters for creating or updating a firewall rule. @@ -155,8 +145,7 @@ export class FirewallRules { /** * Deletes a server firewall rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param firewallRuleName The name of the server firewall rule. * @param [options] The optional parameters @@ -179,7 +168,7 @@ export class FirewallRules { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -187,7 +176,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -205,14 +194,14 @@ const getOperationSpec: msRest.OperationSpec = { const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/firewallRules", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +219,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -238,7 +227,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -267,7 +256,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -275,7 +264,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.firewallRuleName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/index.ts b/sdk/mariadb/arm-mariadb/src/operations/index.ts index bb02d2d2c5e9..0a55c72d9404 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/index.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -14,8 +13,20 @@ export * from "./firewallRules"; export * from "./virtualNetworkRules"; export * from "./databases"; export * from "./configurations"; +export * from "./serverParameters"; export * from "./logFiles"; +export * from "./recoverableServers"; +export * from "./serverBasedPerformanceTier"; export * from "./locationBasedPerformanceTier"; export * from "./checkNameAvailability"; -export * from "./serverSecurityAlertPolicies"; export * from "./operations"; +export * from "./queryTexts"; +export * from "./topQueryStatistics"; +export * from "./waitStatistics"; +export * from "./advisors"; +export * from "./recommendedActions"; +export * from "./locationBasedRecommendedActionSessionsOperationStatus"; +export * from "./locationBasedRecommendedActionSessionsResult"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./serverSecurityAlertPolicies"; diff --git a/sdk/mariadb/arm-mariadb/src/operations/locationBasedPerformanceTier.ts b/sdk/mariadb/arm-mariadb/src/operations/locationBasedPerformanceTier.ts index 88f719633710..b8e18fd54186 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/locationBasedPerformanceTier.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/locationBasedPerformanceTier.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -59,13 +58,13 @@ export class LocationBasedPerformanceTier { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/performanceTiers", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForMariaDB/locations/{locationName}/performanceTiers", urlParameters: [ Parameters.subscriptionId, Parameters.locationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts b/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts new file mode 100644 index 000000000000..dbe77d8e1921 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/locationBasedRecommendedActionSessionsOperationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a LocationBasedRecommendedActionSessionsOperationStatus. */ +export class LocationBasedRecommendedActionSessionsOperationStatus { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a LocationBasedRecommendedActionSessionsOperationStatus. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Recommendation action session operation status. + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(locationName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param callback The callback + */ + get(locationName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param options The optional parameters + * @param callback The callback + */ + get(locationName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/recommendedActionSessionsAzureAsyncOperation/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.locationName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendedActionSessionsOperationStatus + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsResult.ts b/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsResult.ts new file mode 100644 index 000000000000..95f7c690dbe4 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/locationBasedRecommendedActionSessionsResult.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/locationBasedRecommendedActionSessionsResultMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a LocationBasedRecommendedActionSessionsResult. */ +export class LocationBasedRecommendedActionSessionsResult { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a LocationBasedRecommendedActionSessionsResult. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Recommendation action session operation result. + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param [options] The optional parameters + * @returns Promise + */ + list(locationName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param callback The callback + */ + list(locationName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The name of the location. + * @param operationId The operation identifier. + * @param options The optional parameters + * @param callback The callback + */ + list(locationName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(locationName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + operationId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Recommendation action session operation result. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/recommendedActionSessionsOperationResults/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.locationName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + 201: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + 201: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/logFiles.ts b/sdk/mariadb/arm-mariadb/src/operations/logFiles.ts index 30687cbb0c89..1de2fb0562b4 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/logFiles.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/logFiles.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,23 +27,20 @@ export class LogFiles { /** * List all the log files in a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -66,14 +62,14 @@ export class LogFiles { const serializer = new msRest.Serializer(Mappers); const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/logFiles", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/logFiles", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/operations.ts b/sdk/mariadb/arm-mariadb/src/operations/operations.ts index 4dc11ec5bb9d..29c4908250f2 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/operations.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -55,9 +54,9 @@ export class Operations { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "providers/Microsoft.DBforMariaDB/operations", + path: "providers/Microsoft.DBForMariaDB/operations", queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/privateEndpointConnections.ts b/sdk/mariadb/arm-mariadb/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..98601cae9dff --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/privateEndpointConnections.ts @@ -0,0 +1,401 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates private endpoint connection with the specified tags. + * @summary Updates tags on private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param parameters Parameters supplied to the Update private endpoint connection Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,serverName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all private endpoint connections on a server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates private endpoint connection with the specified tags. + * @summary Updates tags on private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param privateEndpointConnectionName + * @param parameters Parameters supplied to the Update private endpoint connection Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + privateEndpointConnectionName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateEndpointConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/privateLinkResources.ts b/sdk/mariadb/arm-mariadb/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..8618e25c0b69 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/privateLinkResources.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources for MariaDB server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Gets a private link resource for MariaDB server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param groupName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + groupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources for MariaDB server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateLinkResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.groupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/queryTexts.ts b/sdk/mariadb/arm-mariadb/src/operations/queryTexts.ts new file mode 100644 index 000000000000..b962cc6460e8 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/queryTexts.ts @@ -0,0 +1,210 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/queryTextsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a QueryTexts. */ +export class QueryTexts { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a QueryTexts. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Retrieve the Query-Store query texts for the queryId. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryId The Query-Store query identifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, queryId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryId The Query-Store query identifier. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, queryId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryId The Query-Store query identifier. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, queryId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, queryId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + queryId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Query-Store query texts for specified queryIds. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryIds The query identifiers + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, queryIds: string[], options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryIds The query identifiers + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, queryIds: string[], callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryIds The query identifiers + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, queryIds: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, queryIds: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + queryIds, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Query-Store query texts for specified queryIds. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param queryIds The query identifiers + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, queryIds: string[], options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param queryIds The query identifiers + * @param callback The callback + */ + listByServerNext(nextPageLink: string, queryIds: string[], callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param queryIds The query identifiers + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, queryIds: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, queryIds: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + queryIds, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/queryTexts/{queryId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.queryId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QueryText + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/queryTexts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.queryIds + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QueryTextsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.queryIds + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QueryTextsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/recommendedActions.ts b/sdk/mariadb/arm-mariadb/src/operations/recommendedActions.ts new file mode 100644 index 000000000000..ef6bbd3cb17a --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/recommendedActions.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recommendedActionsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a RecommendedActions. */ +export class RecommendedActions { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a RecommendedActions. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Retrieve recommended actions from the advisor. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param recommendedActionName The recommended action name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, advisorName: string, recommendedActionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param recommendedActionName The recommended action name. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, advisorName: string, recommendedActionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param recommendedActionName The recommended action name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, advisorName: string, recommendedActionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, advisorName: string, recommendedActionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + advisorName, + recommendedActionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve recommended actions from the advisor. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, advisorName: string, options?: Models.RecommendedActionsListByServerOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, advisorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param advisorName The advisor name for recommendation action. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, advisorName: string, options: Models.RecommendedActionsListByServerOptionalParams, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, advisorName: string, options?: Models.RecommendedActionsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + advisorName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Retrieve recommended actions from the advisor. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: Models.RecommendedActionsListByServerNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: Models.RecommendedActionsListByServerNextOptionalParams, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: Models.RecommendedActionsListByServerNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}/recommendedActions/{recommendedActionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advisorName, + Parameters.recommendedActionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationAction + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}/recommendedActions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advisorName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sessionId + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sessionId + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationActionsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/recoverableServers.ts b/sdk/mariadb/arm-mariadb/src/operations/recoverableServers.ts new file mode 100644 index 000000000000..3b5deb80dc23 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/recoverableServers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recoverableServersMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a RecoverableServers. */ +export class RecoverableServers { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a RecoverableServers. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Gets a recoverable MariaDB Server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/recoverableServers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoverableServerResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/replicas.ts b/sdk/mariadb/arm-mariadb/src/operations/replicas.ts index 0359016a2178..11102740bc4f 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/replicas.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/replicas.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,23 +27,20 @@ export class Replicas { /** * List all the replicas for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -66,14 +62,14 @@ export class Replicas { const serializer = new msRest.Serializer(Mappers); const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/replicas", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/serverBasedPerformanceTier.ts b/sdk/mariadb/arm-mariadb/src/operations/serverBasedPerformanceTier.ts new file mode 100644 index 000000000000..efe2938b6c77 --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/serverBasedPerformanceTier.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverBasedPerformanceTierMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a ServerBasedPerformanceTier. */ +export class ServerBasedPerformanceTier { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a ServerBasedPerformanceTier. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * List all the performance tiers for a MariaDB server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param callback The callback + */ + list(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/performanceTiers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PerformanceTierListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/serverParameters.ts b/sdk/mariadb/arm-mariadb/src/operations/serverParameters.ts new file mode 100644 index 000000000000..19d22be22c7a --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/serverParameters.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverParametersMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a ServerParameters. */ +export class ServerParameters { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a ServerParameters. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Update a list of configurations in a given server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param value The parameters for updating a list of server configuration. + * @param [options] The optional parameters + * @returns Promise + */ + listUpdateConfigurations(resourceGroupName: string, serverName: string, value: Models.ConfigurationListResult, options?: msRest.RequestOptionsBase): Promise { + return this.beginListUpdateConfigurations(resourceGroupName,serverName,value,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update a list of configurations in a given server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param value The parameters for updating a list of server configuration. + * @param [options] The optional parameters + * @returns Promise + */ + beginListUpdateConfigurations(resourceGroupName: string, serverName: string, value: Models.ConfigurationListResult, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + value, + options + }, + beginListUpdateConfigurationsOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginListUpdateConfigurationsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/updateConfigurations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "value", + mapper: { + ...Mappers.ConfigurationListResult, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConfigurationListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/serverSecurityAlertPolicies.ts b/sdk/mariadb/arm-mariadb/src/operations/serverSecurityAlertPolicies.ts index b6b4ce11d763..eca6c33e59b5 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/serverSecurityAlertPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,23 +28,20 @@ export class ServerSecurityAlertPolicies { /** * Get a server's security alert policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -64,8 +60,7 @@ export class ServerSecurityAlertPolicies { /** * Creates or updates a threat detection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The server security alert policy. * @param [options] The optional parameters @@ -78,8 +73,7 @@ export class ServerSecurityAlertPolicies { /** * Creates or updates a threat detection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The server security alert policy. * @param [options] The optional parameters @@ -110,7 +104,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -136,7 +130,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/servers.ts b/sdk/mariadb/arm-mariadb/src/operations/servers.ts index 65eb20b35d53..2f0762c853b6 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/servers.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/servers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -30,8 +29,7 @@ export class Servers { /** * Creates a new server or updates an existing server. The update action will overwrite the * existing server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The required parameters for creating or updating a server. * @param [options] The optional parameters @@ -45,8 +43,7 @@ export class Servers { /** * Updates an existing server. The request body can contain one to many of the properties present * in the normal server definition. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The required parameters for updating a server. * @param [options] The optional parameters @@ -59,8 +56,7 @@ export class Servers { /** * Deletes a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise @@ -72,23 +68,20 @@ export class Servers { /** * Gets information about a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -107,21 +100,18 @@ export class Servers { /** * List all the servers in a given resource group. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -162,8 +152,7 @@ export class Servers { /** * Restarts a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise @@ -173,11 +162,34 @@ export class Servers { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Starts a stopped server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Stops a running server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Creates a new server or updates an existing server. The update action will overwrite the * existing server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The required parameters for creating or updating a server. * @param [options] The optional parameters @@ -198,8 +210,7 @@ export class Servers { /** * Updates an existing server. The request body can contain one to many of the properties present * in the normal server definition. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param parameters The required parameters for updating a server. * @param [options] The optional parameters @@ -219,8 +230,7 @@ export class Servers { /** * Deletes a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise @@ -238,8 +248,7 @@ export class Servers { /** * Restarts a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise @@ -254,20 +263,56 @@ export class Servers { beginRestartOperationSpec, options); } + + /** + * Starts a stopped server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + beginStart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * Stops a running server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + beginStop(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + options + }, + beginStopOperationSpec, + options); + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -285,13 +330,13 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -309,12 +354,12 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/servers", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForMariaDB/servers", urlParameters: [ Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -332,14 +377,14 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -368,14 +413,14 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -401,14 +446,14 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -426,14 +471,62 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/restart", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/start", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/stop", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/mariadb/arm-mariadb/src/operations/topQueryStatistics.ts b/sdk/mariadb/arm-mariadb/src/operations/topQueryStatistics.ts new file mode 100644 index 000000000000..b35026f3630b --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/topQueryStatistics.ts @@ -0,0 +1,211 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/topQueryStatisticsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a TopQueryStatistics. */ +export class TopQueryStatistics { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a TopQueryStatistics. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Retrieve the query statistic for specified identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryStatisticId The Query Statistic identifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, queryStatisticId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryStatisticId The Query Statistic identifier. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, queryStatisticId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param queryStatisticId The Query Statistic identifier. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, queryStatisticId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, queryStatisticId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + queryStatisticId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Query-Store top queries for specified metric and aggregation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving top query statistics. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.TopQueryStatisticsInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving top query statistics. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.TopQueryStatisticsInput, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving top query statistics. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.TopQueryStatisticsInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, parameters: Models.TopQueryStatisticsInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + parameters, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Query-Store top queries for specified metric and aggregation. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/topQueryStatistics/{queryStatisticId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.queryStatisticId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QueryStatistic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/topQueryStatistics", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TopQueryStatisticsInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.TopQueryStatisticsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopQueryStatisticsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/src/operations/virtualNetworkRules.ts b/sdk/mariadb/arm-mariadb/src/operations/virtualNetworkRules.ts index 4b7d5b9332d1..0d3c2a971ea6 100644 --- a/sdk/mariadb/arm-mariadb/src/operations/virtualNetworkRules.ts +++ b/sdk/mariadb/arm-mariadb/src/operations/virtualNetworkRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,8 +28,7 @@ export class VirtualNetworkRules { /** * Gets a virtual network rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param [options] The optional parameters @@ -38,16 +36,14 @@ export class VirtualNetworkRules { */ get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param callback The callback */ get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param options The optional parameters @@ -68,8 +64,7 @@ export class VirtualNetworkRules { /** * Creates or updates an existing virtual network rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param parameters The requested virtual Network Rule Resource state. @@ -83,8 +78,7 @@ export class VirtualNetworkRules { /** * Deletes the virtual network rule with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param [options] The optional parameters @@ -97,23 +91,20 @@ export class VirtualNetworkRules { /** * Gets a list of virtual network rules in a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param [options] The optional parameters * @returns Promise */ listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The optional parameters * @param callback The callback @@ -132,8 +123,7 @@ export class VirtualNetworkRules { /** * Creates or updates an existing virtual network rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param parameters The requested virtual Network Rule Resource state. @@ -155,8 +145,7 @@ export class VirtualNetworkRules { /** * Deletes the virtual network rule with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param [options] The optional parameters @@ -207,7 +196,7 @@ export class VirtualNetworkRules { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -215,7 +204,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.virtualNetworkRuleName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -233,14 +222,14 @@ const getOperationSpec: msRest.OperationSpec = { const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/virtualNetworkRules", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -258,7 +247,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -266,7 +255,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.virtualNetworkRuleName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -295,7 +284,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -303,7 +292,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -326,6 +315,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/mariadb/arm-mariadb/src/operations/waitStatistics.ts b/sdk/mariadb/arm-mariadb/src/operations/waitStatistics.ts new file mode 100644 index 000000000000..7c6affde30eb --- /dev/null +++ b/sdk/mariadb/arm-mariadb/src/operations/waitStatistics.ts @@ -0,0 +1,211 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/waitStatisticsMappers"; +import * as Parameters from "../models/parameters"; +import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; + +/** Class representing a WaitStatistics. */ +export class WaitStatistics { + private readonly client: MariaDBManagementClientContext; + + /** + * Create a WaitStatistics. + * @param {MariaDBManagementClientContext} client Reference to the service client. + */ + constructor(client: MariaDBManagementClientContext) { + this.client = client; + } + + /** + * Retrieve wait statistics for specified identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param waitStatisticsId The Wait Statistic identifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, waitStatisticsId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param waitStatisticsId The Wait Statistic identifier. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, waitStatisticsId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param waitStatisticsId The Wait Statistic identifier. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, waitStatisticsId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, waitStatisticsId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + waitStatisticsId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve wait statistics for specified aggregation window. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving wait statistics. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.WaitStatisticsInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving wait statistics. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.WaitStatisticsInput, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serverName The name of the server. + * @param parameters The required parameters for retrieving wait statistics. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, parameters: Models.WaitStatisticsInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, parameters: Models.WaitStatisticsInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + parameters, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Retrieve wait statistics for specified aggregation window. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/waitStatistics/{waitStatisticsId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.waitStatisticsId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WaitStatistic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/waitStatistics", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WaitStatisticsInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WaitStatisticsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WaitStatisticsResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/mariadb/arm-mariadb/tsconfig.json b/sdk/mariadb/arm-mariadb/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/mariadb/arm-mariadb/tsconfig.json +++ b/sdk/mariadb/arm-mariadb/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true