* arm-mixedrelity-release

* arm-mixedrelity-release
This commit is contained in:
colawwj 2021-02-09 08:56:00 +08:00 коммит произвёл GitHub
Родитель cb62ea50e7
Коммит 82d3fdae53
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
16 изменённых файлов: 875 добавлений и 397 удалений

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

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2020 Microsoft
Copyright (c) 2021 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

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

@ -15,7 +15,7 @@ npm install @azure/arm-mixedreality
### How to use
#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - client creation and list operations as an example written in TypeScript.
##### Install @azure/ms-rest-nodeauth
@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
##### Sample code
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { MixedRealityClient, MixedRealityModels, MixedRealityMappers } from "@azure/arm-mixedreality";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { MixedRealityClient } = require("@azure/arm-mixedreality");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
msRestNodeAuth.interactiveLogin().then((creds) => {

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

@ -2,7 +2,7 @@
"name": "@azure/arm-mixedreality",
"author": "Microsoft Corporation",
"description": "MixedRealityClient Library with typescript type definitions for node.js and browser.",
"version": "2.0.0",
"version": "3.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",

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

@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -79,7 +78,7 @@ const checkNameAvailabilityLocalOperationSpec: msRest.OperationSpec = {
Parameters.location
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -13,10 +12,11 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-mixedreality";
const packageVersion = "2.0.0";
const packageVersion = "3.0.0";
export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
apiVersion?: string;
subscriptionId: string;
/**
@ -44,6 +44,7 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
super(credentials, options);
this.apiVersion = '2021-01-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

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

@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@ -30,9 +30,9 @@ export interface CheckNameAvailabilityRequest {
*/
export interface CheckNameAvailabilityResponse {
/**
* if name Available. Possible values include: 'true', 'false'
* if name Available
*/
nameAvailable: NameAvailability;
nameAvailable: boolean;
/**
* Resource Name To Verify. Possible values include: 'Invalid', 'AlreadyExists'
*/
@ -65,6 +65,100 @@ export interface OperationDisplay {
description: string;
}
/**
* Specifications of the Log for Azure Monitoring
*/
export interface LogSpecification {
/**
* Name of the log
*/
name?: string;
/**
* Localized friendly display name of the log
*/
displayName?: string;
/**
* Blob duration of the log
*/
blobDuration?: string;
}
/**
* Specifications of the Dimension of metrics
*/
export interface MetricDimension {
/**
* Name of the dimension
*/
name?: string;
/**
* Localized friendly display name of the dimension
*/
displayName?: string;
/**
* Internal name of the dimension.
*/
internalName?: string;
}
/**
* Specifications of the Metrics for Azure Monitoring
*/
export interface MetricSpecification {
/**
* Name of the metric
*/
name?: string;
/**
* Localized friendly display name of the metric
*/
displayName?: string;
/**
* Localized friendly description of the metric
*/
displayDescription?: string;
/**
* Unit that makes sense for the metric
*/
unit?: string;
/**
* Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
*/
aggregationType?: string;
/**
* Internal metric name.
*/
internalMetricName?: string;
/**
* Dimensions of the metric
*/
dimensions?: MetricDimension[];
}
/**
* Service specification payload
*/
export interface ServiceSpecification {
/**
* Specifications of the Log for Azure Monitoring
*/
logSpecifications?: LogSpecification[];
/**
* Specifications of the Metrics for Azure Monitoring
*/
metricSpecifications?: MetricSpecification[];
}
/**
* Operation properties.
*/
export interface OperationProperties {
/**
* Service specification.
*/
serviceSpecification?: ServiceSpecification;
}
/**
* REST API operation
*/
@ -77,103 +171,18 @@ export interface Operation {
* The object that represents the operation.
*/
display?: OperationDisplay;
}
/**
* An interface representing Resource.
*/
export interface Resource 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.**
* Whether or not this is a data plane operation
*/
readonly id?: string;
isDataAction?: boolean;
/**
* The name of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
* The origin
*/
readonly name?: string;
origin?: 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.**
* Properties of the operation
*/
readonly type?: string;
}
/**
* The resource model definition for a ARM tracked top level resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The geo-location where the resource lives
*/
location: string;
}
/**
* SpatialAnchorsAccount Response.
*/
export interface SpatialAnchorsAccount extends TrackedResource {
/**
* 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;
}
/**
* The resource model definition for a ARM proxy resource. It will have everything other than
* required location and tags
*/
export interface ProxyResource extends Resource {
}
/**
* The resource model definition for a Azure Resource Manager resource with an etag.
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}
/**
* Developer Keys of account
*/
export interface 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;
properties?: OperationProperties;
}
/**
@ -196,35 +205,6 @@ export interface Identity {
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
*/
@ -256,6 +236,124 @@ export interface Sku {
capacity?: number;
}
/**
* Metadata pertaining to creation and last modification of the resource.
*/
export interface SystemData {
/**
* The identity that created the resource.
*/
createdBy?: string;
/**
* The type of identity that created the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
createdByType?: CreatedByType;
/**
* The timestamp of resource creation (UTC).
*/
createdAt?: Date;
/**
* The identity that last modified the resource.
*/
lastModifiedBy?: string;
/**
* The type of identity that last modified the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
lastModifiedByType?: CreatedByType;
/**
* The type of identity that last modified the resource.
*/
lastModifiedAt?: Date;
}
/**
* Common fields that are returned in the response for all Azure Resource Manager resources
* @summary Resource
*/
export interface Resource 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. E.g. "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 resource model definition for an Azure Resource Manager tracked top level resource which has
* 'tags' and a 'location'
* @summary Tracked Resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The geo-location where the resource lives
*/
location: string;
}
/**
* SpatialAnchorsAccount Response.
*/
export interface SpatialAnchorsAccount extends TrackedResource {
/**
* The name of the storage account associated with this accountId
*/
storageAccountName?: string;
/**
* 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;
/**
* The identity associated with this account
*/
identity?: Identity;
/**
* The plan associated with this account
*/
plan?: Identity;
/**
* The sku associated with this account
*/
sku?: Sku;
/**
* The kind of account, if supported
*/
kind?: Sku;
/**
* System metadata for this account
*/
systemData?: SystemData;
}
/**
* An interface representing ResourceModelWithAllowedPropertySetIdentity.
*/
export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {
}
/**
* An interface representing ResourceModelWithAllowedPropertySetSku.
*/
@ -302,7 +400,7 @@ export interface ResourceModelWithAllowedPropertySetPlan extends Plan {
*/
export interface ResourceModelWithAllowedPropertySet extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* 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.**
*/
@ -313,8 +411,8 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource {
*/
readonly name?: string;
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts..
* The type of the resource. E.g. "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;
@ -323,8 +421,8 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource {
*/
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
* 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.
*/
@ -353,6 +451,92 @@ export interface ResourceModelWithAllowedPropertySet extends BaseResource {
plan?: ResourceModelWithAllowedPropertySetPlan;
}
/**
* The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
* and a location
* @summary Proxy Resource
*/
export interface ProxyResource extends Resource {
}
/**
* The resource model definition for an Azure Resource Manager resource with an etag.
* @summary Entity Resource
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}
/**
* Developer Keys of account
*/
export interface 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;
}
/**
* RemoteRenderingAccount Response.
*/
export interface RemoteRenderingAccount extends TrackedResource {
/**
* The name of the storage account associated with this accountId
*/
storageAccountName?: string;
/**
* 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;
/**
* The identity associated with this account
*/
identity?: Identity;
/**
* The plan associated with this account
*/
plan?: Identity;
/**
* The sku associated with this account
*/
sku?: Sku;
/**
* The kind of account, if supported
*/
kind?: Sku;
/**
* System metadata for this account
*/
systemData?: SystemData;
}
/**
* An interface representing MixedRealityClientOptions.
*/
@ -399,14 +583,6 @@ export interface RemoteRenderingAccountPage extends Array<RemoteRenderingAccount
nextLink?: string;
}
/**
* Defines values for NameAvailability.
* Possible values include: 'true', 'false'
* @readonly
* @enum {string}
*/
export type NameAvailability = 'true' | 'false';
/**
* Defines values for NameUnavailableReason.
* Possible values include: 'Invalid', 'AlreadyExists'
@ -415,6 +591,14 @@ export type NameAvailability = 'true' | 'false';
*/
export type NameUnavailableReason = 'Invalid' | 'AlreadyExists';
/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned'
* @readonly
* @enum {string}
*/
export type ResourceIdentityType = 'SystemAssigned';
/**
* Defines values for SkuTier.
* Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
@ -424,12 +608,12 @@ export type NameUnavailableReason = 'Invalid' | 'AlreadyExists';
export type SkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium';
/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned'
* Defines values for CreatedByType.
* Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
* @readonly
* @enum {string}
*/
export type ResourceIdentityType = 'SystemAssigned';
export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
/**
* Contains response data for the list operation.

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

@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@ -46,7 +46,7 @@ export const CheckNameAvailabilityResponse: msRest.CompositeMapper = {
required: true,
serializedName: "nameAvailable",
type: {
name: "String"
name: "Boolean"
}
},
reason: {
@ -103,6 +103,171 @@ export const OperationDisplay: msRest.CompositeMapper = {
}
};
export const LogSpecification: msRest.CompositeMapper = {
serializedName: "LogSpecification",
type: {
name: "Composite",
className: "LogSpecification",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
displayName: {
serializedName: "displayName",
type: {
name: "String"
}
},
blobDuration: {
serializedName: "blobDuration",
type: {
name: "String"
}
}
}
}
};
export const MetricDimension: msRest.CompositeMapper = {
serializedName: "MetricDimension",
type: {
name: "Composite",
className: "MetricDimension",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
displayName: {
serializedName: "displayName",
type: {
name: "String"
}
},
internalName: {
serializedName: "internalName",
type: {
name: "String"
}
}
}
}
};
export const MetricSpecification: msRest.CompositeMapper = {
serializedName: "MetricSpecification",
type: {
name: "Composite",
className: "MetricSpecification",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
displayName: {
serializedName: "displayName",
type: {
name: "String"
}
},
displayDescription: {
serializedName: "displayDescription",
type: {
name: "String"
}
},
unit: {
serializedName: "unit",
type: {
name: "String"
}
},
aggregationType: {
serializedName: "aggregationType",
type: {
name: "String"
}
},
internalMetricName: {
serializedName: "internalMetricName",
type: {
name: "String"
}
},
dimensions: {
serializedName: "dimensions",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "MetricDimension"
}
}
}
}
}
}
};
export const ServiceSpecification: msRest.CompositeMapper = {
serializedName: "ServiceSpecification",
type: {
name: "Composite",
className: "ServiceSpecification",
modelProperties: {
logSpecifications: {
serializedName: "logSpecifications",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "LogSpecification"
}
}
}
},
metricSpecifications: {
serializedName: "metricSpecifications",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "MetricSpecification"
}
}
}
}
}
}
};
export const OperationProperties: msRest.CompositeMapper = {
serializedName: "OperationProperties",
type: {
name: "Composite",
className: "OperationProperties",
modelProperties: {
serviceSpecification: {
serializedName: "serviceSpecification",
type: {
name: "Composite",
className: "ServiceSpecification"
}
}
}
}
};
export const Operation: msRest.CompositeMapper = {
serializedName: "Operation",
type: {
@ -121,6 +286,151 @@ export const Operation: msRest.CompositeMapper = {
name: "Composite",
className: "OperationDisplay"
}
},
isDataAction: {
serializedName: "isDataAction",
type: {
name: "Boolean"
}
},
origin: {
serializedName: "origin",
type: {
name: "String"
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "OperationProperties"
}
}
}
}
};
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 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 SystemData: msRest.CompositeMapper = {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData",
modelProperties: {
createdBy: {
serializedName: "createdBy",
type: {
name: "String"
}
},
createdByType: {
serializedName: "createdByType",
type: {
name: "String"
}
},
createdAt: {
serializedName: "createdAt",
type: {
name: "DateTime"
}
},
lastModifiedBy: {
serializedName: "lastModifiedBy",
type: {
name: "String"
}
},
lastModifiedByType: {
serializedName: "lastModifiedByType",
type: {
name: "String"
}
},
lastModifiedAt: {
serializedName: "lastModifiedAt",
type: {
name: "DateTime"
}
}
}
}
@ -193,6 +503,12 @@ export const SpatialAnchorsAccount: msRest.CompositeMapper = {
className: "SpatialAnchorsAccount",
modelProperties: {
...TrackedResource.type.modelProperties,
storageAccountName: {
serializedName: "properties.storageAccountName",
type: {
name: "String"
}
},
accountId: {
readOnly: true,
serializedName: "properties.accountId",
@ -206,151 +522,40 @@ export const SpatialAnchorsAccount: msRest.CompositeMapper = {
type: {
name: "String"
}
}
}
}
};
export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
name: "Composite",
className: "ProxyResource",
modelProperties: {
...Resource.type.modelProperties
}
}
};
export const AzureEntityResource: msRest.CompositeMapper = {
serializedName: "AzureEntityResource",
type: {
name: "Composite",
className: "AzureEntityResource",
modelProperties: {
...Resource.type.modelProperties,
etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
export const AccountKeys: msRest.CompositeMapper = {
serializedName: "AccountKeys",
type: {
name: "Composite",
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"
className: "Identity"
}
},
accountId: {
readOnly: true,
serializedName: "properties.accountId",
plan: {
serializedName: "plan",
type: {
name: "String"
name: "Composite",
className: "Identity"
}
},
accountDomain: {
readOnly: true,
serializedName: "properties.accountDomain",
sku: {
serializedName: "sku",
type: {
name: "String"
name: "Composite",
className: "Sku"
}
},
kind: {
serializedName: "kind",
type: {
name: "Composite",
className: "Sku"
}
},
systemData: {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData"
}
}
}
@ -368,53 +573,6 @@ export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper
}
};
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: {
@ -571,6 +729,142 @@ export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = {
}
};
export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
name: "Composite",
className: "ProxyResource",
modelProperties: {
...Resource.type.modelProperties
}
}
};
export const AzureEntityResource: msRest.CompositeMapper = {
serializedName: "AzureEntityResource",
type: {
name: "Composite",
className: "AzureEntityResource",
modelProperties: {
...Resource.type.modelProperties,
etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
export const AccountKeys: msRest.CompositeMapper = {
serializedName: "AccountKeys",
type: {
name: "Composite",
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 RemoteRenderingAccount: msRest.CompositeMapper = {
serializedName: "RemoteRenderingAccount",
type: {
name: "Composite",
className: "RemoteRenderingAccount",
modelProperties: {
...TrackedResource.type.modelProperties,
storageAccountName: {
serializedName: "properties.storageAccountName",
type: {
name: "String"
}
},
accountId: {
readOnly: true,
serializedName: "properties.accountId",
type: {
name: "String"
}
},
accountDomain: {
readOnly: true,
serializedName: "properties.accountDomain",
type: {
name: "String"
}
},
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "Identity"
}
},
plan: {
serializedName: "plan",
type: {
name: "Composite",
className: "Identity"
}
},
sku: {
serializedName: "sku",
type: {
name: "Composite",
className: "Sku"
}
},
kind: {
serializedName: "kind",
type: {
name: "Composite",
className: "Sku"
}
},
systemData: {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData"
}
}
}
}
};
export const OperationPage: msRest.CompositeMapper = {
serializedName: "OperationPage",
type: {

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

@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@ -8,7 +8,12 @@
export {
CloudError,
LogSpecification,
MetricDimension,
MetricSpecification,
Operation,
OperationDisplay,
OperationPage
OperationPage,
OperationProperties,
ServiceSpecification
} from "../models/mappers";

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -35,25 +34,11 @@ export const accountName: msRest.OperationURLParameter = {
}
}
};
export const apiVersion0: msRest.OperationQueryParameter = {
export const apiVersion: 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"
}

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

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

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

@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@ -16,7 +16,6 @@ export {
Plan,
ProxyResource,
RemoteRenderingAccount,
RemoteRenderingAccountIdentity,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
@ -25,5 +24,6 @@ export {
Sku,
SpatialAnchorsAccount,
SpatialAnchorsAccountPage,
SystemData,
TrackedResource
} from "../models/mappers";

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.MixedReality/operations",
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -348,7 +347,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -372,7 +371,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
Parameters.resourceGroupName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -397,7 +396,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -421,7 +420,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -446,7 +445,7 @@ const updateOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -478,7 +477,7 @@ const createOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -513,7 +512,7 @@ const listKeysOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -538,7 +537,7 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -568,6 +567,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
@ -589,6 +591,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],

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

@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@ -348,7 +347,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -372,7 +371,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
Parameters.resourceGroupName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -397,7 +396,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -421,7 +420,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -446,7 +445,7 @@ const updateOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -478,7 +477,7 @@ const createOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -513,7 +512,7 @@ const listKeysOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -538,7 +537,7 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
@ -568,6 +567,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
@ -589,6 +591,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],