diff --git a/packages/@azure/arm-signalr/.npmignore b/packages/@azure/arm-signalr/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-signalr/.npmignore +++ b/packages/@azure/arm-signalr/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-signalr/LICENSE.txt b/packages/@azure/arm-signalr/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-signalr/LICENSE.txt +++ b/packages/@azure/arm-signalr/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) 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. diff --git a/packages/@azure/arm-signalr/README.md b/packages/@azure/arm-signalr/README.md index 753a3a0bb4aa..7176dd109168 100644 --- a/packages/@azure/arm-signalr/README.md +++ b/packages/@azure/arm-signalr/README.md @@ -1,77 +1,77 @@ -# Azure SignalRManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SignalRManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-signalr -``` - - -## How to use - -### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { SignalRManagementClient, SignalRManagementModels, SignalRManagementMappers } from "@azure/arm-signalr"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SignalRManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list operations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-signalr sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure SignalRManagementClient SDK for JavaScript +This package contains an isomorphic SDK for SignalRManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-signalr +``` + + +## How to use + +### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { SignalRManagementClient, SignalRManagementModels, SignalRManagementMappers } from "@azure/arm-signalr"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new SignalRManagementClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list operations as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-signalr sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-signalr/lib/models/index.ts b/packages/@azure/arm-signalr/lib/models/index.ts index ca442eb329d9..117fa9174f1e 100644 --- a/packages/@azure/arm-signalr/lib/models/index.ts +++ b/packages/@azure/arm-signalr/lib/models/index.ts @@ -747,6 +747,181 @@ export enum KeyType { Secondary = 'Secondary', } +/** + * Defines values for ApiVersion. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion1. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion1 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion1 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion2. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion2 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion2 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion3. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion3 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion3 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion4. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion4 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion4 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion5. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion5 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion5 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion6. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion6 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion6 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion7. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion7 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion7 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion8. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion8 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion8 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion9. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion9 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion9 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + +/** + * Defines values for ApiVersion10. + * Possible values include: '2018-03-01-preview', '2018-10-01' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ApiVersion10 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ApiVersion10 { + TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview', + TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01', +} + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-signalr/lib/models/parameters.ts b/packages/@azure/arm-signalr/lib/models/parameters.ts index eba0e0dfdcf7..4db5179b40c4 100644 --- a/packages/@azure/arm-signalr/lib/models/parameters.ts +++ b/packages/@azure/arm-signalr/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-03-01-preview', type: { name: "String" } diff --git a/packages/@azure/arm-signalr/lib/signalRManagementClientContext.ts b/packages/@azure/arm-signalr/lib/signalRManagementClientContext.ts index 7032d5baf1bc..fad1d3023731 100644 --- a/packages/@azure/arm-signalr/lib/signalRManagementClientContext.ts +++ b/packages/@azure/arm-signalr/lib/signalRManagementClientContext.ts @@ -47,7 +47,7 @@ export class SignalRManagementClientContext extends msRestAzure.AzureServiceClie } super(credentials, options); - this.apiVersion = '2018-03-01-preview'; + this.apiVersion = '2018-10-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-signalr/package.json b/packages/@azure/arm-signalr/package.json index ae0fdc821b70..c963fa585ddb 100644 --- a/packages/@azure/arm-signalr/package.json +++ b/packages/@azure/arm-signalr/package.json @@ -4,8 +4,8 @@ "description": "SignalRManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", "tslib": "^1.9.3" }, "keywords": [