Skip to content

Commit

Permalink
[AutoPR] signalr/resource-manager (#339)
Browse files Browse the repository at this point in the history
* Generated from ad5e41880ed7c7206796e71c3ecac77831d44ad7 (#338)

add new api-version 2018-10-01

* Regenerated "@azure/arm-signalr" SDK.
  • Loading branch information
AutorestCI authored and kpajdzik committed Oct 30, 2018
1 parent 409ee83 commit 7375019
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/@azure/arm-signalr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log('An error occurred:');
console.log("An error occurred:");
console.error(err);
});
});
Expand Down
175 changes: 175 additions & 0 deletions packages/@azure/arm-signalr/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <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 =
* <ApiVersion10>"someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
export enum ApiVersion10 {
TwoZeroOneEightHyphenMinusZeroThreeHyphenMinusZeroOneHyphenMinuspreview = '2018-03-01-preview',
TwoZeroOneEightHyphenMinusOneZeroHyphenMinusZeroOne = '2018-10-01',
}

/**
* Contains response data for the list operation.
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/@azure/arm-signalr/lib/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@ const packageName = "@azure/arm-signalr";
const packageVersion = "1.0.0-preview";

export class SignalRManagementClientContext extends msRestAzure.AzureServiceClient {

credentials: msRest.ServiceClientCredentials;

apiVersion: string;

apiVersion?: string;
subscriptionId: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;

/**
* Initializes a new instance of the SignalRManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
Expand All @@ -47,7 +40,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";
Expand Down
15 changes: 14 additions & 1 deletion packages/@azure/arm-signalr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"esm/**/*.js",
"esm/**/*.js.map",
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"lib/**/*.ts",
"rollup.config.js",
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-signalr.js.map'\" -o ./dist/arm-signalr.min.js ./dist/arm-signalr.js",
"prepare": "npm run build"
"prepack": "npm install && npm run build"
},
"sideEffects": false
}

0 comments on commit 7375019

Please sign in to comment.