Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
This commit is contained in:
Zim Kalinowski 2020-06-03 09:16:25 +02:00 коммит произвёл GitHub
Родитель ca4cc53a60
Коммит 5ea9713116
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
17 изменённых файлов: 1626 добавлений и 323 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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)

Просмотреть файл

@ -2,11 +2,11 @@
"name": "@azure/arm-mixedreality",
"author": "Microsoft Corporation",
"description": "MixedRealityClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0",
"version": "2.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",

Просмотреть файл

@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};

Просмотреть файл

@ -20,21 +20,24 @@ class MixedRealityClient extends MixedRealityClientContext {
// Operation groups
operations: operations.Operations;
spatialAnchorsAccounts: operations.SpatialAnchorsAccounts;
remoteRenderingAccounts: operations.RemoteRenderingAccounts;
/**
* 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) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.spatialAnchorsAccounts = new operations.SpatialAnchorsAccounts(this);
this.remoteRenderingAccounts = new operations.RemoteRenderingAccounts(this);
}
/**
* 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
@ -76,7 +79,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = {
Parameters.location
],
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@ -93,7 +96,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.CheckNameAvailabilityResponse
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer

Просмотреть файл

@ -13,17 +13,17 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-mixedreality";
const packageVersion = "1.0.0";
const packageVersion = "2.0.0";
export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
apiVersion?: string;
subscriptionId: string;
/**
* 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) {
@ -37,14 +37,13 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if(!options.userAgent) {
if (!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
super(credentials, options);
this.apiVersion = '2019-02-28-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
@ -52,10 +51,10 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
this.credentials = credentials;
this.subscriptionId = subscriptionId;
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}

Просмотреть файл

@ -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;
@ -156,32 +132,6 @@ export interface SpatialAnchorsAccount extends TrackedResource {
readonly accountDomain?: string;
}
/**
* Spatial Anchors Account Keys
*/
export interface SpatialAnchorsAccountKeys {
/**
* value of primary key.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly primaryKey?: string;
/**
* value of secondary key.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly secondaryKey?: string;
}
/**
* Spatial Anchors Account Regenerate Key
*/
export interface SpatialAnchorsAccountKeyRegenerateRequest {
/**
* 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
@ -200,6 +150,209 @@ export interface AzureEntityResource extends Resource {
readonly etag?: string;
}
/**
* Developer Keys of account
*/
export interface AccountKeys {
/**
* value of primary key.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly primaryKey?: string;
/**
* value of secondary key.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly secondaryKey?: string;
}
/**
* Request for account key regeneration
*/
export interface AccountKeyRegenerateRequest {
/**
* serial of key to be regenerated. Default value: 1.
*/
serial?: number;
}
/**
* Identity for the resource.
*/
export interface Identity {
/**
* The principal ID of resource identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The tenant ID of resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
/**
* The identity type. Possible values include: 'SystemAssigned'
*/
type?: ResourceIdentityType;
}
/**
* An interface representing RemoteRenderingAccountIdentity.
*/
export interface RemoteRenderingAccountIdentity extends Identity {
}
/**
* RemoteRenderingAccount Response.
*/
export interface RemoteRenderingAccount extends TrackedResource {
identity?: RemoteRenderingAccountIdentity;
/**
* unique id of certain account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly accountId?: string;
/**
* Correspond domain name of certain Spatial Anchors Account
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly accountDomain?: string;
}
/**
* An interface representing ResourceModelWithAllowedPropertySetIdentity.
*/
export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {
}
/**
* The resource model definition representing SKU
*/
export interface Sku {
/**
* The name of the SKU. Ex - P3. It is typically a letter+number code
*/
name: string;
/**
* This field is required to be implemented by the Resource Provider if the service has more than
* one tier, but is not required on a PUT. Possible values include: 'Free', 'Basic', 'Standard',
* 'Premium'
*/
tier?: SkuTier;
/**
* The SKU size. When the name field is the combination of tier and some other value, this would
* be the standalone code.
*/
size?: string;
/**
* If the service has different generations of hardware, for the same SKU, then that can be
* captured here.
*/
family?: string;
/**
* If the SKU supports scale out/in then the capacity integer should be included. If scale out/in
* is not possible for the resource this may be omitted.
*/
capacity?: number;
}
/**
* An interface representing ResourceModelWithAllowedPropertySetSku.
*/
export interface ResourceModelWithAllowedPropertySetSku extends Sku {
}
/**
* Plan for the resource.
*/
export interface Plan {
/**
* A user defined name of the 3rd Party Artifact that is being procured.
*/
name: string;
/**
* The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
*/
publisher: string;
/**
* The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID
* specified for the artifact at the time of Data Market onboarding.
*/
product: string;
/**
* A publisher provided promotion code as provisioned in Data Market for the said
* product/artifact.
*/
promotionCode?: string;
/**
* The version of the desired product/artifact.
*/
version?: string;
}
/**
* An interface representing ResourceModelWithAllowedPropertySetPlan.
*/
export interface ResourceModelWithAllowedPropertySetPlan extends Plan {
}
/**
* The resource model definition containing the full set of allowed properties for a resource.
* Except properties bag, there cannot be a top level property outside of this set.
*/
export interface ResourceModelWithAllowedPropertySet extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts..
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The geo-location where the resource lives
*/
location?: string;
/**
* The fully qualified resource ID of the resource that manages this resource. Indicates if this
* resource is managed by another azure resource. If this is present, complete mode deployment
* will not delete the resource if it is removed from the template since it is managed by another
* resource.
*/
managedBy?: string;
/**
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the
* same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource
* provider must validate and persist this value.
*/
kind?: string;
/**
* The etag field is *not* required. If it is provided in the response body, it must also be
* provided as a header per the normal etag convention. Entity tags are used for comparing two
* or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag
* (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range
* (section 14.27) header fields.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
identity?: ResourceModelWithAllowedPropertySetIdentity;
sku?: ResourceModelWithAllowedPropertySetSku;
plan?: ResourceModelWithAllowedPropertySetPlan;
}
/**
* An interface representing MixedRealityClientOptions.
*/
@ -213,7 +366,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.
*/
@ -226,7 +379,20 @@ 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.
*/
nextLink?: string;
}
/**
* @interface
* Result of the request to get resource collection. It contains a list of resources and a URL link
* to get the next set of results.
* @extends Array<RemoteRenderingAccount>
*/
export interface RemoteRenderingAccountPage extends Array<RemoteRenderingAccount> {
/**
* URL to get the next set of resource list results if there are any.
*/
@ -249,10 +415,26 @@ export type NameAvailability = 'true' | 'false';
*/
export type NameUnavailableReason = 'Invalid' | 'AlreadyExists';
/**
* Defines values for SkuTier.
* Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
* @readonly
* @enum {string}
*/
export type SkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium';
/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned'
* @readonly
* @enum {string}
*/
export type ResourceIdentityType = 'SystemAssigned';
/**
* Contains response data for the list operation.
*/
export type OperationsListResponse = OperationList & {
export type OperationsListResponse = OperationPage & {
/**
* The underlying HTTP response.
*/
@ -265,14 +447,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 +467,7 @@ export type OperationsListNextResponse = OperationList & {
/**
* The response body as parsed JSON or XML
*/
parsedBody: OperationList;
parsedBody: OperationPage;
};
};
@ -312,7 +494,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 +507,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 +527,7 @@ export type SpatialAnchorsAccountsListByResourceGroupResponse = SpatialAnchorsAc
/**
* The response body as parsed JSON or XML
*/
parsedBody: SpatialAnchorsAccountList;
parsedBody: SpatialAnchorsAccountPage;
};
};
@ -410,9 +592,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 +607,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 +627,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 +647,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 +667,186 @@ export type SpatialAnchorsAccountsListByResourceGroupNextResponse = SpatialAncho
/**
* The response body as parsed JSON or XML
*/
parsedBody: SpatialAnchorsAccountList;
parsedBody: SpatialAnchorsAccountPage;
};
};
/**
* Contains response data for the listBySubscription operation.
*/
export type RemoteRenderingAccountsListBySubscriptionResponse = RemoteRenderingAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccountPage;
};
};
/**
* Contains response data for the listByResourceGroup operation.
*/
export type RemoteRenderingAccountsListByResourceGroupResponse = RemoteRenderingAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccountPage;
};
};
/**
* Contains response data for the get operation.
*/
export type RemoteRenderingAccountsGetResponse = RemoteRenderingAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccount;
};
};
/**
* Contains response data for the update operation.
*/
export type RemoteRenderingAccountsUpdateResponse = RemoteRenderingAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccount;
};
};
/**
* Contains response data for the create operation.
*/
export type RemoteRenderingAccountsCreateResponse = RemoteRenderingAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccount;
};
};
/**
* Contains response data for the listKeys operation.
*/
export type RemoteRenderingAccountsListKeysResponse = AccountKeys & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: AccountKeys;
};
};
/**
* Contains response data for the regenerateKeys operation.
*/
export type RemoteRenderingAccountsRegenerateKeysResponse = AccountKeys & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: AccountKeys;
};
};
/**
* Contains response data for the listBySubscriptionNext operation.
*/
export type RemoteRenderingAccountsListBySubscriptionNextResponse = RemoteRenderingAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccountPage;
};
};
/**
* Contains response data for the listByResourceGroupNext operation.
*/
export type RemoteRenderingAccountsListByResourceGroupNextResponse = RemoteRenderingAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RemoteRenderingAccountPage;
};
};

Просмотреть файл

@ -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,47 +211,6 @@ export const SpatialAnchorsAccount: msRest.CompositeMapper = {
}
};
export const SpatialAnchorsAccountKeys: msRest.CompositeMapper = {
serializedName: "SpatialAnchorsAccountKeys",
type: {
name: "Composite",
className: "SpatialAnchorsAccountKeys",
modelProperties: {
primaryKey: {
readOnly: true,
serializedName: "primaryKey",
type: {
name: "String"
}
},
secondaryKey: {
readOnly: true,
serializedName: "secondaryKey",
type: {
name: "String"
}
}
}
}
};
export const SpatialAnchorsAccountKeyRegenerateRequest: msRest.CompositeMapper = {
serializedName: "SpatialAnchorsAccountKeyRegenerateRequest",
type: {
name: "Composite",
className: "SpatialAnchorsAccountKeyRegenerateRequest",
modelProperties: {
serial: {
serializedName: "serial",
defaultValue: 1,
type: {
name: "Number"
}
}
}
}
};
export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
@ -317,11 +240,342 @@ export const AzureEntityResource: msRest.CompositeMapper = {
}
};
export const OperationList: msRest.CompositeMapper = {
serializedName: "OperationList",
export const AccountKeys: msRest.CompositeMapper = {
serializedName: "AccountKeys",
type: {
name: "Composite",
className: "OperationList",
className: "AccountKeys",
modelProperties: {
primaryKey: {
readOnly: true,
serializedName: "primaryKey",
type: {
name: "String"
}
},
secondaryKey: {
readOnly: true,
serializedName: "secondaryKey",
type: {
name: "String"
}
}
}
}
};
export const AccountKeyRegenerateRequest: msRest.CompositeMapper = {
serializedName: "AccountKeyRegenerateRequest",
type: {
name: "Composite",
className: "AccountKeyRegenerateRequest",
modelProperties: {
serial: {
serializedName: "serial",
defaultValue: 1,
type: {
name: "Number"
}
}
}
}
};
export const Identity: msRest.CompositeMapper = {
serializedName: "Identity",
type: {
name: "Composite",
className: "Identity",
modelProperties: {
principalId: {
readOnly: true,
serializedName: "principalId",
type: {
name: "String"
}
},
tenantId: {
readOnly: true,
serializedName: "tenantId",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "Enum",
allowedValues: [
"SystemAssigned"
]
}
}
}
}
};
export const RemoteRenderingAccountIdentity: msRest.CompositeMapper = {
serializedName: "RemoteRenderingAccount_identity",
type: {
name: "Composite",
className: "RemoteRenderingAccountIdentity",
modelProperties: {
...Identity.type.modelProperties
}
}
};
export const RemoteRenderingAccount: msRest.CompositeMapper = {
serializedName: "RemoteRenderingAccount",
type: {
name: "Composite",
className: "RemoteRenderingAccount",
modelProperties: {
...TrackedResource.type.modelProperties,
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "RemoteRenderingAccountIdentity"
}
},
accountId: {
readOnly: true,
serializedName: "properties.accountId",
type: {
name: "String"
}
},
accountDomain: {
readOnly: true,
serializedName: "properties.accountDomain",
type: {
name: "String"
}
}
}
}
};
export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper = {
serializedName: "ResourceModelWithAllowedPropertySet_identity",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetIdentity",
modelProperties: {
...Identity.type.modelProperties
}
}
};
export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
name: "Composite",
className: "Sku",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {
name: "String"
}
},
tier: {
serializedName: "tier",
type: {
name: "Enum",
allowedValues: [
"Free",
"Basic",
"Standard",
"Premium"
]
}
},
size: {
serializedName: "size",
type: {
name: "String"
}
},
family: {
serializedName: "family",
type: {
name: "String"
}
},
capacity: {
serializedName: "capacity",
type: {
name: "Number"
}
}
}
}
};
export const ResourceModelWithAllowedPropertySetSku: msRest.CompositeMapper = {
serializedName: "ResourceModelWithAllowedPropertySet_sku",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetSku",
modelProperties: {
...Sku.type.modelProperties
}
}
};
export const Plan: msRest.CompositeMapper = {
serializedName: "Plan",
type: {
name: "Composite",
className: "Plan",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {
name: "String"
}
},
publisher: {
required: true,
serializedName: "publisher",
type: {
name: "String"
}
},
product: {
required: true,
serializedName: "product",
type: {
name: "String"
}
},
promotionCode: {
serializedName: "promotionCode",
type: {
name: "String"
}
},
version: {
serializedName: "version",
type: {
name: "String"
}
}
}
}
};
export const ResourceModelWithAllowedPropertySetPlan: msRest.CompositeMapper = {
serializedName: "ResourceModelWithAllowedPropertySet_plan",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetPlan",
modelProperties: {
...Plan.type.modelProperties
}
}
};
export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = {
serializedName: "ResourceModelWithAllowedPropertySet",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySet",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
},
location: {
serializedName: "location",
type: {
name: "String"
}
},
managedBy: {
serializedName: "managedBy",
type: {
name: "String"
}
},
kind: {
serializedName: "kind",
constraints: {
Pattern: /^[-\w\._,\(\)]+$/
},
type: {
name: "String"
}
},
etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetIdentity"
}
},
sku: {
serializedName: "sku",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetSku"
}
},
plan: {
serializedName: "plan",
type: {
name: "Composite",
className: "ResourceModelWithAllowedPropertySetPlan"
}
}
}
}
};
export const OperationPage: msRest.CompositeMapper = {
serializedName: "OperationPage",
type: {
name: "Composite",
className: "OperationPage",
modelProperties: {
value: {
serializedName: "",
@ -345,11 +599,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: "",
@ -372,3 +626,31 @@ export const SpatialAnchorsAccountList: msRest.CompositeMapper = {
}
}
};
export const RemoteRenderingAccountPage: msRest.CompositeMapper = {
serializedName: "RemoteRenderingAccountPage",
type: {
name: "Composite",
className: "RemoteRenderingAccountPage",
modelProperties: {
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "RemoteRenderingAccount"
}
}
}
},
nextLink: {
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};

Просмотреть файл

@ -7,8 +7,8 @@
*/
export {
ErrorResponse,
CloudError,
Operation,
OperationDisplay,
OperationList
OperationPage
} from "../models/mappers";

Просмотреть файл

@ -20,11 +20,40 @@ export const acceptLanguage: msRest.OperationParameter = {
}
}
};
export const apiVersion: msRest.OperationQueryParameter = {
export const accountName: msRest.OperationURLParameter = {
parameterPath: "accountName",
mapper: {
required: true,
serializedName: "accountName",
constraints: {
MaxLength: 90,
MinLength: 1,
Pattern: /^[-\w\._\(\)]+$/
},
type: {
name: "String"
}
}
};
export const apiVersion0: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-05-01',
type: {
name: "String"
}
}
};
export const apiVersion1: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-04-06-preview',
type: {
name: "String"
}
@ -71,21 +100,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: {

Просмотреть файл

@ -0,0 +1,29 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
AccountKeyRegenerateRequest,
AccountKeys,
AzureEntityResource,
BaseResource,
CloudError,
Identity,
Plan,
ProxyResource,
RemoteRenderingAccount,
RemoteRenderingAccountIdentity,
RemoteRenderingAccountPage,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Sku,
SpatialAnchorsAccount,
TrackedResource
} from "../models/mappers";

Просмотреть файл

@ -7,14 +7,23 @@
*/
export {
AccountKeyRegenerateRequest,
AccountKeys,
AzureEntityResource,
BaseResource,
ErrorResponse,
CloudError,
Identity,
Plan,
ProxyResource,
RemoteRenderingAccount,
RemoteRenderingAccountIdentity,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Sku,
SpatialAnchorsAccount,
SpatialAnchorsAccountKeyRegenerateRequest,
SpatialAnchorsAccountKeys,
SpatialAnchorsAccountList,
SpatialAnchorsAccountPage,
TrackedResource
} from "../models/mappers";

Просмотреть файл

@ -10,3 +10,4 @@
export * from "./operations";
export * from "./spatialAnchorsAccounts";
export * from "./remoteRenderingAccounts";

Просмотреть файл

@ -35,13 +35,13 @@ export class Operations {
/**
* @param callback The callback
*/
list(callback: msRest.ServiceCallback<Models.OperationList>): void;
list(callback: msRest.ServiceCallback<Models.OperationPage>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationList>): void;
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationList>, callback?: msRest.ServiceCallback<Models.OperationList>): Promise<Models.OperationsListResponse> {
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationPage>): void;
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationPage>, callback?: msRest.ServiceCallback<Models.OperationPage>): Promise<Models.OperationsListResponse> {
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<Models.OperationList>): void;
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationPage>): 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<Models.OperationList>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationList>, callback?: msRest.ServiceCallback<Models.OperationList>): Promise<Models.OperationsListNextResponse> {
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationPage>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationPage>, callback?: msRest.ServiceCallback<Models.OperationPage>): Promise<Models.OperationsListNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
@ -85,17 +85,17 @@ const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.MixedReality/operations",
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
],
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

Просмотреть файл

@ -0,0 +1,604 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/remoteRenderingAccountsMappers";
import * as Parameters from "../models/parameters";
import { MixedRealityClientContext } from "../mixedRealityClientContext";
/** Class representing a RemoteRenderingAccounts. */
export class RemoteRenderingAccounts {
private readonly client: MixedRealityClientContext;
/**
* Create a RemoteRenderingAccounts.
* @param {MixedRealityClientContext} client Reference to the service client.
*/
constructor(client: MixedRealityClientContext) {
this.client = client;
}
/**
* List Remote Rendering Accounts by Subscription
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsListBySubscriptionResponse>
*/
listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsListBySubscriptionResponse>;
/**
* @param callback The callback
*/
listBySubscription(callback: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): void;
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccountPage>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): Promise<Models.RemoteRenderingAccountsListBySubscriptionResponse> {
return this.client.sendOperationRequest(
{
options
},
listBySubscriptionOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsListBySubscriptionResponse>;
}
/**
* List Resources by Resource Group
* @param resourceGroupName Name of an Azure resource group.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsListByResourceGroupResponse>
*/
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsListByResourceGroupResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param callback The callback
*/
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): 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<Models.RemoteRenderingAccountPage>): void;
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccountPage>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): Promise<Models.RemoteRenderingAccountsListByResourceGroupResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
options
},
listByResourceGroupOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsListByResourceGroupResponse>;
}
/**
* Delete a Remote Rendering Account.
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param options The optional parameters
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
options
},
deleteMethodOperationSpec,
callback);
}
/**
* Retrieve a Remote Rendering Account.
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsGetResponse>
*/
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsGetResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param callback The callback
*/
get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param options The optional parameters
* @param callback The callback
*/
get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccount>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccount>): Promise<Models.RemoteRenderingAccountsGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
options
},
getOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsGetResponse>;
}
/**
* Updating a Remote Rendering Account
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsUpdateResponse>
*/
update(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsUpdateResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param callback The callback
*/
update(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param options The optional parameters
* @param callback The callback
*/
update(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
update(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccount>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccount>): Promise<Models.RemoteRenderingAccountsUpdateResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
remoteRenderingAccount,
options
},
updateOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsUpdateResponse>;
}
/**
* Creating or Updating a Remote Rendering Account.
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsCreateResponse>
*/
create(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsCreateResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param callback The callback
*/
create(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param remoteRenderingAccount Remote Rendering Account parameter.
* @param options The optional parameters
* @param callback The callback
*/
create(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RemoteRenderingAccount>): void;
create(resourceGroupName: string, accountName: string, remoteRenderingAccount: Models.RemoteRenderingAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccount>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccount>): Promise<Models.RemoteRenderingAccountsCreateResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
remoteRenderingAccount,
options
},
createOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsCreateResponse>;
}
/**
* List Both of the 2 Keys of a Remote Rendering Account
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsListKeysResponse>
*/
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsListKeysResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param callback The callback
*/
listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param options The optional parameters
* @param callback The callback
*/
listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.RemoteRenderingAccountsListKeysResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
options
},
listKeysOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsListKeysResponse>;
}
/**
* Regenerate specified Key of a Remote Rendering Account
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param regenerate Required information for key regeneration.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsRegenerateKeysResponse>
*/
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsRegenerateKeysResponse>;
/**
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param regenerate Required information for key regeneration.
* @param callback The callback
*/
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
/**
* @param resourceGroupName Name of an Azure resource group.
* @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, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.RemoteRenderingAccountsRegenerateKeysResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
regenerate,
options
},
regenerateKeysOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsRegenerateKeysResponse>;
}
/**
* List Remote Rendering Accounts by Subscription
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsListBySubscriptionNextResponse>
*/
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsListBySubscriptionNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): 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<Models.RemoteRenderingAccountPage>): void;
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccountPage>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): Promise<Models.RemoteRenderingAccountsListBySubscriptionNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listBySubscriptionNextOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsListBySubscriptionNextResponse>;
}
/**
* List Resources by Resource Group
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.RemoteRenderingAccountsListByResourceGroupNextResponse>
*/
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RemoteRenderingAccountsListByResourceGroupNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): 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<Models.RemoteRenderingAccountPage>): void;
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RemoteRenderingAccountPage>, callback?: msRest.ServiceCallback<Models.RemoteRenderingAccountPage>): Promise<Models.RemoteRenderingAccountsListByResourceGroupNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listByResourceGroupNextOperationSpec,
callback) as Promise<Models.RemoteRenderingAccountsListByResourceGroupNextResponse>;
}
}
// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts",
urlParameters: [
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccountPage
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccountPage
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const deleteMethodOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const getOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccount
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const updateOperationSpec: msRest.OperationSpec = {
httpMethod: "PATCH",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "remoteRenderingAccount",
mapper: {
...Mappers.RemoteRenderingAccount,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccount
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const createOperationSpec: msRest.OperationSpec = {
httpMethod: "PUT",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "remoteRenderingAccount",
mapper: {
...Mappers.RemoteRenderingAccount,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccount
},
201: {
bodyMapper: Mappers.RemoteRenderingAccount
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const listKeysOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/listKeys",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.AccountKeys
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const regenerateKeysOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/regenerateKeys",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "regenerate",
mapper: {
...Mappers.AccountKeyRegenerateRequest,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.AccountKeys
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
path: "{nextLink}",
urlParameters: [
Parameters.nextPageLink
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccountPage
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
path: "{nextLink}",
urlParameters: [
Parameters.nextPageLink
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.RemoteRenderingAccountPage
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};

Просмотреть файл

@ -35,13 +35,13 @@ export class SpatialAnchorsAccounts {
/**
* @param callback The callback
*/
listBySubscription(callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): void;
listBySubscription(callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): void;
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountList>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse> {
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse> {
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<Models.SpatialAnchorsAccountList>): void;
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): 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<Models.SpatialAnchorsAccountList>): void;
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountList>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse> {
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse> {
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<msRest.RestResponse>
*/
deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @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>): void;
deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<void>): 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>): void;
deleteMethod(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
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<Models.SpatialAnchorsAccountsGetResponse>
*/
get(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsGetResponse>;
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsGetResponse>;
/**
* @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<Models.SpatialAnchorsAccount>): void;
get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): 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<Models.SpatialAnchorsAccount>): void;
get(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsGetResponse> {
get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsGetResponse> {
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<Models.SpatialAnchorsAccountsUpdateResponse>
*/
update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsUpdateResponse>;
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsUpdateResponse>;
/**
* @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<Models.SpatialAnchorsAccount>): void;
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): 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<Models.SpatialAnchorsAccount>): void;
update(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsUpdateResponse> {
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsUpdateResponse> {
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<Models.SpatialAnchorsAccountsCreateResponse>
*/
create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsCreateResponse>;
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsCreateResponse>;
/**
* @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<Models.SpatialAnchorsAccount>): void;
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): 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<Models.SpatialAnchorsAccount>): void;
create(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsCreateResponse> {
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsCreateResponse> {
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<Models.SpatialAnchorsAccountsGetKeysResponse>
* @returns Promise<Models.SpatialAnchorsAccountsListKeysResponse>
*/
getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsGetKeysResponse>;
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
/**
* @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<Models.SpatialAnchorsAccountKeys>): void;
listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.AccountKeys>): 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<Models.SpatialAnchorsAccountKeys>): void;
getKeys(resourceGroupName: string, spatialAnchorsAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountKeys>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountKeys>): Promise<Models.SpatialAnchorsAccountsGetKeysResponse> {
listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsListKeysResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
spatialAnchorsAccountName,
accountName,
options
},
getKeysOperationSpec,
callback) as Promise<Models.SpatialAnchorsAccountsGetKeysResponse>;
listKeysOperationSpec,
callback) as Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
}
/**
* 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<Models.SpatialAnchorsAccountsRegenerateKeysResponse>
*/
regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
/**
* @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<Models.SpatialAnchorsAccountKeys>): void;
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, callback: msRest.ServiceCallback<Models.AccountKeys>): 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<Models.SpatialAnchorsAccountKeys>): void;
regenerateKeys(resourceGroupName: string, spatialAnchorsAccountName: string, spatialAnchorsAccountKeyRegenerate: Models.SpatialAnchorsAccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountKeys>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountKeys>): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse> {
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse> {
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<Models.SpatialAnchorsAccountList>): void;
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): 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<Models.SpatialAnchorsAccountList>): void;
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountList>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse> {
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse> {
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<Models.SpatialAnchorsAccountList>): void;
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): 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<Models.SpatialAnchorsAccountList>): void;
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountList>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountList>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse> {
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
@ -348,17 +348,17 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.SpatialAnchorsAccountList
bodyMapper: Mappers.SpatialAnchorsAccountPage
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -372,17 +372,17 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
Parameters.resourceGroupName
],
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.SpatialAnchorsAccountList
bodyMapper: Mappers.SpatialAnchorsAccountPage
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -390,14 +390,14 @@ 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
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@ -406,7 +406,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -414,14 +414,14 @@ 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
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@ -431,7 +431,7 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.SpatialAnchorsAccount
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -439,14 +439,14 @@ 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
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@ -463,7 +463,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.SpatialAnchorsAccount
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -471,14 +471,14 @@ 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
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@ -498,32 +498,32 @@ 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
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.SpatialAnchorsAccountKeys
bodyMapper: Mappers.AccountKeys
},
default: {
bodyMapper: Mappers.ErrorResponse
bodyMapper: Mappers.CloudError
}
},
serializer
@ -531,31 +531,31 @@ 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
Parameters.apiVersion0
],
headerParameters: [
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

Просмотреть файл

@ -9,7 +9,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es6"],
"lib": ["es6", "dom"],
"declaration": true,
"outDir": "./esm",
"importHelpers": true