Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/mixedreality/arm-mixedreality/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions sdk/mixedreality/arm-mixedreality/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
20 changes: 10 additions & 10 deletions sdk/mixedreality/arm-mixedreality/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion sdk/mixedreality/arm-mixedreality/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};
Expand Down
7 changes: 4 additions & 3 deletions sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -93,7 +94,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CheckNameAvailabilityResponse
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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";
Expand Down
108 changes: 42 additions & 66 deletions sdk/mixedreality/arm-mixedreality/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;
Expand All @@ -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.**
Expand All @@ -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.
*/
Expand All @@ -213,7 +189,7 @@ export interface MixedRealityClientOptions extends AzureServiceClientOptions {
* a URL link to get the next set of results.
* @extends Array<Operation>
*/
export interface OperationList extends Array<Operation> {
export interface OperationPage extends Array<Operation> {
/**
* URL to get the next set of operation list results if there are any.
*/
Expand All @@ -226,7 +202,7 @@ export interface OperationList extends Array<Operation> {
* to get the next set of results.
* @extends Array<SpatialAnchorsAccount>
*/
export interface SpatialAnchorsAccountList extends Array<SpatialAnchorsAccount> {
export interface SpatialAnchorsAccountPage extends Array<SpatialAnchorsAccount> {
/**
* URL to get the next set of resource list results if there are any.
*/
Expand All @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -285,7 +261,7 @@ export type OperationsListNextResponse = OperationList & {
/**
* The response body as parsed JSON or XML
*/
parsedBody: OperationList;
parsedBody: OperationPage;
};
};

Expand All @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -345,7 +321,7 @@ export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAc
/**
* The response body as parsed JSON or XML
*/
parsedBody: SpatialAnchorsAccountList;
parsedBody: SpatialAnchorsAccountPage;
};
};

Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -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.
*/
Expand All @@ -485,6 +461,6 @@ export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAncho
/**
* The response body as parsed JSON or XML
*/
parsedBody: SpatialAnchorsAccountList;
parsedBody: SpatialAnchorsAccountPage;
};
};
Loading