diff --git a/sdk/mixedreality/arm-mixedreality/LICENSE.txt b/sdk/mixedreality/arm-mixedreality/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/mixedreality/arm-mixedreality/LICENSE.txt +++ b/sdk/mixedreality/arm-mixedreality/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 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/mixedreality/arm-mixedreality/README.md b/sdk/mixedreality/arm-mixedreality/README.md index 6770ab2b8849..c84af2850f43 100644 --- a/sdk/mixedreality/arm-mixedreality/README.md +++ b/sdk/mixedreality/arm-mixedreality/README.md @@ -19,8 +19,9 @@ npm install @azure/arm-mixedreality ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code @@ -95,5 +96,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%2Fmixedreality%2Farm-mixedreality%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mixedreality/arm-mixedreality/README.png) diff --git a/sdk/mixedreality/arm-mixedreality/package.json b/sdk/mixedreality/arm-mixedreality/package.json index 5223196ddb6e..708457c4a96c 100644 --- a/sdk/mixedreality/arm-mixedreality/package.json +++ b/sdk/mixedreality/arm-mixedreality/package.json @@ -4,9 +4,9 @@ "description": "MixedRealityClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.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,19 +20,19 @@ "module": "./esm/mixedRealityClient.js", "types": "./esm/mixedRealityClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/mixedreality/arm-mixedreality", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mixedreality/arm-mixedreality", "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", diff --git a/sdk/mixedreality/arm-mixedreality/rollup.config.js b/sdk/mixedreality/arm-mixedreality/rollup.config.js index a40468ce3499..8ee230806bb5 100644 --- a/sdk/mixedreality/arm-mixedreality/rollup.config.js +++ b/sdk/mixedreality/arm-mixedreality/rollup.config.js @@ -29,7 +29,7 @@ const config = { */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts index 1739208f7d99..e70ec3711ebd 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts @@ -24,7 +24,8 @@ class MixedRealityClient extends MixedRealityClientContext { /** * Initializes a new instance of the MixedRealityClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription ID. + * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) { @@ -34,7 +35,7 @@ class MixedRealityClient extends MixedRealityClientContext { } /** - * Check Name Availability for global uniqueness + * Check Name Availability for local uniqueness * @param location The location in which uniqueness will be verified. * @param checkNameAvailability Check Name Availability Request. * @param [options] The optional parameters @@ -93,7 +94,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.CheckNameAvailabilityResponse }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts index bdcc1248e003..e968ed28e5a5 100644 --- a/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts +++ b/sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts @@ -23,7 +23,8 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient { /** * Initializes a new instance of the MixedRealityClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription ID. + * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000) * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) { @@ -44,7 +45,7 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2019-02-28-preview'; + this.apiVersion = '2020-05-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/mixedreality/arm-mixedreality/src/models/index.ts b/sdk/mixedreality/arm-mixedreality/src/models/index.ts index b9e4c449e1ea..63dd63139391 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/index.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/index.ts @@ -43,30 +43,6 @@ export interface CheckNameAvailabilityResponse { message?: string; } -/** - * Response on Error - */ -export interface ErrorResponse { - /** - * Describes the error in detail and provides debugging information - */ - message: string; - /** - * String that can be used to programmatically identify the error. - */ - code: string; - /** - * The target of the particular error - */ - target?: string; - /** - * An array of JSON objects that MUST contain name/value pairs for code and message, and MAY - * contain a name/value pair for target, as described above.The contents of this section are - * service-defined but must adhere to the aforementioned schema. - */ - details?: string; -} - /** * The object that represents the operation. */ @@ -145,7 +121,7 @@ export interface TrackedResource extends Resource { */ export interface SpatialAnchorsAccount extends TrackedResource { /** - * unique id of certain Spatial Anchors Account data contract. + * unique id of certain account. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accountId?: string; @@ -157,9 +133,27 @@ export interface SpatialAnchorsAccount extends TrackedResource { } /** - * Spatial Anchors Account Keys + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags + */ +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for a Azure Resource Manager resource with an etag. + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * Developer Keys of account */ -export interface SpatialAnchorsAccountKeys { +export interface AccountKeys { /** * value of primary key. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -173,33 +167,15 @@ export interface SpatialAnchorsAccountKeys { } /** - * Spatial Anchors Account Regenerate Key + * Request for account key regeneration */ -export interface SpatialAnchorsAccountKeyRegenerateRequest { +export interface AccountKeyRegenerateRequest { /** * serial of key to be regenerated. Default value: 1. */ serial?: number; } -/** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags - */ -export interface ProxyResource extends Resource { -} - -/** - * The resource model definition for a Azure Resource Manager resource with an etag. - */ -export interface AzureEntityResource extends Resource { - /** - * Resource Etag. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly etag?: string; -} - /** * An interface representing MixedRealityClientOptions. */ @@ -213,7 +189,7 @@ export interface MixedRealityClientOptions extends AzureServiceClientOptions { * a URL link to get the next set of results. * @extends Array */ -export interface OperationList extends Array { +export interface OperationPage extends Array { /** * URL to get the next set of operation list results if there are any. */ @@ -226,7 +202,7 @@ export interface OperationList extends Array { * to get the next set of results. * @extends Array */ -export interface SpatialAnchorsAccountList extends Array { +export interface SpatialAnchorsAccountPage extends Array { /** * URL to get the next set of resource list results if there are any. */ @@ -252,7 +228,7 @@ export type NameUnavailableReason = 'Invalid' | 'AlreadyExists'; /** * Contains response data for the list operation. */ -export type OperationsListResponse = OperationList & { +export type OperationsListResponse = OperationPage & { /** * The underlying HTTP response. */ @@ -265,14 +241,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: OperationPage; }; }; /** * Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationList & { +export type OperationsListNextResponse = OperationPage & { /** * The underlying HTTP response. */ @@ -285,7 +261,7 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: OperationPage; }; }; @@ -312,7 +288,7 @@ export type CheckNameAvailabilityLocalResponse = CheckNameAvailabilityResponse & /** * Contains response data for the listBySubscription operation. */ -export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAccountList & { +export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAccountPage & { /** * The underlying HTTP response. */ @@ -325,14 +301,14 @@ export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAcc /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountList; + parsedBody: SpatialAnchorsAccountPage; }; }; /** * Contains response data for the listByResourceGroup operation. */ -export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAccountList & { +export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAccountPage & { /** * The underlying HTTP response. */ @@ -345,7 +321,7 @@ export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAc /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountList; + parsedBody: SpatialAnchorsAccountPage; }; }; @@ -410,9 +386,9 @@ export type SpatialAnchorsAccountsCreateResponse = SpatialAnchorsAccount & { }; /** - * Contains response data for the getKeys operation. + * Contains response data for the listKeys operation. */ -export type SpatialAnchorsAccountsGetKeysResponse = SpatialAnchorsAccountKeys & { +export type SpatialAnchorsAccountsListKeysResponse = AccountKeys & { /** * The underlying HTTP response. */ @@ -425,14 +401,14 @@ export type SpatialAnchorsAccountsGetKeysResponse = SpatialAnchorsAccountKeys & /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountKeys; + parsedBody: AccountKeys; }; }; /** * Contains response data for the regenerateKeys operation. */ -export type SpatialAnchorsAccountsRegenerateKeysResponse = SpatialAnchorsAccountKeys & { +export type SpatialAnchorsAccountsRegenerateKeysResponse = AccountKeys & { /** * The underlying HTTP response. */ @@ -445,14 +421,14 @@ export type SpatialAnchorsAccountsRegenerateKeysResponse = SpatialAnchorsAccount /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountKeys; + parsedBody: AccountKeys; }; }; /** * Contains response data for the listBySubscriptionNext operation. */ -export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchorsAccountList & { +export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchorsAccountPage & { /** * The underlying HTTP response. */ @@ -465,14 +441,14 @@ export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchor /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountList; + parsedBody: SpatialAnchorsAccountPage; }; }; /** * Contains response data for the listByResourceGroupNext operation. */ -export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAnchorsAccountList & { +export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAnchorsAccountPage & { /** * The underlying HTTP response. */ @@ -485,6 +461,6 @@ export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAncho /** * The response body as parsed JSON or XML */ - parsedBody: SpatialAnchorsAccountList; + parsedBody: SpatialAnchorsAccountPage; }; }; diff --git a/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts index 0e124f482c1d..2d1f9dcb852d 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/mappers.ts @@ -65,42 +65,6 @@ export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - message: { - required: true, - serializedName: "message", - type: { - name: "String" - } - }, - code: { - required: true, - serializedName: "code", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "String" - } - } - } - } -}; - export const OperationDisplay: msRest.CompositeMapper = { serializedName: "OperationDisplay", type: { @@ -247,11 +211,40 @@ export const SpatialAnchorsAccount: msRest.CompositeMapper = { } }; -export const SpatialAnchorsAccountKeys: msRest.CompositeMapper = { - serializedName: "SpatialAnchorsAccountKeys", +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "SpatialAnchorsAccountKeys", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AccountKeys: msRest.CompositeMapper = { + serializedName: "AccountKeys", + type: { + name: "Composite", + className: "AccountKeys", modelProperties: { primaryKey: { readOnly: true, @@ -271,11 +264,11 @@ export const SpatialAnchorsAccountKeys: msRest.CompositeMapper = { } }; -export const SpatialAnchorsAccountKeyRegenerateRequest: msRest.CompositeMapper = { - serializedName: "SpatialAnchorsAccountKeyRegenerateRequest", +export const AccountKeyRegenerateRequest: msRest.CompositeMapper = { + serializedName: "AccountKeyRegenerateRequest", type: { name: "Composite", - className: "SpatialAnchorsAccountKeyRegenerateRequest", + className: "AccountKeyRegenerateRequest", modelProperties: { serial: { serializedName: "serial", @@ -288,40 +281,11 @@ export const SpatialAnchorsAccountKeyRegenerateRequest: msRest.CompositeMapper = } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", +export const OperationPage: msRest.CompositeMapper = { + serializedName: "OperationPage", type: { name: "Composite", - className: "OperationList", + className: "OperationPage", modelProperties: { value: { serializedName: "", @@ -345,11 +309,11 @@ export const OperationList: msRest.CompositeMapper = { } }; -export const SpatialAnchorsAccountList: msRest.CompositeMapper = { - serializedName: "SpatialAnchorsAccountList", +export const SpatialAnchorsAccountPage: msRest.CompositeMapper = { + serializedName: "SpatialAnchorsAccountPage", type: { name: "Composite", - className: "SpatialAnchorsAccountList", + className: "SpatialAnchorsAccountPage", modelProperties: { value: { serializedName: "", diff --git a/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts index 1bffa63f4cc5..0aa51a7fa757 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/operationsMappers.ts @@ -7,8 +7,8 @@ */ export { - ErrorResponse, + CloudError, Operation, OperationDisplay, - OperationList + OperationPage } from "../models/mappers"; diff --git a/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts b/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts index 22760b651c29..a725dae4d6da 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/parameters.ts @@ -20,6 +20,21 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; +export const accountName: msRest.OperationURLParameter = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, + type: { + name: "String" + } + } +}; export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -71,21 +86,6 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; -export const spatialAnchorsAccountName: msRest.OperationURLParameter = { - parameterPath: "spatialAnchorsAccountName", - mapper: { - required: true, - serializedName: "spatialAnchorsAccountName", - constraints: { - MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ - }, - type: { - name: "String" - } - } -}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts b/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts index 13ccb0be4f01..6623759dcab5 100644 --- a/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts +++ b/sdk/mixedreality/arm-mixedreality/src/models/spatialAnchorsAccountsMappers.ts @@ -7,14 +7,14 @@ */ export { + AccountKeyRegenerateRequest, + AccountKeys, AzureEntityResource, BaseResource, - ErrorResponse, + CloudError, ProxyResource, Resource, SpatialAnchorsAccount, - SpatialAnchorsAccountKeyRegenerateRequest, - SpatialAnchorsAccountKeys, - SpatialAnchorsAccountList, + SpatialAnchorsAccountPage, TrackedResource } from "../models/mappers"; diff --git a/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts b/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts index cf190bf2d7c5..63464a7b1975 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts +++ b/sdk/mixedreality/arm-mixedreality/src/operations/operations.ts @@ -35,13 +35,13 @@ export class Operations { /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -61,14 +61,14 @@ export class Operations { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -92,10 +92,10 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.OperationList + bodyMapper: Mappers.OperationPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -113,10 +113,10 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.OperationList + bodyMapper: Mappers.OperationPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts b/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts index 7223a7fbe9df..87b63a3d603a 100644 --- a/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts +++ b/sdk/mixedreality/arm-mixedreality/src/operations/spatialAnchorsAccounts.ts @@ -35,13 +35,13 @@ export class SpatialAnchorsAccounts { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -61,14 +61,14 @@ export class SpatialAnchorsAccounts { * @param resourceGroupName Name of an Azure resource group. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -81,29 +81,29 @@ export class SpatialAnchorsAccounts { /** * Delete a Spatial Anchors Account. * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param callback The callback */ - deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, + accountName, options }, deleteMethodOperationSpec, @@ -113,29 +113,29 @@ export class SpatialAnchorsAccounts { /** * Retrieve a Spatial Anchors Account. * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param callback The callback */ - get(resourceGroupName: string, spatialAnchorsAccountName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, spatialAnchorsAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, + accountName, options }, getOperationSpec, @@ -145,32 +145,32 @@ export class SpatialAnchorsAccounts { /** * Updating a Spatial Anchors Account * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param callback The callback */ - update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, + accountName, spatialAnchorsAccount, options }, @@ -181,32 +181,32 @@ export class SpatialAnchorsAccounts { /** * Creating or Updating a Spatial Anchors Account. * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param [options] The optional parameters * @returns Promise */ - create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise; + create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param callback The callback */ - create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @param options The optional parameters * @param callback The callback */ - create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, + accountName, spatialAnchorsAccount, options }, @@ -215,67 +215,67 @@ export class SpatialAnchorsAccounts { } /** - * Get Both of the 2 Keys of a Spatial Anchors Account + * List Both of the 2 Keys of a Spatial Anchors Account * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise; + listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param callback The callback */ - getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. + * @param accountName Name of an Mixed Reality Account. * @param options The optional parameters * @param callback The callback */ - getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, + accountName, options }, - getKeysOperationSpec, - callback) as Promise; + listKeysOperationSpec, + callback) as Promise; } /** - * Regenerate 1 Key of a Spatial Anchors Account + * Regenerate specified Key of a Spatial Anchors Account * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. - * @param spatialAnchorsAccountKeyRegenerate Specifying which key to be regenerated. + * @param accountName Name of an Mixed Reality Account. + * @param regenerate Required information for key regeneration. * @param [options] The optional parameters * @returns Promise */ - regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise; + regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. - * @param spatialAnchorsAccountKeyRegenerate Specifying which key to be regenerated. + * @param accountName Name of an Mixed Reality Account. + * @param regenerate Required information for key regeneration. * @param callback The callback */ - regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure resource group. - * @param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account. - * @param spatialAnchorsAccountKeyRegenerate Specifying which key to be regenerated. + * @param accountName Name of an Mixed Reality Account. + * @param regenerate Required information for key regeneration. * @param options The optional parameters * @param callback The callback */ - regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - spatialAnchorsAccountName, - spatialAnchorsAccountKeyRegenerate, + accountName, + regenerate, options }, regenerateKeysOperationSpec, @@ -293,14 +293,14 @@ export class SpatialAnchorsAccounts { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -321,14 +321,14 @@ export class SpatialAnchorsAccounts { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -355,10 +355,10 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountList + bodyMapper: Mappers.SpatialAnchorsAccountPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -379,10 +379,10 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountList + bodyMapper: Mappers.SpatialAnchorsAccountPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -390,11 +390,11 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -406,7 +406,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -414,11 +414,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -431,7 +431,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SpatialAnchorsAccount }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -439,11 +439,11 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -463,7 +463,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SpatialAnchorsAccount }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -471,11 +471,11 @@ const updateOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -498,19 +498,19 @@ const createOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SpatialAnchorsAccount }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer }; -const getKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}/keys", +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -520,10 +520,10 @@ const getKeysOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountKeys + bodyMapper: Mappers.AccountKeys }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -531,11 +531,11 @@ const getKeysOperationSpec: msRest.OperationSpec = { const regenerateKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{spatialAnchorsAccountName}/keys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.spatialAnchorsAccountName + Parameters.accountName ], queryParameters: [ Parameters.apiVersion @@ -544,18 +544,18 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "spatialAnchorsAccountKeyRegenerate", + parameterPath: "regenerate", mapper: { - ...Mappers.SpatialAnchorsAccountKeyRegenerateRequest, + ...Mappers.AccountKeyRegenerateRequest, required: true } }, responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountKeys + bodyMapper: Mappers.AccountKeys }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -573,10 +573,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountList + bodyMapper: Mappers.SpatialAnchorsAccountPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -594,10 +594,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SpatialAnchorsAccountList + bodyMapper: Mappers.SpatialAnchorsAccountPage }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/mixedreality/arm-mixedreality/tsconfig.json b/sdk/mixedreality/arm-mixedreality/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/mixedreality/arm-mixedreality/tsconfig.json +++ b/sdk/mixedreality/arm-mixedreality/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true