diff --git a/sdk/signalr/arm-signalr/README.md b/sdk/signalr/arm-signalr/README.md index f0888a1ce19b..af1cda4d6390 100644 --- a/sdk/signalr/arm-signalr/README.md +++ b/sdk/signalr/arm-signalr/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-signalr ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```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 { SignalRManagementClient, SignalRManagementModels, SignalRManagementMappers } from "@azure/arm-signalr"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { SignalRManagementClient } = require("@azure/arm-signalr"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/signalr/arm-signalr/rollup.config.js b/sdk/signalr/arm-signalr/rollup.config.js index 476685b5d0d8..0f16348bb245 100644 --- a/sdk/signalr/arm-signalr/rollup.config.js +++ b/sdk/signalr/arm-signalr/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/signalr/arm-signalr/src/models/index.ts b/sdk/signalr/arm-signalr/src/models/index.ts index b5cab3e82b91..a59c62cbfca5 100644 --- a/sdk/signalr/arm-signalr/src/models/index.ts +++ b/sdk/signalr/arm-signalr/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -343,6 +343,59 @@ export interface PrivateEndpointConnection extends ProxyResource { privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } +/** + * TLS settings for SignalR + */ +export interface SignalRTlsSettings { + /** + * Request client certificate during TLS handshake if enabled + */ + clientCertEnabled?: boolean; +} + +/** + * Properties of user assigned identity. + */ +export interface UserAssignedIdentityProperty { + /** + * Get the principal id for the user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Get the client id for the user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * A class represent managed identities used for request and response + */ +export interface ManagedIdentity { + /** + * Represent the identity type: systemAssigned, userAssigned, None. Possible values include: + * 'None', 'SystemAssigned', 'UserAssigned' + */ + type?: ManagedIdentityType; + /** + * Get or set the user assigned identities + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentityProperty }; + /** + * Get the principal id for the system assigned identity. + * Only be used in response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Get the tenant id for the system assigned identity. + * Only be used in response + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; +} + /** * The resource model definition for a ARM tracked top level resource. */ @@ -366,11 +419,6 @@ export interface SignalRResource extends TrackedResource { * The billing information of the resource.(e.g. Free, Standard) */ sku?: ResourceSku; - /** - * Prefix for the hostName of the SignalR service. Retained for future use. - * The hostname will be of format: <hostNamePrefix>.service.signalr.net. - */ - hostNamePrefix?: string; /** * List of SignalR featureFlags. e.g. ServiceMode. * @@ -432,11 +480,19 @@ export interface SignalRResource extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * TLS settings. + */ + tls?: SignalRTlsSettings; /** * The kind of the service - e.g. "SignalR", or "RawWebSockets" for * "Microsoft.SignalRService/SignalR". Possible values include: 'SignalR', 'RawWebSockets' */ kind?: ServiceKind; + /** + * The managed identity response + */ + identity?: ManagedIdentity; } /** @@ -476,6 +532,33 @@ export interface SignalRCorsSettings { allowedOrigins?: string[]; } +/** + * Managed identity settings for upstream. + */ +export interface ManagedIdentitySettings { + /** + * The Resource indicating the App ID URI of the target resource. + * It also appears in the aud (audience) claim of the issued token. + */ + resource?: string; +} + +/** + * Upstream auth settings. + */ +export interface UpstreamAuthSettings { + /** + * Gets or sets the type of auth. None or ManagedIdentity is supported now. Possible values + * include: 'None', 'ManagedIdentity' + */ + type?: UpstreamAuthType; + /** + * Gets or sets the managed identity settings. It's required if the auth type is set to + * ManagedIdentity. + */ + managedIdentity?: ManagedIdentitySettings; +} + /** * Upstream template item settings. It defines the Upstream URL of the incoming requests. * The template defines the pattern of the event, the hub or the category of the incoming request @@ -517,6 +600,11 @@ export interface UpstreamTemplate { * `http://example.com/chat/api/connect`. */ urlTemplate: string; + /** + * Gets or sets the auth settings for an upstream. If not set, no auth is used for upstream + * messages. + */ + auth?: UpstreamAuthSettings; } /** @@ -578,11 +666,6 @@ export interface SignalRNetworkACLs { * Settings used to provision or configure the resource. */ export interface SignalRCreateOrUpdateProperties { - /** - * Prefix for the hostName of the SignalR service. Retained for future use. - * The hostname will be of format: <hostNamePrefix>.service.signalr.net. - */ - hostNamePrefix?: string; /** * List of SignalR featureFlags. e.g. ServiceMode. * @@ -873,6 +956,14 @@ export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejec */ export type ServiceKind = 'SignalR' | 'RawWebSockets'; +/** + * Defines values for ManagedIdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned' + * @readonly + * @enum {string} + */ +export type ManagedIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned'; + /** * Defines values for FeatureFlags. * Possible values include: 'ServiceMode', 'EnableConnectivityLogs', 'EnableMessagingLogs' @@ -881,6 +972,14 @@ export type ServiceKind = 'SignalR' | 'RawWebSockets'; */ export type FeatureFlags = 'ServiceMode' | 'EnableConnectivityLogs' | 'EnableMessagingLogs'; +/** + * Defines values for UpstreamAuthType. + * Possible values include: 'None', 'ManagedIdentity' + * @readonly + * @enum {string} + */ +export type UpstreamAuthType = 'None' | 'ManagedIdentity'; + /** * Defines values for ACLAction. * Possible values include: 'Allow', 'Deny' diff --git a/sdk/signalr/arm-signalr/src/models/mappers.ts b/sdk/signalr/arm-signalr/src/models/mappers.ts index d3370fa5d0bb..8cc8e608427f 100644 --- a/sdk/signalr/arm-signalr/src/models/mappers.ts +++ b/sdk/signalr/arm-signalr/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -529,6 +529,88 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; +export const SignalRTlsSettings: msRest.CompositeMapper = { + serializedName: "SignalRTlsSettings", + type: { + name: "Composite", + className: "SignalRTlsSettings", + modelProperties: { + clientCertEnabled: { + serializedName: "clientCertEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const UserAssignedIdentityProperty: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentityProperty", + type: { + name: "Composite", + className: "UserAssignedIdentityProperty", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentity: msRest.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentityProperty" + } + } + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + export const TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -571,12 +653,6 @@ export const SignalRResource: msRest.CompositeMapper = { className: "ResourceSku" } }, - hostNamePrefix: { - serializedName: "properties.hostNamePrefix", - type: { - name: "String" - } - }, features: { serializedName: "properties.features", type: { @@ -665,11 +741,25 @@ export const SignalRResource: msRest.CompositeMapper = { } } }, + tls: { + serializedName: "properties.tls", + type: { + name: "Composite", + className: "SignalRTlsSettings" + } + }, kind: { serializedName: "kind", type: { name: "String" } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentity" + } } } } @@ -735,6 +825,45 @@ export const SignalRCorsSettings: msRest.CompositeMapper = { } }; +export const ManagedIdentitySettings: msRest.CompositeMapper = { + serializedName: "ManagedIdentitySettings", + type: { + name: "Composite", + className: "ManagedIdentitySettings", + modelProperties: { + resource: { + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + +export const UpstreamAuthSettings: msRest.CompositeMapper = { + serializedName: "UpstreamAuthSettings", + type: { + name: "Composite", + className: "UpstreamAuthSettings", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + managedIdentity: { + serializedName: "managedIdentity", + type: { + name: "Composite", + className: "ManagedIdentitySettings" + } + } + } + } +}; + export const UpstreamTemplate: msRest.CompositeMapper = { serializedName: "UpstreamTemplate", type: { @@ -765,6 +894,13 @@ export const UpstreamTemplate: msRest.CompositeMapper = { type: { name: "String" } + }, + auth: { + serializedName: "auth", + type: { + name: "Composite", + className: "UpstreamAuthSettings" + } } } } @@ -883,12 +1019,6 @@ export const SignalRCreateOrUpdateProperties: msRest.CompositeMapper = { name: "Composite", className: "SignalRCreateOrUpdateProperties", modelProperties: { - hostNamePrefix: { - serializedName: "hostNamePrefix", - type: { - name: "String" - } - }, features: { serializedName: "features", type: { diff --git a/sdk/signalr/arm-signalr/src/models/operationsMappers.ts b/sdk/signalr/arm-signalr/src/models/operationsMappers.ts index cbabd104412b..0e9919e78167 100644 --- a/sdk/signalr/arm-signalr/src/models/operationsMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/signalr/arm-signalr/src/models/parameters.ts b/sdk/signalr/arm-signalr/src/models/parameters.ts index 21d86c35fadf..9a231ce07278 100644 --- a/sdk/signalr/arm-signalr/src/models/parameters.ts +++ b/sdk/signalr/arm-signalr/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/signalr/arm-signalr/src/models/signalRMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRMappers.ts index 1dc9a2c17d74..827c04662bdc 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,6 +10,8 @@ export { BaseResource, ErrorResponse, ErrorResponseBody, + ManagedIdentity, + ManagedIdentitySettings, NameAvailability, NameAvailabilityParameters, NetworkACL, @@ -29,6 +31,9 @@ export { SignalRNetworkACLs, SignalRResource, SignalRResourceList, + SignalRTlsSettings, TrackedResource, - UpstreamTemplate + UpstreamAuthSettings, + UpstreamTemplate, + UserAssignedIdentityProperty } from "../models/mappers"; diff --git a/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts index aca05d6160ef..2b56b6f54587 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,6 +10,8 @@ export { BaseResource, ErrorResponse, ErrorResponseBody, + ManagedIdentity, + ManagedIdentitySettings, NetworkACL, PrivateEndpoint, PrivateEndpointACL, @@ -24,6 +26,9 @@ export { SignalRFeature, SignalRNetworkACLs, SignalRResource, + SignalRTlsSettings, TrackedResource, - UpstreamTemplate + UpstreamAuthSettings, + UpstreamTemplate, + UserAssignedIdentityProperty } from "../models/mappers"; diff --git a/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts index d3e7746fca4a..0ea0e42ff6b4 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,6 +10,8 @@ export { BaseResource, ErrorResponse, ErrorResponseBody, + ManagedIdentity, + ManagedIdentitySettings, NetworkACL, PrivateEndpoint, PrivateEndpointACL, @@ -25,6 +27,9 @@ export { SignalRFeature, SignalRNetworkACLs, SignalRResource, + SignalRTlsSettings, TrackedResource, - UpstreamTemplate + UpstreamAuthSettings, + UpstreamTemplate, + UserAssignedIdentityProperty } from "../models/mappers"; diff --git a/sdk/signalr/arm-signalr/src/models/usagesMappers.ts b/sdk/signalr/arm-signalr/src/models/usagesMappers.ts index 1bfca1391509..e41bd2de1262 100644 --- a/sdk/signalr/arm-signalr/src/models/usagesMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/usagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/signalr/arm-signalr/src/operations/index.ts b/sdk/signalr/arm-signalr/src/operations/index.ts index c39628af041e..9d4dc8ce5156 100644 --- a/sdk/signalr/arm-signalr/src/operations/index.ts +++ b/sdk/signalr/arm-signalr/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/signalr/arm-signalr/src/operations/operations.ts b/sdk/signalr/arm-signalr/src/operations/operations.ts index f71f913e310b..1b62d1543355 100644 --- a/sdk/signalr/arm-signalr/src/operations/operations.ts +++ b/sdk/signalr/arm-signalr/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/signalr/arm-signalr/src/operations/signalR.ts b/sdk/signalr/arm-signalr/src/operations/signalR.ts index 8dd4294249f3..bdc945ceac40 100644 --- a/sdk/signalr/arm-signalr/src/operations/signalR.ts +++ b/sdk/signalr/arm-signalr/src/operations/signalR.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -685,6 +684,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -706,6 +708,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/signalr/arm-signalr/src/operations/signalRPrivateEndpointConnections.ts b/sdk/signalr/arm-signalr/src/operations/signalRPrivateEndpointConnections.ts index 59f78ac2c8df..99d6eebb5e92 100644 --- a/sdk/signalr/arm-signalr/src/operations/signalRPrivateEndpointConnections.ts +++ b/sdk/signalr/arm-signalr/src/operations/signalRPrivateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/signalr/arm-signalr/src/operations/signalRPrivateLinkResources.ts b/sdk/signalr/arm-signalr/src/operations/signalRPrivateLinkResources.ts index 588b23f11534..0c479b3026d3 100644 --- a/sdk/signalr/arm-signalr/src/operations/signalRPrivateLinkResources.ts +++ b/sdk/signalr/arm-signalr/src/operations/signalRPrivateLinkResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -124,6 +123,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/signalr/arm-signalr/src/operations/usages.ts b/sdk/signalr/arm-signalr/src/operations/usages.ts index ac88a23c5717..1bfc9a12c502 100644 --- a/sdk/signalr/arm-signalr/src/operations/usages.ts +++ b/sdk/signalr/arm-signalr/src/operations/usages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -116,6 +115,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/signalr/arm-signalr/src/signalRManagementClient.ts b/sdk/signalr/arm-signalr/src/signalRManagementClient.ts index 014292692df5..90568cdd310f 100644 --- a/sdk/signalr/arm-signalr/src/signalRManagementClient.ts +++ b/sdk/signalr/arm-signalr/src/signalRManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts index 8fb233b8113d..4cef354cb7f2 100644 --- a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts +++ b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -38,14 +37,14 @@ export class SignalRManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2020-05-01'; + this.apiVersion = '2020-07-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -53,10 +52,10 @@ export class SignalRManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }