diff --git a/packages/@azure/arm-postgresql/LICENSE.txt b/packages/@azure/arm-postgresql/LICENSE.txt
index a70e8cf66038..8f3d856145c5 100644
--- a/packages/@azure/arm-postgresql/LICENSE.txt
+++ b/packages/@azure/arm-postgresql/LICENSE.txt
@@ -1,21 +1,21 @@
-The MIT License (MIT)
-
-Copyright (c) 2018 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
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The MIT License (MIT)
+
+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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/packages/@azure/arm-postgresql/README.md b/packages/@azure/arm-postgresql/README.md
index a5f44feb4220..56ac84e9aa51 100644
--- a/packages/@azure/arm-postgresql/README.md
+++ b/packages/@azure/arm-postgresql/README.md
@@ -1,103 +1,100 @@
-## Azure PostgreSQLManagementClient SDK for JavaScript
-
-This package contains an isomorphic SDK for PostgreSQLManagementClient.
-
-### Currently supported environments
-
-- Node.js version 6.x.x or higher
-- Browser JavaScript
-
-### How to Install
-
-```
-npm install @azure/arm-postgresql
-```
-
-### How to use
-
-#### nodejs - Authentication, client creation and get servers as an example written in TypeScript.
-
-##### Install @azure/ms-rest-nodeauth
-
-```
-npm install @azure/ms-rest-nodeauth
-```
-
-##### Sample code
-
-```ts
-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 { PostgreSQLManagementClient, PostgreSQLManagementModels, PostgreSQLManagementMappers } from "@azure/arm-postgresql";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new PostgreSQLManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const serverName = "testserverName";
- client.servers.get(resourceGroupName, serverName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
-```
-
-#### browser - Authentication, client creation and get servers as an example written in JavaScript.
-
-##### Install @azure/ms-rest-browserauth
-
-```
-npm install @azure/ms-rest-browserauth
-```
-
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-postgresql sample
-
-
-
-
-
-
-
-
-```
-
-## 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%2Fpackages%2F%40azure%2Farm-postgresql%2FREADME.png)
+## Azure PostgreSQLManagementClient SDK for JavaScript
+
+This package contains an isomorphic SDK for PostgreSQLManagementClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-postgresql
+```
+
+### How to use
+
+#### nodejs - Authentication, client creation and get servers as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```bash
+npm install @azure/ms-rest-nodeauth
+```
+
+##### Sample code
+
+```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 { PostgreSQLManagementClient, PostgreSQLManagementModels, PostgreSQLManagementMappers } from "@azure/arm-postgresql";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new PostgreSQLManagementClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ const serverName = "testserverName";
+ client.servers.get(resourceGroupName, serverName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and get servers as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```bash
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-postgresql sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-postgresql/lib/models/index.ts b/packages/@azure/arm-postgresql/lib/models/index.ts
index dd3a47bcacb0..c7782795d6ff 100644
--- a/packages/@azure/arm-postgresql/lib/models/index.ts
+++ b/packages/@azure/arm-postgresql/lib/models/index.ts
@@ -87,7 +87,7 @@ export interface StorageProfile {
/**
* Contains the possible cases for ServerPropertiesForCreate.
*/
-export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore;
+export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica;
/**
* @interface
@@ -222,6 +222,38 @@ export interface ServerPropertiesForGeoRestore {
sourceServerId: string;
}
+/**
+ * @interface
+ * An interface representing ServerPropertiesForReplica.
+ * The properties to create a new replica.
+ *
+ */
+export interface ServerPropertiesForReplica {
+ /**
+ * @member {string} createMode Polymorphic Discriminator
+ */
+ createMode: "Replica";
+ /**
+ * @member {ServerVersion} [version] Server version. Possible values include:
+ * '9.5', '9.6', '10', '10.0', '10.2'
+ */
+ version?: ServerVersion;
+ /**
+ * @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or
+ * not when connect to server. Possible values include: 'Enabled', 'Disabled'
+ */
+ sslEnforcement?: SslEnforcementEnum;
+ /**
+ * @member {StorageProfile} [storageProfile] Storage profile of a server.
+ */
+ storageProfile?: StorageProfile;
+ /**
+ * @member {string} sourceServerId The master server id to create replica
+ * from.
+ */
+ sourceServerId: string;
+}
+
/**
* @interface
* An interface representing Sku.
@@ -302,6 +334,20 @@ export interface Server extends TrackedResource {
* @member {StorageProfile} [storageProfile] Storage profile of a server.
*/
storageProfile?: StorageProfile;
+ /**
+ * @member {string} [replicationRole] The replication role of the server.
+ */
+ replicationRole?: string;
+ /**
+ * @member {string} [masterServerId] The master server id of a replica
+ * server.
+ */
+ masterServerId?: string;
+ /**
+ * @member {number} [replicaCapacity] The maximum number of replicas that a
+ * master server can have.
+ */
+ replicaCapacity?: number;
}
/**
@@ -334,7 +380,7 @@ export interface ServerForCreate {
/**
* @interface
* An interface representing ServerUpdateParameters.
- * Parameters allowd to update for a server.
+ * Parameters allowed to update for a server.
*
*/
export interface ServerUpdateParameters {
@@ -361,6 +407,10 @@ export interface ServerUpdateParameters {
* not when connect to server. Possible values include: 'Enabled', 'Disabled'
*/
sslEnforcement?: SslEnforcementEnum;
+ /**
+ * @member {string} [replicationRole] The replication role of the server.
+ */
+ replicationRole?: string;
/**
* @member {{ [propertyName: string]: string }} [tags] Application-specific
* metadata in the form of key-value pairs.
@@ -1028,6 +1078,25 @@ export type ServersBeginUpdateResponse = 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.
*/
diff --git a/packages/@azure/arm-postgresql/lib/models/mappers.ts b/packages/@azure/arm-postgresql/lib/models/mappers.ts
index 7a77c8b1d358..c67df1ea8dfe 100644
--- a/packages/@azure/arm-postgresql/lib/models/mappers.ts
+++ b/packages/@azure/arm-postgresql/lib/models/mappers.ts
@@ -221,6 +221,26 @@ export const ServerPropertiesForGeoRestore: msRest.CompositeMapper = {
}
};
+export const ServerPropertiesForReplica: msRest.CompositeMapper = {
+ serializedName: "Replica",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: ServerPropertiesForCreate.type.polymorphicDiscriminator,
+ uberParent: "ServerPropertiesForCreate",
+ className: "ServerPropertiesForReplica",
+ modelProperties: {
+ ...ServerPropertiesForCreate.type.modelProperties,
+ sourceServerId: {
+ required: true,
+ serializedName: "sourceServerId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
@@ -324,6 +344,27 @@ export const Server: msRest.CompositeMapper = {
name: "Composite",
className: "StorageProfile"
}
+ },
+ replicationRole: {
+ serializedName: "properties.replicationRole",
+ type: {
+ name: "String"
+ }
+ },
+ masterServerId: {
+ serializedName: "properties.masterServerId",
+ type: {
+ name: "String"
+ }
+ },
+ replicaCapacity: {
+ serializedName: "properties.replicaCapacity",
+ constraints: {
+ InclusiveMinimum: 0
+ },
+ type: {
+ name: "Number"
+ }
}
}
}
@@ -414,6 +455,12 @@ export const ServerUpdateParameters: msRest.CompositeMapper = {
]
}
},
+ replicationRole: {
+ serializedName: "properties.replicationRole",
+ type: {
+ name: "String"
+ }
+ },
tags: {
serializedName: "tags",
type: {
@@ -1083,5 +1130,6 @@ export const discriminators = {
'ServerPropertiesForCreate' : ServerPropertiesForCreate,
'ServerPropertiesForCreate.Default' : ServerPropertiesForDefaultCreate,
'ServerPropertiesForCreate.PointInTimeRestore' : ServerPropertiesForRestore,
- 'ServerPropertiesForCreate.GeoRestore' : ServerPropertiesForGeoRestore
+ 'ServerPropertiesForCreate.GeoRestore' : ServerPropertiesForGeoRestore,
+ 'ServerPropertiesForCreate.Replica' : ServerPropertiesForReplica
};
diff --git a/packages/@azure/arm-postgresql/lib/models/replicasMappers.ts b/packages/@azure/arm-postgresql/lib/models/replicasMappers.ts
new file mode 100644
index 000000000000..bc64b271d555
--- /dev/null
+++ b/packages/@azure/arm-postgresql/lib/models/replicasMappers.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * 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.
+ */
+
+export {
+ discriminators,
+ ServerListResult,
+ Server,
+ TrackedResource,
+ ProxyResource,
+ BaseResource,
+ Sku,
+ StorageProfile,
+ CloudError,
+ FirewallRule,
+ VirtualNetworkRule,
+ Database,
+ Configuration,
+ LogFile,
+ ServerSecurityAlertPolicy
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-postgresql/lib/models/serversMappers.ts b/packages/@azure/arm-postgresql/lib/models/serversMappers.ts
index 6d7a5258abba..717dec8c00d0 100644
--- a/packages/@azure/arm-postgresql/lib/models/serversMappers.ts
+++ b/packages/@azure/arm-postgresql/lib/models/serversMappers.ts
@@ -24,6 +24,7 @@ export {
ServerPropertiesForDefaultCreate,
ServerPropertiesForRestore,
ServerPropertiesForGeoRestore,
+ ServerPropertiesForReplica,
FirewallRule,
VirtualNetworkRule,
Database,
diff --git a/packages/@azure/arm-postgresql/lib/operations/index.ts b/packages/@azure/arm-postgresql/lib/operations/index.ts
index 2d6ee4ce3c50..bb02d2d2c5e9 100644
--- a/packages/@azure/arm-postgresql/lib/operations/index.ts
+++ b/packages/@azure/arm-postgresql/lib/operations/index.ts
@@ -9,6 +9,7 @@
*/
export * from "./servers";
+export * from "./replicas";
export * from "./firewallRules";
export * from "./virtualNetworkRules";
export * from "./databases";
diff --git a/packages/@azure/arm-postgresql/lib/operations/replicas.ts b/packages/@azure/arm-postgresql/lib/operations/replicas.ts
new file mode 100644
index 000000000000..48000b911f37
--- /dev/null
+++ b/packages/@azure/arm-postgresql/lib/operations/replicas.ts
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/replicasMappers";
+import * as Parameters from "../models/parameters";
+import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext";
+
+/** Class representing a Replicas. */
+export class Replicas {
+ private readonly client: PostgreSQLManagementClientContext;
+
+ /**
+ * Create a Replicas.
+ * @param {PostgreSQLManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PostgreSQLManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * 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 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 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 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;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByServerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Replicas",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.serverName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.ServerListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-postgresql/lib/operations/servers.ts b/packages/@azure/arm-postgresql/lib/operations/servers.ts
index 6d1b01cbab95..34cc40f4346f 100644
--- a/packages/@azure/arm-postgresql/lib/operations/servers.ts
+++ b/packages/@azure/arm-postgresql/lib/operations/servers.ts
@@ -159,6 +159,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 will overwrite an existing server.
* @param resourceGroupName The name of the resource group that contains the resource. You can
@@ -220,6 +233,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
@@ -389,3 +421,27 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
},
serializer
};
+
+const beginRestartOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/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/packages/@azure/arm-postgresql/lib/postgreSQLManagementClient.ts b/packages/@azure/arm-postgresql/lib/postgreSQLManagementClient.ts
index 958382b59f6f..51dbb7d96748 100644
--- a/packages/@azure/arm-postgresql/lib/postgreSQLManagementClient.ts
+++ b/packages/@azure/arm-postgresql/lib/postgreSQLManagementClient.ts
@@ -18,6 +18,7 @@ import { PostgreSQLManagementClientContext } from "./postgreSQLManagementClientC
class PostgreSQLManagementClient extends PostgreSQLManagementClientContext {
// Operation groups
servers: operations.Servers;
+ replicas: operations.Replicas;
firewallRules: operations.FirewallRules;
virtualNetworkRules: operations.VirtualNetworkRules;
databases: operations.Databases;
@@ -37,6 +38,7 @@ class PostgreSQLManagementClient extends PostgreSQLManagementClientContext {
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PostgreSQLManagementClientOptions) {
super(credentials, subscriptionId, options);
this.servers = new operations.Servers(this);
+ this.replicas = new operations.Replicas(this);
this.firewallRules = new operations.FirewallRules(this);
this.virtualNetworkRules = new operations.VirtualNetworkRules(this);
this.databases = new operations.Databases(this);
diff --git a/packages/@azure/arm-postgresql/lib/postgreSQLManagementClientContext.ts b/packages/@azure/arm-postgresql/lib/postgreSQLManagementClientContext.ts
index c1f9727325a1..5833891d16c9 100644
--- a/packages/@azure/arm-postgresql/lib/postgreSQLManagementClientContext.ts
+++ b/packages/@azure/arm-postgresql/lib/postgreSQLManagementClientContext.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-postgresql";
-const packageVersion = "0.1.0";
+const packageVersion = "4.2.0";
export class PostgreSQLManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
diff --git a/packages/@azure/arm-postgresql/package.json b/packages/@azure/arm-postgresql/package.json
index d7453f03385e..50ab67387f29 100644
--- a/packages/@azure/arm-postgresql/package.json
+++ b/packages/@azure/arm-postgresql/package.json
@@ -4,8 +4,8 @@
"description": "PostgreSQLManagementClient Library with typescript type definitions for node.js and browser.",
"version": "4.2.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.1.0",
- "@azure/ms-rest-js": "^1.1.0",
+ "@azure/ms-rest-azure-js": "^1.2.0",
+ "@azure/ms-rest-js": "^1.2.0",
"tslib": "^1.9.3"
},
"keywords": [
@@ -23,6 +23,7 @@
"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/packages/@azure/arm-postgresql",
@@ -51,6 +52,5 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-postgresql.js.map'\" -o ./dist/arm-postgresql.min.js ./dist/arm-postgresql.js",
"prepack": "npm install && npm run build"
},
- "sideEffects": false,
- "authPublish": true
+ "sideEffects": false
}
diff --git a/packages/@azure/arm-postgresql/rollup.config.js b/packages/@azure/arm-postgresql/rollup.config.js
index 937fe4e3e6f2..8a50c41be790 100644
--- a/packages/@azure/arm-postgresql/rollup.config.js
+++ b/packages/@azure/arm-postgresql/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/postgreSQLManagementClient.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
+ input: "./esm/postgreSQLManagementClient.js",
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
output: {
file: "./dist/arm-postgresql.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;