diff --git a/sdk/mixedreality/arm-mixedreality/README.md b/sdk/mixedreality/arm-mixedreality/README.md index c84af2850f43..e5d65b4492a4 100644 --- a/sdk/mixedreality/arm-mixedreality/README.md +++ b/sdk/mixedreality/arm-mixedreality/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-mixedreality ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MixedRealityClient, MixedRealityModels, MixedRealityMappers } from "@azure/arm-mixedreality"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { MixedRealityClient } = require("@azure/arm-mixedreality"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/mixedreality/arm-mixedreality/rollup.config.js b/sdk/mixedreality/arm-mixedreality/rollup.config.js index 8ee230806bb5..ebecbaa3d371 100644 --- a/sdk/mixedreality/arm-mixedreality/rollup.config.js +++ b/sdk/mixedreality/arm-mixedreality/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts index 08b9d7c4afee..54dc17f51e78 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.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/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts index 2691545c852c..d08136fd5c0f 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.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 @@ -37,7 +36,7 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -51,10 +50,10 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/mixedreality/arm-mixedreality/src/models/index.ts b/sdk/mixedreality/arm-mixedreality/src/models/index.ts index 03a32ebb6e5f..da1ba02b4aa6 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/index.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -80,11 +80,12 @@ export interface Operation { } /** - * An interface representing Resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -95,15 +96,17 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * The resource model definition for a ARM tracked top level resource + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ export interface TrackedResource extends Resource { /** @@ -133,14 +136,16 @@ export interface SpatialAnchorsAccount extends TrackedResource { } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ export interface ProxyResource extends Resource { } /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ export interface AzureEntityResource extends Resource { /** @@ -302,7 +307,7 @@ export interface ResourceModelWithAllowedPropertySetPlan extends Plan { */ export interface ResourceModelWithAllowedPropertySet extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -313,8 +318,8 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts.. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; @@ -323,8 +328,8 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource { */ location?: string; /** - * The fully qualified resource ID of the resource that manages this resource. Indicates if this - * resource is managed by another azure resource. If this is present, complete mode deployment + * The fully qualified resource ID of the resource that manages this resource. Indicates if this + * resource is managed by another Azure resource. If this is present, complete mode deployment * will not delete the resource if it is removed from the template since it is managed by another * resource. */ diff --git a/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts index d48d32381b05..ba12a6fbc789 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts index 0aa51a7fa757..be0dd1d27224 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts b/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts index e55a33b18252..627d4aa12886 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts +++ b/sdk/mixedreality/arm-mixedreality/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/mixedreality/arm-mixedreality/src/models/remoteRenderingAccountsMappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/remoteRenderingAccountsMappers.ts index 85d0bf38e66f..8521294862bc 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/remoteRenderingAccountsMappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/remoteRenderingAccountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts index 19410b8ece4a..a8fa21bf5757 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/mixedreality/arm-mixedreality/src/operations/index.ts b/sdk/mixedreality/arm-mixedreality/src/operations/index.ts index 8f8c5a7d4aa5..12d483f65a2f 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/index.ts +++ b/sdk/mixedreality/arm-mixedreality/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/mixedreality/arm-mixedreality/src/operations/operations.ts b/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts index df395bf971b2..33e8f6d8d330 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts +++ b/sdk/mixedreality/arm-mixedreality/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.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/mixedreality/arm-mixedreality/src/operations/remoteRenderingAccounts.ts b/sdk/mixedreality/arm-mixedreality/src/operations/remoteRenderingAccounts.ts index 65007d1b57fd..e485176b1b1d 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/remoteRenderingAccounts.ts +++ b/sdk/mixedreality/arm-mixedreality/src/operations/remoteRenderingAccounts.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 @@ -568,6 +567,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -589,6 +591,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts b/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts index 3e02cbb076cd..b36c74b007b9 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts +++ b/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.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 @@ -568,6 +567,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -589,6 +591,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ],