From 835efe76960649b00c90bcf805c6ee094bfbb787 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 18 Jun 2019 20:43:54 +0000 Subject: [PATCH] Generated from ec888b9af0c12e45ebd232286f523dad92d7a4f6 adding regex to check cosmos db account name --- sdk/cosmosdb/arm-cosmosdb/README.md | 2 -- sdk/cosmosdb/arm-cosmosdb/package.json | 6 +++--- sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sdk/cosmosdb/arm-cosmosdb/README.md b/sdk/cosmosdb/arm-cosmosdb/README.md index 60e1fb67c047..34d35f6daecc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/README.md +++ b/sdk/cosmosdb/arm-cosmosdb/README.md @@ -98,5 +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/cosmosdb/arm-cosmosdb/README.png) diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index bb9deb00f035..d6a67c7914e7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/package.json @@ -26,13 +26,13 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cosmosdb/arm-cosmosdb", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" + "url": "https://github.com/azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" + "url": "https://github.com/azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 178e0ec47263..3063fdc9c78d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -27,7 +27,8 @@ export const accountName: msRest.OperationURLParameter = { serializedName: "accountName", constraints: { MaxLength: 50, - MinLength: 3 + MinLength: 3, + Pattern: /^[a-z0-9]+(-[a-z0-9]+)*/ }, type: { name: "String"