diff --git a/sdk/relay/arm-relay/LICENSE.txt b/sdk/relay/arm-relay/LICENSE.txt index a70e8cf66038..2d3163745319 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) 2021 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 b7ba05513e99..aeff01581380 100644 --- a/sdk/relay/arm-relay/README.md +++ b/sdk/relay/arm-relay/README.md @@ -1,11 +1,11 @@ ## Azure RelayManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RelayManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for RelayManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-relay @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new RelayManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmRelay.RelayManagementClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/relay/arm-relay/package.json b/sdk/relay/arm-relay/package.json index e154919acad8..a07c33e56619 100644 --- a/sdk/relay/arm-relay/package.json +++ b/sdk/relay/arm-relay/package.json @@ -4,10 +4,10 @@ "description": "RelayManagementClient Library with typescript type definitions for node.js and browser.", "version": "2.2.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.4.0", - "@azure/ms-rest-js": "^1.11.0", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", "@azure/core-auth": "^1.1.4", - "tslib": "^1.9.3" + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -22,17 +22,18 @@ "types": "./esm/relayManagementClient.d.ts", "devDependencies": { "typescript": "^3.6.0", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "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/feature/v4/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", @@ -44,6 +45,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 d147eb79ed38..402a7b866ab2 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 e580257c7322..67b1a97db201 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 @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-relay"; const packageVersion = "2.2.1"; 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