diff --git a/sdk/mariadb/arm-mariadb/README.md b/sdk/mariadb/arm-mariadb/README.md index c042985df3a6..883fd0e3f411 100644 --- a/sdk/mariadb/arm-mariadb/README.md +++ b/sdk/mariadb/arm-mariadb/README.md @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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/sdk/mariadb/arm-mariadb/README.png) diff --git a/sdk/mariadb/arm-mariadb/package.json b/sdk/mariadb/arm-mariadb/package.json index 7a2c04e4716b..02e7f40ebda4 100644 --- a/sdk/mariadb/arm-mariadb/package.json +++ b/sdk/mariadb/arm-mariadb/package.json @@ -5,7 +5,7 @@ "version": "1.3.0", "dependencies": { "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/mariadb/arm-mariadb", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" diff --git a/sdk/mariadb/arm-mariadb/src/models/index.ts b/sdk/mariadb/arm-mariadb/src/models/index.ts index 4e5bf363e07b..5fd1820dc05a 100644 --- a/sdk/mariadb/arm-mariadb/src/models/index.ts +++ b/sdk/mariadb/arm-mariadb/src/models/index.ts @@ -62,6 +62,10 @@ export interface StorageProfile { * Max storage allowed for a server. */ storageMB?: number; + /** + * Enable Storage Auto Grow. Possible values include: 'Enabled', 'Disabled' + */ + storageAutogrow?: StorageAutogrow; } /** @@ -742,6 +746,14 @@ export type ServerState = 'Ready' | 'Dropping' | 'Disabled'; */ 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' diff --git a/sdk/mariadb/arm-mariadb/src/models/mappers.ts b/sdk/mariadb/arm-mariadb/src/models/mappers.ts index 5d86bc990e7b..ed38ecdfbf78 100644 --- a/sdk/mariadb/arm-mariadb/src/models/mappers.ts +++ b/sdk/mariadb/arm-mariadb/src/models/mappers.ts @@ -95,6 +95,12 @@ export const StorageProfile: msRest.CompositeMapper = { type: { name: "Number" } + }, + storageAutogrow: { + serializedName: "storageAutogrow", + type: { + name: "String" + } } } } diff --git a/sdk/mysql/arm-mysql/LICENSE.txt b/sdk/mysql/arm-mysql/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/mysql/arm-mysql/LICENSE.txt +++ b/sdk/mysql/arm-mysql/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/mysql/arm-mysql/README.md b/sdk/mysql/arm-mysql/README.md index 4192e5f8268e..8ec5229bc98d 100644 --- a/sdk/mysql/arm-mysql/README.md +++ b/sdk/mysql/arm-mysql/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for MySQLManagementClient. ### How to Install -``` +```bash npm install @azure/arm-mysql ``` @@ -19,13 +19,13 @@ npm install @azure/arm-mysql ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```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"; @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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/sdk/mysql/arm-mysql/README.png) diff --git a/sdk/mysql/arm-mysql/package.json b/sdk/mysql/arm-mysql/package.json index e24972fb3199..513dba4af260 100644 --- a/sdk/mysql/arm-mysql/package.json +++ b/sdk/mysql/arm-mysql/package.json @@ -4,8 +4,8 @@ "description": "MySQLManagementClient Library with typescript type definitions for node.js and browser.", "version": "3.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/mysql/arm-mysql", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/mysql/arm-mysql/rollup.config.js b/sdk/mysql/arm-mysql/rollup.config.js index 80eadf7e095c..1461c9cabee5 100644 --- a/sdk/mysql/arm-mysql/rollup.config.js +++ b/sdk/mysql/arm-mysql/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/mySQLManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/mySQLManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-mysql.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/mysql/arm-mysql/src/models/checkNameAvailabilityMappers.ts b/sdk/mysql/arm-mysql/src/models/checkNameAvailabilityMappers.ts index a24ff9f7dbcb..ba8b8606adc4 100644 --- a/sdk/mysql/arm-mysql/src/models/checkNameAvailabilityMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/checkNameAvailabilityMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - NameAvailabilityRequest, + CloudError, NameAvailability, - CloudError + NameAvailabilityRequest } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts b/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts index ae083ee9bcbe..3df779f095a3 100644 --- a/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - Configuration, - ProxyResource, BaseResource, CloudError, + Configuration, ConfigurationListResult, - TrackedResource, + Database, + FirewallRule, + LogFile, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - FirewallRule, - VirtualNetworkRule, - Database, - LogFile, - ServerSecurityAlertPolicy + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/databasesMappers.ts b/sdk/mysql/arm-mysql/src/models/databasesMappers.ts index 74397dcc2958..aab1065ee094 100644 --- a/sdk/mysql/arm-mysql/src/models/databasesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/databasesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - Database, - ProxyResource, BaseResource, CloudError, + Configuration, + Database, DatabaseListResult, - TrackedResource, + FirewallRule, + LogFile, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - FirewallRule, - VirtualNetworkRule, - Configuration, - LogFile, - ServerSecurityAlertPolicy + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts b/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts index f69fc84292d1..2b819a0b71bc 100644 --- a/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - FirewallRule, - ProxyResource, BaseResource, CloudError, + Configuration, + Database, + FirewallRule, FirewallRuleListResult, - TrackedResource, + LogFile, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - VirtualNetworkRule, - Database, - Configuration, - LogFile, - ServerSecurityAlertPolicy + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/index.ts b/sdk/mysql/arm-mysql/src/models/index.ts index b684310622d0..693159b1be74 100644 --- a/sdk/mysql/arm-mysql/src/models/index.ts +++ b/sdk/mysql/arm-mysql/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,75 +11,61 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ProxyResource. * Resource properties. - * - * @extends BaseResource */ export interface ProxyResource extends BaseResource { /** - * @member {string} [id] Resource ID - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing TrackedResource. * Resource properties including location and tags for track resources. - * - * @extends ProxyResource */ export interface TrackedResource extends ProxyResource { /** - * @member {string} location The location the resource resides in. + * The location the resource resides in. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Application-specific - * metadata in the form of key-value pairs. + * Application-specific metadata in the form of key-value pairs. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing StorageProfile. * Storage Profile properties of a server - * */ export interface StorageProfile { /** - * @member {number} [backupRetentionDays] Backup retention days for the - * server. + * Backup retention days for the server. */ backupRetentionDays?: number; /** - * @member {GeoRedundantBackup} [geoRedundantBackup] Enable Geo-redundant or - * not for server backup. Possible values include: 'Enabled', 'Disabled' + * Enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled' */ geoRedundantBackup?: GeoRedundantBackup; /** - * @member {number} [storageMB] Max storage allowed for a server. + * Max storage allowed for a server. */ storageMB?: number; + /** + * Enable Storage Auto Grow. Possible values include: 'Enabled', 'Disabled' + */ + storageAutogrow?: StorageAutogrow; } /** @@ -90,725 +74,587 @@ export interface StorageProfile { export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica; /** - * @interface - * An interface representing ServerPropertiesForCreate. * The properties used to create a new server. - * */ export interface ServerPropertiesForCreate { /** - * @member {string} createMode Polymorphic Discriminator + * Polymorphic Discriminator */ createMode: "ServerPropertiesForCreate"; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; } /** - * @interface - * An interface representing ServerPropertiesForDefaultCreate. * The properties used to create a new server. - * */ export interface ServerPropertiesForDefaultCreate { /** - * @member {string} createMode Polymorphic Discriminator + * Polymorphic Discriminator */ createMode: "Default"; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} administratorLogin The administrator's login name of a - * server. Can only be specified when the server is being created (and is - * required for creation). + * The administrator's login name of a server. Can only be specified when the server is being + * created (and is required for creation). */ administratorLogin: string; /** - * @member {string} administratorLoginPassword The password of the - * administrator login. + * The password of the administrator login. */ administratorLoginPassword: string; } /** - * @interface - * An interface representing ServerPropertiesForRestore. * The properties used to create a new server by restoring from a backup. - * */ export interface ServerPropertiesForRestore { /** - * @member {string} createMode Polymorphic Discriminator + * Polymorphic Discriminator */ createMode: "PointInTimeRestore"; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} sourceServerId The source server id to restore from. + * The source server id to restore from. */ sourceServerId: string; /** - * @member {Date} restorePointInTime Restore point creation time (ISO8601 - * format), specifying the time to restore from. + * Restore point creation time (ISO8601 format), specifying the time to restore from. */ restorePointInTime: Date; } /** - * @interface - * An interface representing ServerPropertiesForGeoRestore. - * The properties used to create a new server by restoring to a different - * region from a geo replicated backup. - * + * The properties used to create a new server by restoring to a different region from a geo + * replicated backup. */ export interface ServerPropertiesForGeoRestore { /** - * @member {string} createMode Polymorphic Discriminator + * Polymorphic Discriminator */ createMode: "GeoRestore"; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} sourceServerId The source server id to restore from. + * The source server id to restore from. */ sourceServerId: string; } /** - * @interface - * An interface representing ServerPropertiesForReplica. * The properties to create a new replica. - * */ export interface ServerPropertiesForReplica { /** - * @member {string} createMode Polymorphic Discriminator + * Polymorphic Discriminator */ createMode: "Replica"; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} sourceServerId The master server id to create replica - * from. + * The master server id to create replica from. */ sourceServerId: string; } /** - * @interface - * An interface representing Sku. * Billing information related properties of a server. - * */ export interface Sku { /** - * @member {string} [name] The name of the sku, typically, tier + family + - * cores, e.g. B_Gen4_1, GP_Gen5_8. + * The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. */ name?: string; /** - * @member {SkuTier} [tier] The tier of the particular SKU, e.g. Basic. - * Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized' + * The tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', + * 'GeneralPurpose', 'MemoryOptimized' */ tier?: SkuTier; /** - * @member {number} [capacity] The scale up/out capacity, representing - * server's compute units. + * The scale up/out capacity, representing server's compute units. */ capacity?: number; /** - * @member {string} [size] The size code, to be interpreted by resource as - * appropriate. + * The size code, to be interpreted by resource as appropriate. */ size?: string; /** - * @member {string} [family] The family of hardware. + * The family of hardware. */ family?: string; } /** - * @interface - * An interface representing Server. * Represents a server. - * - * @extends TrackedResource */ export interface Server extends TrackedResource { /** - * @member {Sku} [sku] The SKU (pricing tier) of the server. + * The SKU (pricing tier) of the server. */ sku?: Sku; /** - * @member {string} [administratorLogin] The administrator's login name of a - * server. Can only be specified when the server is being created (and is - * required for creation). + * The administrator's login name of a server. Can only be specified when the server is being + * created (and is required for creation). */ administratorLogin?: string; /** - * @member {ServerVersion} [version] Server version. Possible values include: - * '5.6', '5.7' + * Server version. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {ServerState} [userVisibleState] A state of a server that is - * visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled' + * A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', + * 'Disabled' */ userVisibleState?: ServerState; /** - * @member {string} [fullyQualifiedDomainName] The fully qualified domain - * name of a server. + * The fully qualified domain name of a server. */ fullyQualifiedDomainName?: string; /** - * @member {Date} [earliestRestoreDate] Earliest restore point creation time - * (ISO8601 format) + * Earliest restore point creation time (ISO8601 format) */ earliestRestoreDate?: Date; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} [replicationRole] The replication role of the server. + * The replication role of the server. */ replicationRole?: string; /** - * @member {string} [masterServerId] The master server id of a relica server. + * The master server id of a replica server. */ masterServerId?: string; /** - * @member {number} [replicaCapacity] The maximum number of replicas that a - * master server can have. + * The maximum number of replicas that a master server can have. */ replicaCapacity?: number; } /** - * @interface - * An interface representing ServerForCreate. * Represents a server to be created. - * */ export interface ServerForCreate { /** - * @member {Sku} [sku] The SKU (pricing tier) of the server. + * The SKU (pricing tier) of the server. */ sku?: Sku; /** - * @member {ServerPropertiesForCreateUnion} properties Properties of the - * server. + * Properties of the server. */ properties: ServerPropertiesForCreateUnion; /** - * @member {string} location The location the resource resides in. + * The location the resource resides in. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Application-specific - * metadata in the form of key-value pairs. + * Application-specific metadata in the form of key-value pairs. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ServerUpdateParameters. - * Parameters allowd to update for a server. - * + * Parameters allowed to update for a server. */ export interface ServerUpdateParameters { /** - * @member {Sku} [sku] The SKU (pricing tier) of the server. + * The SKU (pricing tier) of the server. */ sku?: Sku; /** - * @member {StorageProfile} [storageProfile] Storage profile of a server. + * Storage profile of a server. */ storageProfile?: StorageProfile; /** - * @member {string} [administratorLoginPassword] The password of the - * administrator login. + * The password of the administrator login. */ administratorLoginPassword?: string; /** - * @member {ServerVersion} [version] The version of a server. Possible values - * include: '5.6', '5.7' + * The version of a server. Possible values include: '5.6', '5.7' */ version?: ServerVersion; /** - * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or - * not when connect to server. Possible values include: 'Enabled', 'Disabled' + * Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', + * 'Disabled' */ sslEnforcement?: SslEnforcementEnum; /** - * @member {string} [replicationRole] The replication role of the server. + * The replication role of the server. */ replicationRole?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Application-specific - * metadata in the form of key-value pairs. + * Application-specific metadata in the form of key-value pairs. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing FirewallRule. * Represents a server firewall rule. - * - * @extends ProxyResource */ export interface FirewallRule extends ProxyResource { /** - * @member {string} startIpAddress The start IP address of the server - * firewall rule. Must be IPv4 format. + * The start IP address of the server firewall rule. Must be IPv4 format. */ startIpAddress: string; /** - * @member {string} endIpAddress The end IP address of the server firewall - * rule. Must be IPv4 format. + * The end IP address of the server firewall rule. Must be IPv4 format. */ endIpAddress: string; } /** - * @interface - * An interface representing VirtualNetworkRule. * A virtual network rule. - * - * @extends ProxyResource */ export interface VirtualNetworkRule extends ProxyResource { /** - * @member {string} virtualNetworkSubnetId The ARM resource id of the virtual - * network subnet. + * The ARM resource id of the virtual network subnet. */ virtualNetworkSubnetId: string; /** - * @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule - * before the virtual network has vnet service endpoint enabled. + * Create firewall rule before the virtual network has vnet service endpoint enabled. */ ignoreMissingVnetServiceEndpoint?: boolean; /** - * @member {VirtualNetworkRuleState} [state] Virtual Network Rule State. - * Possible values include: 'Initializing', 'InProgress', 'Ready', + * Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', * 'Deleting', 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: VirtualNetworkRuleState; } /** - * @interface - * An interface representing Database. * Represents a Database. - * - * @extends ProxyResource */ export interface Database extends ProxyResource { /** - * @member {string} [charset] The charset of the database. + * The charset of the database. */ charset?: string; /** - * @member {string} [collation] The collation of the database. + * The collation of the database. */ collation?: string; } /** - * @interface - * An interface representing Configuration. * Represents a Configuration. - * - * @extends ProxyResource */ export interface Configuration extends ProxyResource { /** - * @member {string} [value] Value of the configuration. + * Value of the configuration. */ value?: string; /** - * @member {string} [description] Description of the configuration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Description of the configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; /** - * @member {string} [defaultValue] Default value of the configuration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Default value of the configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly defaultValue?: string; /** - * @member {string} [dataType] Data type of the configuration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Data type of the configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dataType?: string; /** - * @member {string} [allowedValues] Allowed values of the configuration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Allowed values of the configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly allowedValues?: string; /** - * @member {string} [source] Source of the configuration. + * Source of the configuration. */ source?: string; } /** - * @interface - * An interface representing OperationDisplay. * Display metadata associated with the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Operation resource provider name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation resource provider name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource on which the operation is performed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; /** - * @member {string} [operation] Localized friendly name for the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Localized friendly name for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; /** - * @member {string} [description] Operation description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; } /** - * @interface - * An interface representing Operation. * REST API operation definition. - * */ export interface Operation { /** - * @member {string} [name] The name of the operation being performed on this - * particular object. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the operation being performed on this particular object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplay} [display] The localized display information for - * this particular operation or action. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The localized display information for this particular operation or action. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly display?: OperationDisplay; /** - * @member {OperationOrigin} [origin] The intended executor of the operation. - * Possible values include: 'NotSpecified', 'user', 'system' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The intended executor of the operation. Possible values include: 'NotSpecified', 'user', + * 'system' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly origin?: OperationOrigin; /** - * @member {{ [propertyName: string]: any }} [properties] Additional - * descriptions for the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Additional descriptions for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly properties?: { [propertyName: string]: any }; } /** - * @interface - * An interface representing OperationListResult. * A list of resource provider operations. - * */ export interface OperationListResult { /** - * @member {Operation[]} [value] The list of resource provider operations. + * The list of resource provider operations. */ value?: Operation[]; } /** - * @interface - * An interface representing LogFile. * Represents a log file. - * - * @extends ProxyResource */ export interface LogFile extends ProxyResource { /** - * @member {number} [sizeInKB] Size of the log file. + * Size of the log file. */ sizeInKB?: number; /** - * @member {Date} [createdTime] Creation timestamp of the log file. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Creation timestamp of the log file. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdTime?: Date; /** - * @member {Date} [lastModifiedTime] Last modified timestamp of the log file. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last modified timestamp of the log file. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastModifiedTime?: Date; /** - * @member {string} [logFileType] Type of the log file. + * Type of the log file. */ logFileType?: string; /** - * @member {string} [url] The url to download the log file from. + * The url to download the log file from. */ url?: string; } /** - * @interface - * An interface representing PerformanceTierServiceLevelObjectives. * Service level objectives for performance tier. - * */ export interface PerformanceTierServiceLevelObjectives { /** - * @member {string} [id] ID for the service level objective. + * ID for the service level objective. */ id?: string; /** - * @member {string} [edition] Edition of the performance tier. + * Edition of the performance tier. */ edition?: string; /** - * @member {number} [vCore] vCore associated with the service level objective + * vCore associated with the service level objective */ vCore?: number; /** - * @member {string} [hardwareGeneration] Hardware generation associated with - * the service level objective + * Hardware generation associated with the service level objective */ hardwareGeneration?: string; /** - * @member {number} [maxBackupRetentionDays] Maximum Backup retention in days - * for the performance tier edition + * Maximum Backup retention in days for the performance tier edition */ maxBackupRetentionDays?: number; /** - * @member {number} [minBackupRetentionDays] Minimum Backup retention in days - * for the performance tier edition + * Minimum Backup retention in days for the performance tier edition */ minBackupRetentionDays?: number; /** - * @member {number} [maxStorageMB] Max storage allowed for a server. + * Max storage allowed for a server. */ maxStorageMB?: number; /** - * @member {number} [minStorageMB] Max storage allowed for a server. + * Max storage allowed for a server. */ minStorageMB?: number; } /** - * @interface - * An interface representing PerformanceTierProperties. * Performance tier properties - * */ export interface PerformanceTierProperties { /** - * @member {string} [id] ID of the performance tier. + * ID of the performance tier. */ id?: string; /** - * @member {PerformanceTierServiceLevelObjectives[]} [serviceLevelObjectives] * Service level objectives associated with the performance tier */ serviceLevelObjectives?: PerformanceTierServiceLevelObjectives[]; } /** - * @interface - * An interface representing NameAvailabilityRequest. * Request from client to check resource name availability. - * */ export interface NameAvailabilityRequest { /** - * @member {string} name Resource name to verify. + * Resource name to verify. */ name: string; /** - * @member {string} [type] Resource type used for verification. + * Resource type used for verification. */ type?: string; } /** - * @interface - * An interface representing NameAvailability. * Represents a resource name availability. - * */ export interface NameAvailability { /** - * @member {string} [message] Error Message. + * Error Message. */ message?: string; /** - * @member {boolean} [nameAvailable] Indicates whether the resource name is - * available. + * Indicates whether the resource name is available. */ nameAvailable?: boolean; /** - * @member {string} [reason] Reason for name being unavailable. + * Reason for name being unavailable. */ reason?: string; } /** - * @interface - * An interface representing ServerSecurityAlertPolicy. * A server security alert policy. - * - * @extends ProxyResource */ export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * @member {ServerSecurityAlertPolicyState} state Specifies the state of the - * policy, whether it is enabled or disabled. Possible values include: + * Specifies the state of the policy, whether it is enabled or disabled. Possible values include: * 'Enabled', 'Disabled' */ state: ServerSecurityAlertPolicyState; /** - * @member {string[]} [disabledAlerts] Specifies an array of alerts that are - * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, - * Access_Anomaly + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly */ disabledAlerts?: string[]; /** - * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses - * to which the alert is sent. + * Specifies an array of e-mail addresses to which the alert is sent. */ emailAddresses?: string[]; /** - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. + * Specifies that the alert is sent to the account administrators. */ emailAccountAdmins?: boolean; /** - * @member {string} [storageEndpoint] Specifies the blob storage endpoint - * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will - * hold all Threat Detection audit logs. + * 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; /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. + * Specifies the identifier key of the Threat Detection audit storage account. */ storageAccountAccessKey?: string; /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the Threat Detection audit logs. + * Specifies the number of days to keep in the Threat Detection audit logs. */ retentionDays?: number; } /** - * @interface * An interface representing MySQLManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface MySQLManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the ServerListResult. * A list of servers. - * * @extends Array */ export interface ServerListResult extends Array { @@ -816,9 +662,7 @@ export interface ServerListResult extends Array { /** * @interface - * An interface representing the FirewallRuleListResult. * A list of firewall rules. - * * @extends Array */ export interface FirewallRuleListResult extends Array { @@ -826,25 +670,20 @@ export interface FirewallRuleListResult extends Array { /** * @interface - * An interface representing the VirtualNetworkRuleListResult. * A list of virtual network rules. - * * @extends Array */ export interface VirtualNetworkRuleListResult extends Array { /** - * @member {string} [nextLink] Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 - * An interface representing the DatabaseListResult. * A List of databases. - * * @extends Array */ export interface DatabaseListResult extends Array { @@ -852,9 +691,7 @@ export interface DatabaseListResult extends Array { /** * @interface - * An interface representing the ConfigurationListResult. * A list of server configurations. - * * @extends Array */ export interface ConfigurationListResult extends Array { @@ -862,9 +699,7 @@ export interface ConfigurationListResult extends Array { /** * @interface - * An interface representing the LogFileListResult. * A list of log files. - * * @extends Array */ export interface LogFileListResult extends Array { @@ -872,9 +707,7 @@ export interface LogFileListResult extends Array { /** * @interface - * An interface representing the PerformanceTierListResult. * A list of performance tiers. - * * @extends Array */ export interface PerformanceTierListResult extends Array { @@ -912,6 +745,14 @@ export type ServerState = 'Ready' | 'Dropping' | 'Disabled'; */ 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' @@ -956,6 +797,7 @@ export type ServersCreateResponse = Server & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -975,6 +817,7 @@ export type ServersUpdateResponse = Server & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -994,6 +837,7 @@ export type ServersGetResponse = Server & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1013,6 +857,7 @@ export type ServersListByResourceGroupResponse = ServerListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1032,6 +877,7 @@ export type ServersListResponse = ServerListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1051,6 +897,7 @@ export type ServersBeginCreateResponse = Server & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1070,6 +917,7 @@ export type ServersBeginUpdateResponse = Server & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1089,6 +937,7 @@ export type ReplicasListByServerResponse = ServerListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1108,6 +957,7 @@ export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1127,6 +977,7 @@ export type FirewallRulesGetResponse = FirewallRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1146,6 +997,7 @@ export type FirewallRulesListByServerResponse = FirewallRuleListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1165,6 +1017,7 @@ export type FirewallRulesBeginCreateOrUpdateResponse = FirewallRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1184,6 +1037,7 @@ export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1203,6 +1057,7 @@ export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1222,6 +1077,7 @@ export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1241,6 +1097,7 @@ export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1260,6 +1117,7 @@ export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1279,6 +1137,7 @@ export type DatabasesCreateOrUpdateResponse = Database & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1298,6 +1157,7 @@ export type DatabasesGetResponse = Database & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1317,6 +1177,7 @@ export type DatabasesListByServerResponse = DatabaseListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1336,6 +1197,7 @@ export type DatabasesBeginCreateOrUpdateResponse = Database & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1355,6 +1217,7 @@ export type ConfigurationsCreateOrUpdateResponse = Configuration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1374,6 +1237,7 @@ export type ConfigurationsGetResponse = Configuration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1393,6 +1257,7 @@ export type ConfigurationsListByServerResponse = ConfigurationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1412,6 +1277,7 @@ export type ConfigurationsBeginCreateOrUpdateResponse = Configuration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1431,6 +1297,7 @@ export type LogFilesListByServerResponse = LogFileListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1450,6 +1317,7 @@ export type LocationBasedPerformanceTierListResponse = PerformanceTierListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1469,6 +1337,7 @@ export type CheckNameAvailabilityExecuteResponse = NameAvailability & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1488,6 +1357,7 @@ export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1507,6 +1377,7 @@ export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAl * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1526,6 +1397,7 @@ export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecur * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1545,6 +1417,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/mysql/arm-mysql/src/models/locationBasedPerformanceTierMappers.ts b/sdk/mysql/arm-mysql/src/models/locationBasedPerformanceTierMappers.ts index 583aeed71406..a4911d3e4ae0 100644 --- a/sdk/mysql/arm-mysql/src/models/locationBasedPerformanceTierMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/locationBasedPerformanceTierMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, + CloudError, PerformanceTierListResult, PerformanceTierProperties, - PerformanceTierServiceLevelObjectives, - CloudError + PerformanceTierServiceLevelObjectives } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts b/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts index 4e7e7fd45a53..b6832542b835 100644 --- a/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - LogFileListResult, - LogFile, - ProxyResource, BaseResource, CloudError, - TrackedResource, + Configuration, + Database, + FirewallRule, + LogFile, + LogFileListResult, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - FirewallRule, - VirtualNetworkRule, - Database, - Configuration, - ServerSecurityAlertPolicy + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/mappers.ts b/sdk/mysql/arm-mysql/src/models/mappers.ts index c67df1ea8dfe..ba6229c5b54f 100644 --- a/sdk/mysql/arm-mysql/src/models/mappers.ts +++ b/sdk/mysql/arm-mysql/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -97,6 +95,12 @@ export const StorageProfile: msRest.CompositeMapper = { type: { name: "Number" } + }, + storageAutogrow: { + serializedName: "storageAutogrow", + type: { + name: "String" + } } } } @@ -1132,4 +1136,5 @@ export const discriminators = { 'ServerPropertiesForCreate.PointInTimeRestore' : ServerPropertiesForRestore, 'ServerPropertiesForCreate.GeoRestore' : ServerPropertiesForGeoRestore, 'ServerPropertiesForCreate.Replica' : ServerPropertiesForReplica + }; diff --git a/sdk/mysql/arm-mysql/src/models/operationsMappers.ts b/sdk/mysql/arm-mysql/src/models/operationsMappers.ts index 19f09b391246..65fc7dd1800a 100644 --- a/sdk/mysql/arm-mysql/src/models/operationsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/replicasMappers.ts b/sdk/mysql/arm-mysql/src/models/replicasMappers.ts index bc64b271d555..b86a44e417cd 100644 --- a/sdk/mysql/arm-mysql/src/models/replicasMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/replicasMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ServerListResult, - Server, - TrackedResource, - ProxyResource, BaseResource, - Sku, - StorageProfile, CloudError, - FirewallRule, - VirtualNetworkRule, - Database, Configuration, + Database, + FirewallRule, LogFile, - ServerSecurityAlertPolicy + ProxyResource, + Server, + ServerListResult, + ServerSecurityAlertPolicy, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts b/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts index abd1b46090d7..9555ebb4e3ca 100644 --- a/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts @@ -1,27 +1,24 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ServerSecurityAlertPolicy, - ProxyResource, BaseResource, CloudError, - TrackedResource, + Configuration, + Database, + FirewallRule, + LogFile, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - FirewallRule, - VirtualNetworkRule, - Database, - Configuration, - LogFile + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/serversMappers.ts b/sdk/mysql/arm-mysql/src/models/serversMappers.ts index 717dec8c00d0..4495c8e37cdd 100644 --- a/sdk/mysql/arm-mysql/src/models/serversMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serversMappers.ts @@ -1,35 +1,32 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ServerForCreate, - Sku, - ServerPropertiesForCreate, - StorageProfile, - Server, - TrackedResource, - ProxyResource, BaseResource, CloudError, - ServerUpdateParameters, + Configuration, + Database, + FirewallRule, + LogFile, + ProxyResource, + Server, + ServerForCreate, ServerListResult, + ServerPropertiesForCreate, ServerPropertiesForDefaultCreate, - ServerPropertiesForRestore, ServerPropertiesForGeoRestore, ServerPropertiesForReplica, - FirewallRule, - VirtualNetworkRule, - Database, - Configuration, - LogFile, - ServerSecurityAlertPolicy + ServerPropertiesForRestore, + ServerSecurityAlertPolicy, + ServerUpdateParameters, + Sku, + StorageProfile, + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts b/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts index 4b1e5fd7e9af..08d2a62e7e38 100644 --- a/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - VirtualNetworkRule, - ProxyResource, BaseResource, CloudError, - VirtualNetworkRuleListResult, - TrackedResource, + Configuration, + Database, + FirewallRule, + LogFile, + ProxyResource, Server, + ServerSecurityAlertPolicy, Sku, StorageProfile, - FirewallRule, - Database, - Configuration, - LogFile, - ServerSecurityAlertPolicy + TrackedResource, + VirtualNetworkRule, + VirtualNetworkRuleListResult } from "../models/mappers"; - diff --git a/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts b/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts index ef7dc1db894a..7bbb42de2e95 100644 --- a/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts +++ b/sdk/mysql/arm-mysql/src/mySQLManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-mysql"; -const packageVersion = "0.1.0"; +const packageVersion = "3.2.0"; export class MySQLManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/mysql/arm-mysql/src/operations/servers.ts b/sdk/mysql/arm-mysql/src/operations/servers.ts index e8fc4b440857..2985d9a5c7b4 100644 --- a/sdk/mysql/arm-mysql/src/operations/servers.ts +++ b/sdk/mysql/arm-mysql/src/operations/servers.ts @@ -160,6 +160,19 @@ export class Servers { callback) as Promise; } + /** + * 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 serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Creates a new server or updates an existing server. The update action will overwrite the * existing server. @@ -222,6 +235,25 @@ export class Servers { beginDeleteMethodOperationSpec, options); } + + /** + * 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 serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + options + }, + beginRestartOperationSpec, + options); + } } // Operation Specifications @@ -391,3 +423,27 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginRestartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/postgresql/arm-postgresql/package.json b/sdk/postgresql/arm-postgresql/package.json index bb1fab5b0f03..4af6a47b31b7 100644 --- a/sdk/postgresql/arm-postgresql/package.json +++ b/sdk/postgresql/arm-postgresql/package.json @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/postgresql/arm-postgresql", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" diff --git a/sdk/postgresql/arm-postgresql/src/models/index.ts b/sdk/postgresql/arm-postgresql/src/models/index.ts index f819c0dc355b..cbb4187aa09c 100644 --- a/sdk/postgresql/arm-postgresql/src/models/index.ts +++ b/sdk/postgresql/arm-postgresql/src/models/index.ts @@ -62,6 +62,10 @@ export interface StorageProfile { * Max storage allowed for a server. */ storageMB?: number; + /** + * Enable Storage Auto Grow. Possible values include: 'Enabled', 'Disabled' + */ + storageAutogrow?: StorageAutogrow; } /** @@ -741,6 +745,14 @@ export type ServerState = 'Ready' | 'Dropping' | 'Disabled'; */ 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' diff --git a/sdk/postgresql/arm-postgresql/src/models/mappers.ts b/sdk/postgresql/arm-postgresql/src/models/mappers.ts index c8a2166d05f1..ba6229c5b54f 100644 --- a/sdk/postgresql/arm-postgresql/src/models/mappers.ts +++ b/sdk/postgresql/arm-postgresql/src/models/mappers.ts @@ -95,6 +95,12 @@ export const StorageProfile: msRest.CompositeMapper = { type: { name: "Number" } + }, + storageAutogrow: { + serializedName: "storageAutogrow", + type: { + name: "String" + } } } }