Skip to content

Commit

Permalink
CodeGen from PR 18603 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.MixedReality to add version stable/2021-01-01 (Azure#18603)

* Update Microsoft.MixedReality swagger to fix quality issues in s360

* Fixing linter issue

* Revert "Fixing linter issue"

This reverts commit 9d3b03a4aa7f742309c46277a7bf529f9f9a9088.

Co-authored-by: Ramón Argüelles-García <rgarcia@ntdev.microsoft.com>
  • Loading branch information
SDKAuto and Ramón Argüelles-García committed Apr 22, 2022
1 parent 11c2645 commit 2f0fd10
Show file tree
Hide file tree
Showing 17 changed files with 1,071 additions and 46 deletions.
30 changes: 30 additions & 0 deletions sdk/mixedreality/arm-mixedreality/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Release History

## 4.1.0-beta.1 (2022-04-22)

**Features**

- Added operation group ObjectAnchorsAccounts
- Added Interface ObjectAnchorsAccountPage
- Added Interface ObjectAnchorsAccountsCreateOptionalParams
- Added Interface ObjectAnchorsAccountsDeleteOptionalParams
- Added Interface ObjectAnchorsAccountsGetOptionalParams
- Added Interface ObjectAnchorsAccountsListByResourceGroupNextOptionalParams
- Added Interface ObjectAnchorsAccountsListByResourceGroupOptionalParams
- Added Interface ObjectAnchorsAccountsListBySubscriptionNextOptionalParams
- Added Interface ObjectAnchorsAccountsListBySubscriptionOptionalParams
- Added Interface ObjectAnchorsAccountsListKeysOptionalParams
- Added Interface ObjectAnchorsAccountsRegenerateKeysOptionalParams
- Added Interface ObjectAnchorsAccountsUpdateOptionalParams
- Added Type Alias ObjectAnchorsAccount
- Added Type Alias ObjectAnchorsAccountIdentity
- Added Type Alias ObjectAnchorsAccountsCreateResponse
- Added Type Alias ObjectAnchorsAccountsGetResponse
- Added Type Alias ObjectAnchorsAccountsListByResourceGroupNextResponse
- Added Type Alias ObjectAnchorsAccountsListByResourceGroupResponse
- Added Type Alias ObjectAnchorsAccountsListBySubscriptionNextResponse
- Added Type Alias ObjectAnchorsAccountsListBySubscriptionResponse
- Added Type Alias ObjectAnchorsAccountsListKeysResponse
- Added Type Alias ObjectAnchorsAccountsRegenerateKeysResponse
- Added Type Alias ObjectAnchorsAccountsUpdateResponse
- Interface MetricDimension has a new optional parameter toBeExportedForShoebox
- Class MixedRealityClient has a new parameter objectAnchorsAccounts

## 4.0.1 (2022-01-20)

**Feature**
Expand Down
2 changes: 1 addition & 1 deletion sdk/mixedreality/arm-mixedreality/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Mixed Reality Client

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mixedreality/arm-mixedreality) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-mixedreality) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-mixedreality) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-mixedreality?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
7 changes: 4 additions & 3 deletions sdk/mixedreality/arm-mixedreality/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
"commit": "b2091281717ae4447f8f627a4abb6159744150e1",
"readme": "specification/mixedreality/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/mixedreality/arm-mixedreality/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-mixedreality.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
24 changes: 4 additions & 20 deletions sdk/mixedreality/arm-mixedreality/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for MixedRealityClient.",
"version": "4.0.1",
"version": "4.1.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -26,7 +26,7 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-mixedreality.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "7.18.11",
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
Expand Down Expand Up @@ -96,21 +96,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/MixedRealityClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-mixedreality?view=azure-node-preview"
}
}
"autoPublish": true
}
103 changes: 103 additions & 0 deletions sdk/mixedreality/arm-mixedreality/review/arm-mixedreality.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export interface MetricDimension {
displayName?: string;
internalName?: string;
name?: string;
toBeExportedForShoebox?: boolean;
}

