From c2d59736bad64ecff48d25e393559bcf4a198378 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 2 Dec 2020 08:39:37 +0000 Subject: [PATCH] CodeGen from PR 11891 in Azure/azure-rest-api-specs Relay : Removed subscription and entities names from examples (#11891) * removed subscription and entities names from examples * example --- sdk/relay/arm-relay/LICENSE.txt | 2 +- sdk/relay/arm-relay/README.md | 23 +- sdk/relay/arm-relay/package.json | 22 +- sdk/relay/arm-relay/rollup.config.js | 24 +- .../src/models/hybridConnectionsMappers.ts | 29 +- sdk/relay/arm-relay/src/models/index.ts | 370 +++++++----------- sdk/relay/arm-relay/src/models/mappers.ts | 8 +- .../arm-relay/src/models/namespacesMappers.ts | 29 +- .../arm-relay/src/models/operationsMappers.ts | 13 +- sdk/relay/arm-relay/src/models/parameters.ts | 5 +- .../arm-relay/src/models/wCFRelaysMappers.ts | 31 +- .../src/operations/hybridConnections.ts | 11 +- sdk/relay/arm-relay/src/operations/index.ts | 5 +- .../arm-relay/src/operations/namespaces.ts | 14 +- .../arm-relay/src/operations/operations.ts | 8 +- .../arm-relay/src/operations/wCFRelays.ts | 11 +- .../arm-relay/src/relayManagementClient.ts | 5 +- .../src/relayManagementClientContext.ts | 7 +- sdk/relay/arm-relay/tsconfig.json | 2 +- 19 files changed, 267 insertions(+), 352 deletions(-) diff --git a/sdk/relay/arm-relay/LICENSE.txt b/sdk/relay/arm-relay/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/relay/arm-relay/LICENSE.txt +++ b/sdk/relay/arm-relay/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2020 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 diff --git a/sdk/relay/arm-relay/README.md b/sdk/relay/arm-relay/README.md index 3a7fb18fcc3d..ee2892c7196b 100644 --- a/sdk/relay/arm-relay/README.md +++ b/sdk/relay/arm-relay/README.md @@ -9,27 +9,27 @@ This package contains an isomorphic SDK for RelayManagementClient. ### How to Install -``` +```bash npm install @azure/arm-relay ``` ### 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 -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### 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 { RelayManagementClient, RelayManagementModels, RelayManagementMappers } from "@azure/arm-relay"; +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 +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { RelayManagementClient } = require("@azure/arm-relay"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [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%2Fsdk%2Frelay%2Farm-relay%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/relay/arm-relay/README.png) diff --git a/sdk/relay/arm-relay/package.json b/sdk/relay/arm-relay/package.json index 87be03979c14..ffd50b0fd75c 100644 --- a/sdk/relay/arm-relay/package.json +++ b/sdk/relay/arm-relay/package.json @@ -4,9 +4,9 @@ "description": "RelayManagementClient Library with typescript type definitions for node.js and browser.", "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/relayManagementClient.js", "types": "./esm/relayManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/relay/arm-relay", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/relay/arm-relay", "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", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/relay/arm-relay/rollup.config.js b/sdk/relay/arm-relay/rollup.config.js index ab4b0f0bd608..71d6c158c3ba 100644 --- a/sdk/relay/arm-relay/rollup.config.js +++ b/sdk/relay/arm-relay/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/relayManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/relayManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-relay.js", format: "umd", @@ -15,17 +21,17 @@ 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/relay/arm-relay/src/models/hybridConnectionsMappers.ts b/sdk/relay/arm-relay/src/models/hybridConnectionsMappers.ts index 60387ca6e3ac..6fe9382c37ae 100644 --- a/sdk/relay/arm-relay/src/models/hybridConnectionsMappers.ts +++ b/sdk/relay/arm-relay/src/models/hybridConnectionsMappers.ts @@ -1,28 +1,25 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - HybridConnectionListResult, - HybridConnection, - Resource, + AccessKeys, + AuthorizationRule, + AuthorizationRuleListResult, BaseResource, ErrorResponse, - AuthorizationRuleListResult, - AuthorizationRule, - AccessKeys, + HybridConnection, + HybridConnectionListResult, RegenerateAccessKeyParameters, - TrackedResource, - ResourceNamespacePatch, - WcfRelay, RelayNamespace, + RelayUpdateParameters, + Resource, + ResourceNamespacePatch, Sku, - RelayUpdateParameters + TrackedResource, + WcfRelay } from "../models/mappers"; - diff --git a/sdk/relay/arm-relay/src/models/index.ts b/sdk/relay/arm-relay/src/models/index.ts index a25ca873f859..a4896f811e50 100644 --- a/sdk/relay/arm-relay/src/models/index.ts +++ b/sdk/relay/arm-relay/src/models/index.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,380 +11,287 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * The resource definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing TrackedResource. * Definition of resource. - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {string} location Resource location. + * Resource location. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ResourceNamespacePatch. * Definition of resource. - * - * @extends Resource */ export interface ResourceNamespacePatch extends Resource { /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * Resource tags. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing HybridConnection. * Description of hybrid connection resource. - * - * @extends Resource */ export interface HybridConnection extends Resource { /** - * @member {Date} [createdAt] The time the hybrid connection was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the hybrid connection was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {number} [listenerCount] The number of listeners for this hybrid - * connection. Note that min : 1 and max:25 are supported. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The number of listeners for this hybrid connection. Note that min : 1 and max:25 are + * supported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly listenerCount?: number; /** - * @member {boolean} [requiresClientAuthorization] Returns true if client - * authorization is needed for this hybrid connection; otherwise, false. + * Returns true if client authorization is needed for this hybrid connection; otherwise, false. */ requiresClientAuthorization?: boolean; /** - * @member {string} [userMetadata] The usermetadata is a placeholder to store - * user-defined string data for the hybrid connection endpoint. For example, - * it can be used to store descriptive data, such as a list of teams and - * their contact information. Also, user-defined configuration settings can - * be stored. + * The usermetadata is a placeholder to store user-defined string data for the hybrid connection + * endpoint. For example, it can be used to store descriptive data, such as a list of teams and + * their contact information. Also, user-defined configuration settings can be stored. */ userMetadata?: string; } /** - * @interface - * An interface representing WcfRelay. * Description of the WCF relay resource. - * - * @extends Resource */ export interface WcfRelay extends Resource { /** - * @member {boolean} [isDynamic] Returns true if the relay is dynamic; - * otherwise, false. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Returns true if the relay is dynamic; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isDynamic?: boolean; /** - * @member {Date} [createdAt] The time the WCF relay was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the WCF relay was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {number} [listenerCount] The number of listeners for this relay. - * Note that min :1 and max:25 are supported. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The number of listeners for this relay. Note that min :1 and max:25 are supported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly listenerCount?: number; /** - * @member {Relaytype} [relayType] WCF relay type. Possible values include: - * 'NetTcp', 'Http' + * WCF relay type. Possible values include: 'NetTcp', 'Http' */ relayType?: Relaytype; /** - * @member {boolean} [requiresClientAuthorization] Returns true if client - * authorization is needed for this relay; otherwise, false. + * Returns true if client authorization is needed for this relay; otherwise, false. */ requiresClientAuthorization?: boolean; /** - * @member {boolean} [requiresTransportSecurity] Returns true if transport - * security is needed for this relay; otherwise, false. + * Returns true if transport security is needed for this relay; otherwise, false. */ requiresTransportSecurity?: boolean; /** - * @member {string} [userMetadata] The usermetadata is a placeholder to store - * user-defined string data for the WCF Relay endpoint. For example, it can - * be used to store descriptive data, such as list of teams and their contact - * information. Also, user-defined configuration settings can be stored. + * The usermetadata is a placeholder to store user-defined string data for the WCF Relay + * endpoint. For example, it can be used to store descriptive data, such as list of teams and + * their contact information. Also, user-defined configuration settings can be stored. */ userMetadata?: string; } /** - * @interface - * An interface representing Sku. * SKU of the namespace. - * */ export interface Sku { /** - * @member {SkuTier} [tier] The tier of this SKU. Possible values include: - * 'Standard' + * The tier of this SKU. Possible values include: 'Standard' */ tier?: SkuTier; } /** - * @interface - * An interface representing RelayNamespace. * Description of a namespace resource. - * - * @extends TrackedResource */ export interface RelayNamespace extends TrackedResource { /** - * @member {Sku} [sku] SKU of the namespace. + * SKU of the namespace. */ sku?: Sku; /** - * @member {ProvisioningStateEnum} [provisioningState] Possible values - * include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', - * 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Possible values include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningStateEnum; /** - * @member {Date} [createdAt] The time the namespace was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Endpoint you can use to perform Service Bus operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceBusEndpoint?: string; /** - * @member {string} [metricId] Identifier for Azure Insights metrics. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Identifier for Azure Insights metrics. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metricId?: string; } /** - * @interface - * An interface representing RelayUpdateParameters. * Description of a namespace resource. - * - * @extends ResourceNamespacePatch */ export interface RelayUpdateParameters extends ResourceNamespacePatch { /** - * @member {Sku} [sku] SKU of the namespace. + * SKU of the namespace. */ sku?: Sku; /** - * @member {ProvisioningStateEnum} [provisioningState] Possible values - * include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', - * 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Possible values include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningStateEnum; /** - * @member {Date} [createdAt] The time the namespace was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Endpoint you can use to perform Service Bus operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceBusEndpoint?: string; /** - * @member {string} [metricId] Identifier for Azure Insights metrics. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Identifier for Azure Insights metrics. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metricId?: string; } /** - * @interface - * An interface representing AuthorizationRule. * Description of a namespace authorization rule. - * - * @extends Resource */ export interface AuthorizationRule extends Resource { /** - * @member {AccessRights[]} rights The rights associated with the rule. + * The rights associated with the rule. */ rights: AccessRights[]; } /** - * @interface - * An interface representing AccessKeys. * Namespace/Relay Connection String - * */ export interface AccessKeys { /** - * @member {string} [primaryConnectionString] Primary connection string of - * the created namespace authorization rule. + * Primary connection string of the created namespace authorization rule. */ primaryConnectionString?: string; /** - * @member {string} [secondaryConnectionString] Secondary connection string - * of the created namespace authorization rule. + * Secondary connection string of the created namespace authorization rule. */ secondaryConnectionString?: string; /** - * @member {string} [primaryKey] A base64-encoded 256-bit primary key for - * signing and validating the SAS token. + * A base64-encoded 256-bit primary key for signing and validating the SAS token. */ primaryKey?: string; /** - * @member {string} [secondaryKey] A base64-encoded 256-bit secondary key for - * signing and validating the SAS token. + * A base64-encoded 256-bit secondary key for signing and validating the SAS token. */ secondaryKey?: string; /** - * @member {string} [keyName] A string that describes the authorization rule. + * A string that describes the authorization rule. */ keyName?: string; } /** - * @interface - * An interface representing RegenerateAccessKeyParameters. - * Parameters supplied to the regenerate authorization rule operation, - * specifies which key neeeds to be reset. - * + * Parameters supplied to the regenerate authorization rule operation, specifies which key neeeds + * to be reset. */ export interface RegenerateAccessKeyParameters { /** - * @member {KeyType} keyType The access key to regenerate. Possible values - * include: 'PrimaryKey', 'SecondaryKey' + * The access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey' */ keyType: KeyType; /** - * @member {string} [key] Optional. If the key value is provided, this is set - * to key type, or autogenerated key value set for key type. + * Optional. If the key value is provided, this is set to key type, or autogenerated key value + * set for key type. */ key?: string; } /** - * @interface - * An interface representing CheckNameAvailability. * Description of the check name availability request properties. - * */ export interface CheckNameAvailability { /** - * @member {string} name The namespace name to check for availability. The - * namespace name can contain only letters, numbers, and hyphens. The - * namespace must start with a letter, and it must end with a letter or + * The namespace name to check for availability. The namespace name can contain only letters, + * numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or * number. */ name: string; } /** - * @interface - * An interface representing CheckNameAvailabilityResult. * Description of the check name availability request properties. - * */ export interface CheckNameAvailabilityResult { /** - * @member {string} [message] The detailed info regarding the reason - * associated with the namespace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The detailed info regarding the reason associated with the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {boolean} [nameAvailable] Value indicating namespace is available. - * Returns true if the namespace is available; otherwise, false. + * Value indicating namespace is available. Returns true if the namespace is available; + * otherwise, false. */ nameAvailable?: boolean; /** - * @member {UnavailableReason} [reason] The reason for unavailability of a - * namespace. Possible values include: 'None', 'InvalidName', + * The reason for unavailability of a namespace. Possible values include: 'None', 'InvalidName', * 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', * 'TooManyNamespaceInCurrentSubscription' */ @@ -394,159 +299,123 @@ export interface CheckNameAvailabilityResult { } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Relay. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Service provider: Relay. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Invoice, etc. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource on which the operation is performed: Invoice, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation type: Read, write, delete, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; } /** - * @interface - * An interface representing Operation. * A Relay REST API operation. - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation name: {provider}/{resource}/{operation} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing ErrorResponse. - * Error reponse indicates Relay service is not able to process the incoming - * request. The reason is provided in the error message. - * + * Error reponse indicates Relay service is not able to process the incoming request. The reason is + * provided in the error message. */ export interface ErrorResponse { /** - * @member {string} [code] Error code. + * Error code. */ code?: string; /** - * @member {string} [message] Error message indicating why the operation - * failed. + * Error message indicating why the operation failed. */ message?: string; } /** - * @interface * An interface representing RelayManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface RelayManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list Relay operations. It contains a list of - * operations and a URL link to get the next set of results. - * + * Result of the request to list Relay operations. It contains a list of operations and a URL link + * to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the RelayNamespaceListResult. * The response from the list namespace operation. - * * @extends Array */ export interface RelayNamespaceListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * value contains incomplete list of namespaces. + * Link to the next set of results. Not empty if value contains incomplete list of namespaces. */ nextLink?: string; } /** * @interface - * An interface representing the AuthorizationRuleListResult. * The response from the list namespace operation. - * * @extends Array */ export interface AuthorizationRuleListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * value contains incomplete list of authorization rules. + * Link to the next set of results. Not empty if value contains incomplete list of authorization + * rules. */ nextLink?: string; } /** * @interface - * An interface representing the HybridConnectionListResult. * The response of the list hybrid connection operation. - * * @extends Array */ export interface HybridConnectionListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * value contains incomplete list hybrid connection operation. + * Link to the next set of results. Not empty if value contains incomplete list hybrid connection + * operation. */ nextLink?: string; } /** * @interface - * An interface representing the WcfRelaysListResult. * The response of the list WCF relay operation. - * * @extends Array */ export interface WcfRelaysListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * value contains incomplete list of WCF relays. + * Link to the next set of results. Not empty if value contains incomplete list of WCF relays. */ nextLink?: string; } @@ -612,6 +481,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -631,6 +501,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -650,6 +521,7 @@ export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilit * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -669,6 +541,7 @@ export type NamespacesListResponse = RelayNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -688,6 +561,7 @@ export type NamespacesListByResourceGroupResponse = RelayNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -707,6 +581,7 @@ export type NamespacesCreateOrUpdateResponse = RelayNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -726,6 +601,7 @@ export type NamespacesGetResponse = RelayNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -745,6 +621,7 @@ export type NamespacesUpdateResponse = RelayNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -764,6 +641,7 @@ export type NamespacesListAuthorizationRulesResponse = AuthorizationRuleListResu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -783,6 +661,7 @@ export type NamespacesCreateOrUpdateAuthorizationRuleResponse = AuthorizationRul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -802,6 +681,7 @@ export type NamespacesGetAuthorizationRuleResponse = AuthorizationRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -821,6 +701,7 @@ export type NamespacesListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -840,6 +721,7 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -859,6 +741,7 @@ export type NamespacesBeginCreateOrUpdateResponse = RelayNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -878,6 +761,7 @@ export type NamespacesListNextResponse = RelayNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -897,6 +781,7 @@ export type NamespacesListByResourceGroupNextResponse = RelayNamespaceListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -916,6 +801,7 @@ export type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -935,6 +821,7 @@ export type HybridConnectionsListByNamespaceResponse = HybridConnectionListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -954,6 +841,7 @@ export type HybridConnectionsCreateOrUpdateResponse = HybridConnection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -973,6 +861,7 @@ export type HybridConnectionsGetResponse = HybridConnection & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -992,6 +881,7 @@ export type HybridConnectionsListAuthorizationRulesResponse = AuthorizationRuleL * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1011,6 +901,7 @@ export type HybridConnectionsCreateOrUpdateAuthorizationRuleResponse = Authoriza * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1030,6 +921,7 @@ export type HybridConnectionsGetAuthorizationRuleResponse = AuthorizationRule & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1049,6 +941,7 @@ export type HybridConnectionsListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1068,6 +961,7 @@ export type HybridConnectionsRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1087,6 +981,7 @@ export type HybridConnectionsListByNamespaceNextResponse = HybridConnectionListR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1106,6 +1001,7 @@ export type HybridConnectionsListAuthorizationRulesNextResponse = AuthorizationR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1125,6 +1021,7 @@ export type WCFRelaysListByNamespaceResponse = WcfRelaysListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1144,6 +1041,7 @@ export type WCFRelaysCreateOrUpdateResponse = WcfRelay & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1163,6 +1061,7 @@ export type WCFRelaysGetResponse = WcfRelay & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1182,6 +1081,7 @@ export type WCFRelaysListAuthorizationRulesResponse = AuthorizationRuleListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1201,6 +1101,7 @@ export type WCFRelaysCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1220,6 +1121,7 @@ export type WCFRelaysGetAuthorizationRuleResponse = AuthorizationRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1239,6 +1141,7 @@ export type WCFRelaysListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1258,6 +1161,7 @@ export type WCFRelaysRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1277,6 +1181,7 @@ export type WCFRelaysListByNamespaceNextResponse = WcfRelaysListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1296,6 +1201,7 @@ export type WCFRelaysListAuthorizationRulesNextResponse = AuthorizationRuleListR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/relay/arm-relay/src/models/mappers.ts b/sdk/relay/arm-relay/src/models/mappers.ts index b1dd22291a64..ac4a63820c80 100644 --- a/sdk/relay/arm-relay/src/models/mappers.ts +++ b/sdk/relay/arm-relay/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/relay/arm-relay/src/models/namespacesMappers.ts b/sdk/relay/arm-relay/src/models/namespacesMappers.ts index 737425940d82..42d69ecfd269 100644 --- a/sdk/relay/arm-relay/src/models/namespacesMappers.ts +++ b/sdk/relay/arm-relay/src/models/namespacesMappers.ts @@ -1,30 +1,27 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AccessKeys, + AuthorizationRule, + AuthorizationRuleListResult, + BaseResource, CheckNameAvailability, CheckNameAvailabilityResult, ErrorResponse, - RelayNamespaceListResult, + HybridConnection, + RegenerateAccessKeyParameters, RelayNamespace, - TrackedResource, - Resource, - BaseResource, - Sku, + RelayNamespaceListResult, RelayUpdateParameters, + Resource, ResourceNamespacePatch, - AuthorizationRuleListResult, - AuthorizationRule, - AccessKeys, - RegenerateAccessKeyParameters, - HybridConnection, + Sku, + TrackedResource, WcfRelay } from "../models/mappers"; - diff --git a/sdk/relay/arm-relay/src/models/operationsMappers.ts b/sdk/relay/arm-relay/src/models/operationsMappers.ts index 715467ec9522..3e8e33c6f2bd 100644 --- a/sdk/relay/arm-relay/src/models/operationsMappers.ts +++ b/sdk/relay/arm-relay/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + ErrorResponse, Operation, OperationDisplay, - ErrorResponse + OperationListResult } from "../models/mappers"; - diff --git a/sdk/relay/arm-relay/src/models/parameters.ts b/sdk/relay/arm-relay/src/models/parameters.ts index d5b8cd02599a..0e4324a944d6 100644 --- a/sdk/relay/arm-relay/src/models/parameters.ts +++ b/sdk/relay/arm-relay/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/relay/arm-relay/src/models/wCFRelaysMappers.ts b/sdk/relay/arm-relay/src/models/wCFRelaysMappers.ts index bf5ee70e6dd2..9c1c98d1883c 100644 --- a/sdk/relay/arm-relay/src/models/wCFRelaysMappers.ts +++ b/sdk/relay/arm-relay/src/models/wCFRelaysMappers.ts @@ -1,29 +1,26 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - WcfRelaysListResult, - WcfRelay, - Resource, - BaseResource, - ErrorResponse, - AuthorizationRuleListResult, + AccessKeys, AuthorizationRule, + AuthorizationRuleListResult, + BaseResource, CloudError, - AccessKeys, - RegenerateAccessKeyParameters, - TrackedResource, - ResourceNamespacePatch, + ErrorResponse, HybridConnection, + RegenerateAccessKeyParameters, RelayNamespace, + RelayUpdateParameters, + Resource, + ResourceNamespacePatch, Sku, - RelayUpdateParameters + TrackedResource, + WcfRelay, + WcfRelaysListResult } from "../models/mappers"; - diff --git a/sdk/relay/arm-relay/src/operations/hybridConnections.ts b/sdk/relay/arm-relay/src/operations/hybridConnections.ts index 5618c3f5a3be..def42a626b8c 100644 --- a/sdk/relay/arm-relay/src/operations/hybridConnections.ts +++ b/sdk/relay/arm-relay/src/operations/hybridConnections.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 @@ -763,6 +762,9 @@ const listByNamespaceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -784,6 +786,9 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/relay/arm-relay/src/operations/index.ts b/sdk/relay/arm-relay/src/operations/index.ts index 86f3a9a87d67..3b60b954e00e 100644 --- a/sdk/relay/arm-relay/src/operations/index.ts +++ b/sdk/relay/arm-relay/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/relay/arm-relay/src/operations/namespaces.ts b/sdk/relay/arm-relay/src/operations/namespaces.ts index e78b187c7db3..1d16c3bdd529 100644 --- a/sdk/relay/arm-relay/src/operations/namespaces.ts +++ b/sdk/relay/arm-relay/src/operations/namespaces.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 @@ -920,6 +919,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -941,6 +943,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -962,6 +967,9 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/relay/arm-relay/src/operations/operations.ts b/sdk/relay/arm-relay/src/operations/operations.ts index 2d64cbe9bd60..0565b192760d 100644 --- a/sdk/relay/arm-relay/src/operations/operations.ts +++ b/sdk/relay/arm-relay/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/relay/arm-relay/src/operations/wCFRelays.ts b/sdk/relay/arm-relay/src/operations/wCFRelays.ts index 1ef280a8dc55..4f97e25b27c3 100644 --- a/sdk/relay/arm-relay/src/operations/wCFRelays.ts +++ b/sdk/relay/arm-relay/src/operations/wCFRelays.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 @@ -764,6 +763,9 @@ const listByNamespaceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -785,6 +787,9 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/relay/arm-relay/src/relayManagementClient.ts b/sdk/relay/arm-relay/src/relayManagementClient.ts index 41bfce598bec..6fd23c9c2967 100644 --- a/sdk/relay/arm-relay/src/relayManagementClient.ts +++ b/sdk/relay/arm-relay/src/relayManagementClient.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/relay/arm-relay/src/relayManagementClientContext.ts b/sdk/relay/arm-relay/src/relayManagementClientContext.ts index a00071e51c98..11e4fef1fb9e 100644 --- a/sdk/relay/arm-relay/src/relayManagementClientContext.ts +++ b/sdk/relay/arm-relay/src/relayManagementClientContext.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 @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-relay"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class RelayManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/relay/arm-relay/tsconfig.json b/sdk/relay/arm-relay/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/relay/arm-relay/tsconfig.json +++ b/sdk/relay/arm-relay/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true