Skip to content

Commit 01afd62

Browse files
author
SDK Automation
committed
Generated from 9504ebf1109274ac9021b717cee07b8bb3b04725
Fix MV (Azure#9397) Fix MV in Patch examples
1 parent ab15890 commit 01afd62

File tree

14 files changed

+238
-296
lines changed

14 files changed

+238
-296
lines changed

sdk/mixedreality/arm-mixedreality/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/mixedreality/arm-mixedreality/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ npm install @azure/arm-mixedreality
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
@@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9596

9697
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
9798

98-
99-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmixedreality%2Farm-mixedreality%2FREADME.png)
99+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/mixedreality/arm-mixedreality/README.png)

sdk/mixedreality/arm-mixedreality/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "MixedRealityClient Library with typescript type definitions for node.js and browser.",
55
"version": "1.0.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.3.2",
8-
"@azure/ms-rest-js": "^1.6.0",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,19 +20,19 @@
2020
"module": "./esm/mixedRealityClient.js",
2121
"types": "./esm/mixedRealityClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
29-
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/mixedreality/arm-mixedreality",
29+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mixedreality/arm-mixedreality",
3030
"repository": {
3131
"type": "git",
32-
"url": "https://github.com/azure/azure-sdk-for-js.git"
32+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
3333
},
3434
"bugs": {
35-
"url": "https://github.com/azure/azure-sdk-for-js/issues"
35+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
3636
},
3737
"files": [
3838
"dist/**/*.js",

sdk/mixedreality/arm-mixedreality/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class MixedRealityClient extends MixedRealityClientContext {
2424
/**
2525
* Initializes a new instance of the MixedRealityClient class.
2626
* @param credentials Credentials needed for the client to connect to Azure.
27-
* @param subscriptionId Azure subscription ID.
27+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
28+
* 00000000-0000-0000-0000-000000000000)
2829
* @param [options] The parameter options
2930
*/
3031
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) {
@@ -34,7 +35,7 @@ class MixedRealityClient extends MixedRealityClientContext {
3435
}
3536

3637
/**
37-
* Check Name Availability for global uniqueness
38+
* Check Name Availability for local uniqueness
3839
* @param location The location in which uniqueness will be verified.
3940
* @param checkNameAvailability Check Name Availability Request.
4041
* @param [options] The optional parameters
@@ -93,7 +94,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = {
9394
bodyMapper: Mappers.CheckNameAvailabilityResponse
9495
},
9596
default: {
96-
bodyMapper: Mappers.ErrorResponse
97+
bodyMapper: Mappers.CloudError
9798
}
9899
},
99100
serializer

sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
2323
/**
2424
* Initializes a new instance of the MixedRealityClient class.
2525
* @param credentials Credentials needed for the client to connect to Azure.
26-
* @param subscriptionId Azure subscription ID.
26+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
27+
* 00000000-0000-0000-0000-000000000000)
2728
* @param [options] The parameter options
2829
*/
2930
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MixedRealityClientOptions) {
@@ -44,7 +45,7 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
4445

4546
super(credentials, options);
4647

47-
this.apiVersion = '2019-02-28-preview';
48+
this.apiVersion = '2020-05-01';
4849
this.acceptLanguage = 'en-US';
4950
this.longRunningOperationRetryTimeout = 30;
5051
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/mixedreality/arm-mixedreality/src/models/index.ts

Lines changed: 42 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,6 @@ export interface CheckNameAvailabilityResponse {
4343
message?: string;
4444
}
4545

46-
/**
47-
* Response on Error
48-
*/
49-
export interface ErrorResponse {
50-
/**
51-
* Describes the error in detail and provides debugging information
52-
*/
53-
message: string;
54-
/**
55-
* String that can be used to programmatically identify the error.
56-
*/
57-
code: string;
58-
/**
59-
* The target of the particular error
60-
*/
61-
target?: string;
62-
/**
63-
* An array of JSON objects that MUST contain name/value pairs for code and message, and MAY
64-
* contain a name/value pair for target, as described above.The contents of this section are
65-
* service-defined but must adhere to the aforementioned schema.
66-
*/
67-
details?: string;
68-
}
69-
7046
/**
7147
* The object that represents the operation.
7248
*/
@@ -145,7 +121,7 @@ export interface TrackedResource extends Resource {
145121
*/
146122
export interface SpatialAnchorsAccount extends TrackedResource {
147123
/**
148-
* unique id of certain Spatial Anchors Account data contract.
124+
* unique id of certain account.
149125
* **NOTE: This property will not be serialized. It can only be populated by the server.**
150126
*/
151127
readonly accountId?: string;
@@ -157,9 +133,27 @@ export interface SpatialAnchorsAccount extends TrackedResource {
157133
}
158134

159135
/**
160-
* Spatial Anchors Account Keys
136+
* The resource model definition for a ARM proxy resource. It will have everything other than
137+
* required location and tags
138+
*/
139+
export interface ProxyResource extends Resource {
140+
}
141+
142+
/**
143+
* The resource model definition for a Azure Resource Manager resource with an etag.
144+
*/
145+
export interface AzureEntityResource extends Resource {
146+
/**
147+
* Resource Etag.
148+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
149+
*/
150+
readonly etag?: string;
151+
}
152+
153+
/**
154+
* Developer Keys of account
161155
*/
162-
export interface SpatialAnchorsAccountKeys {
156+
export interface AccountKeys {
163157
/**
164158
* value of primary key.
165159
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -173,33 +167,15 @@ export interface SpatialAnchorsAccountKeys {
173167
}
174168

175169
/**
176-
* Spatial Anchors Account Regenerate Key
170+
* Request for account key regeneration
177171
*/
178-
export interface SpatialAnchorsAccountKeyRegenerateRequest {
172+
export interface AccountKeyRegenerateRequest {
179173
/**
180174
* serial of key to be regenerated. Default value: 1.
181175
*/
182176
serial?: number;
183177
}
184178

185-
/**
186-
* The resource model definition for a ARM proxy resource. It will have everything other than
187-
* required location and tags
188-
*/
189-
export interface ProxyResource extends Resource {
190-
}
191-
192-
/**
193-
* The resource model definition for a Azure Resource Manager resource with an etag.
194-
*/
195-
export interface AzureEntityResource extends Resource {
196-
/**
197-
* Resource Etag.
198-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
199-
*/
200-
readonly etag?: string;
201-
}
202-
203179
/**
204180
* An interface representing MixedRealityClientOptions.
205181
*/
@@ -213,7 +189,7 @@ export interface MixedRealityClientOptions extends AzureServiceClientOptions {
213189
* a URL link to get the next set of results.
214190
* @extends Array<Operation>
215191
*/
216-
export interface OperationList extends Array<Operation> {
192+
export interface OperationPage extends Array<Operation> {
217193
/**
218194
* URL to get the next set of operation list results if there are any.
219195
*/
@@ -226,7 +202,7 @@ export interface OperationList extends Array<Operation> {
226202
* to get the next set of results.
227203
* @extends Array<SpatialAnchorsAccount>
228204
*/
229-
export interface SpatialAnchorsAccountList extends Array<SpatialAnchorsAccount> {
205+
export interface SpatialAnchorsAccountPage extends Array<SpatialAnchorsAccount> {
230206
/**
231207
* URL to get the next set of resource list results if there are any.
232208
*/
@@ -252,7 +228,7 @@ export type NameUnavailableReason = 'Invalid' | 'AlreadyExists';
252228
/**
253229
* Contains response data for the list operation.
254230
*/
255-
export type OperationsListResponse = OperationList & {
231+
export type OperationsListResponse = OperationPage & {
256232
/**
257233
* The underlying HTTP response.
258234
*/
@@ -265,14 +241,14 @@ export type OperationsListResponse = OperationList & {
265241
/**
266242
* The response body as parsed JSON or XML
267243
*/
268-
parsedBody: OperationList;
244+
parsedBody: OperationPage;
269245
};
270246
};
271247

272248
/**
273249
* Contains response data for the listNext operation.
274250
*/
275-
export type OperationsListNextResponse = OperationList & {
251+
export type OperationsListNextResponse = OperationPage & {
276252
/**
277253
* The underlying HTTP response.
278254
*/
@@ -285,7 +261,7 @@ export type OperationsListNextResponse = OperationList & {
285261
/**
286262
* The response body as parsed JSON or XML
287263
*/
288-
parsedBody: OperationList;
264+
parsedBody: OperationPage;
289265
};
290266
};
291267

@@ -312,7 +288,7 @@ export type CheckNameAvailabilityLocalResponse = CheckNameAvailabilityResponse &
312288
/**
313289
* Contains response data for the listBySubscription operation.
314290
*/
315-
export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAccountList & {
291+
export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAccountPage & {
316292
/**
317293
* The underlying HTTP response.
318294
*/
@@ -325,14 +301,14 @@ export type SpatialAnchorsAccountsListBySubscriptionResponse = SpatialAnchorsAcc
325301
/**
326302
* The response body as parsed JSON or XML
327303
*/
328-
parsedBody: SpatialAnchorsAccountList;
304+
parsedBody: SpatialAnchorsAccountPage;
329305
};
330306
};
331307

332308
/**
333309
* Contains response data for the listByResourceGroup operation.
334310
*/
335-
export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAccountList & {
311+
export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAccountPage & {
336312
/**
337313
* The underlying HTTP response.
338314
*/
@@ -345,7 +321,7 @@ export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAc
345321
/**
346322
* The response body as parsed JSON or XML
347323
*/
348-
parsedBody: SpatialAnchorsAccountList;
324+
parsedBody: SpatialAnchorsAccountPage;
349325
};
350326
};
351327

@@ -410,9 +386,9 @@ export type SpatialAnchorsAccountsCreateResponse = SpatialAnchorsAccount & {
410386
};
411387

412388
/**
413-
* Contains response data for the getKeys operation.
389+
* Contains response data for the listKeys operation.
414390
*/
415-
export type SpatialAnchorsAccountsGetKeysResponse = SpatialAnchorsAccountKeys & {
391+
export type SpatialAnchorsAccountsListKeysResponse = AccountKeys & {
416392
/**
417393
* The underlying HTTP response.
418394
*/
@@ -425,14 +401,14 @@ export type SpatialAnchorsAccountsGetKeysResponse = SpatialAnchorsAccountKeys &
425401
/**
426402
* The response body as parsed JSON or XML
427403
*/
428-
parsedBody: SpatialAnchorsAccountKeys;
404+
parsedBody: AccountKeys;
429405
};
430406
};
431407

432408
/**
433409
* Contains response data for the regenerateKeys operation.
434410
*/
435-
export type SpatialAnchorsAccountsRegenerateKeysResponse = SpatialAnchorsAccountKeys & {
411+
export type SpatialAnchorsAccountsRegenerateKeysResponse = AccountKeys & {
436412
/**
437413
* The underlying HTTP response.
438414
*/
@@ -445,14 +421,14 @@ export type SpatialAnchorsAccountsRegenerateKeysResponse = SpatialAnchorsAccount
445421
/**
446422
* The response body as parsed JSON or XML
447423
*/
448-
parsedBody: SpatialAnchorsAccountKeys;
424+
parsedBody: AccountKeys;
449425
};
450426
};
451427

452428
/**
453429
* Contains response data for the listBySubscriptionNext operation.
454430
*/
455-
export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchorsAccountList & {
431+
export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchorsAccountPage & {
456432
/**
457433
* The underlying HTTP response.
458434
*/
@@ -465,14 +441,14 @@ export type SpatialAnchorsAccountsListBySubscriptionNextResponse = SpatialAnchor
465441
/**
466442
* The response body as parsed JSON or XML
467443
*/
468-
parsedBody: SpatialAnchorsAccountList;
444+
parsedBody: SpatialAnchorsAccountPage;
469445
};
470446
};
471447

472448
/**
473449
* Contains response data for the listByResourceGroupNext operation.
474450
*/
475-
export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAnchorsAccountList & {
451+
export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAnchorsAccountPage & {
476452
/**
477453
* The underlying HTTP response.
478454
*/
@@ -485,6 +461,6 @@ export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAncho
485461
/**
486462
* The response body as parsed JSON or XML
487463
*/
488-
parsedBody: SpatialAnchorsAccountList;
464+
parsedBody: SpatialAnchorsAccountPage;
489465
};
490466
};

0 commit comments

Comments
 (0)