// @public
Expand Down Expand Up @@ -125,6 +126,8 @@ export class MixedRealityClient extends coreClient.ServiceClient {
apiVersion: string;
checkNameAvailabilityLocal(location: string, checkNameAvailability: CheckNameAvailabilityRequest, options?: CheckNameAvailabilityLocalOptionalParams): Promise<CheckNameAvailabilityLocalResponse>;
// (undocumented)
objectAnchorsAccounts: ObjectAnchorsAccounts;
// (undocumented)
operations: Operations;
// (undocumented)
remoteRenderingAccounts: RemoteRenderingAccounts;
Expand All @@ -144,6 +147,106 @@ export interface MixedRealityClientOptionalParams extends coreClient.ServiceClie
// @public
export type NameUnavailableReason = string;

// @public
export type ObjectAnchorsAccount = TrackedResource & {
identity?: ObjectAnchorsAccountIdentity;
plan?: Identity;
sku?: Sku;
kind?: Sku;
readonly systemData?: SystemData;
storageAccountName?: string;
readonly accountId?: string;
readonly accountDomain?: string;
};

// @public (undocumented)
export type ObjectAnchorsAccountIdentity = Identity & {};

// @public
export interface ObjectAnchorsAccountPage {
nextLink?: string;
value?: ObjectAnchorsAccount[];
}

// @public
export interface ObjectAnchorsAccounts {
create(resourceGroupName: string, accountName: string, objectAnchorsAccount: ObjectAnchorsAccount, options?: ObjectAnchorsAccountsCreateOptionalParams): Promise<ObjectAnchorsAccountsCreateResponse>;
delete(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsGetOptionalParams): Promise<ObjectAnchorsAccountsGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
listBySubscription(options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
listKeys(resourceGroupName: string, accountName: string, options?: ObjectAnchorsAccountsListKeysOptionalParams): Promise<ObjectAnchorsAccountsListKeysResponse>;
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: AccountKeyRegenerateRequest, options?: ObjectAnchorsAccountsRegenerateKeysOptionalParams): Promise<ObjectAnchorsAccountsRegenerateKeysResponse>;
update(resourceGroupName: string, accountName: string, objectAnchorsAccount: ObjectAnchorsAccount, options?: ObjectAnchorsAccountsUpdateOptionalParams): Promise<ObjectAnchorsAccountsUpdateResponse>;
}

// @public
export interface ObjectAnchorsAccountsCreateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsCreateResponse = ObjectAnchorsAccount;

// @public
export interface ObjectAnchorsAccountsDeleteOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface ObjectAnchorsAccountsGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsGetResponse = ObjectAnchorsAccount;

// @public
export interface ObjectAnchorsAccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsListByResourceGroupNextResponse = ObjectAnchorsAccountPage;

// @public
export interface ObjectAnchorsAccountsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsListByResourceGroupResponse = ObjectAnchorsAccountPage;

// @public
export interface ObjectAnchorsAccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsListBySubscriptionNextResponse = ObjectAnchorsAccountPage;

// @public
export interface ObjectAnchorsAccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsListBySubscriptionResponse = ObjectAnchorsAccountPage;

// @public
export interface ObjectAnchorsAccountsListKeysOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsListKeysResponse = AccountKeys;

// @public
export interface ObjectAnchorsAccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsRegenerateKeysResponse = AccountKeys;

// @public
export interface ObjectAnchorsAccountsUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ObjectAnchorsAccountsUpdateResponse = ObjectAnchorsAccount;

// @public
export interface Operation {
display?: OperationDisplay;
Expand Down
12 changes: 8 additions & 4 deletions sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import * as coreAuth from "@azure/core-auth";
import {
OperationsImpl,
SpatialAnchorsAccountsImpl,
RemoteRenderingAccountsImpl
RemoteRenderingAccountsImpl,
ObjectAnchorsAccountsImpl
} from "./operations";
import {
Operations,
SpatialAnchorsAccounts,
RemoteRenderingAccounts
RemoteRenderingAccounts,
ObjectAnchorsAccounts
} from "./operationsInterfaces";
import * as Parameters from "./models/parameters";
import * as Mappers from "./models/mappers";
Expand Down Expand Up @@ -60,7 +62,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-mixedreality/4.0.1`;
const packageDetails = `azsdk-js-arm-mixedreality/4.1.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -83,10 +85,11 @@ export class MixedRealityClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-01-01";
this.apiVersion = options.apiVersion || "2021-03-01-preview";
this.operations = new OperationsImpl(this);
this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(this);
}

/**
Expand All @@ -109,6 +112,7 @@ export class MixedRealityClient extends coreClient.ServiceClient {
operations: Operations;
spatialAnchorsAccounts: SpatialAnchorsAccounts;
remoteRenderingAccounts: RemoteRenderingAccounts;
objectAnchorsAccounts: ObjectAnchorsAccounts;
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
Expand Down
Loading

0 comments on commit 2f0fd10

Please sign in to comment.