Sdk automation/@azure arm digitaltwins (#11820)
Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
This commit is contained in:
Родитель
383b4b0675
Коммит
d1dd09be1b
|
@ -2,7 +2,7 @@
|
|||
"name": "@azure/arm-digitaltwins",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "AzureDigitalTwinsManagementClient Library with typescript type definitions for node.js and browser.",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@azure/ms-rest-azure-js": "^2.0.1",
|
||||
"@azure/ms-rest-js": "^2.0.4",
|
||||
|
|
|
@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
|
|||
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
||||
|
||||
const packageName = "@azure/arm-digitaltwins";
|
||||
const packageVersion = "0.1.0";
|
||||
const packageVersion = "1.0.0";
|
||||
|
||||
export class AzureDigitalTwinsManagementClientContext extends msRestAzure.AzureServiceClient {
|
||||
credentials: msRest.ServiceClientCredentials;
|
||||
|
@ -44,7 +44,7 @@ export class AzureDigitalTwinsManagementClientContext extends msRestAzure.AzureS
|
|||
|
||||
super(credentials, options);
|
||||
|
||||
this.apiVersion = '2020-03-01-preview';
|
||||
this.apiVersion = '2020-10-31';
|
||||
this.acceptLanguage = 'en-US';
|
||||
this.longRunningOperationRetryTimeout = 30;
|
||||
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
|
||||
|
|
|
@ -14,10 +14,10 @@ export {
|
|||
DigitalTwinsEndpointResourceListResult,
|
||||
DigitalTwinsEndpointResourceProperties,
|
||||
DigitalTwinsResource,
|
||||
DigitalTwinsSkuInfo,
|
||||
ErrorDefinition,
|
||||
ErrorResponse,
|
||||
EventGrid,
|
||||
EventHub,
|
||||
ExternalResource,
|
||||
ServiceBus
|
||||
} from "../models/mappers";
|
||||
|
|
|
@ -17,10 +17,10 @@ export {
|
|||
DigitalTwinsEndpointResourceProperties,
|
||||
DigitalTwinsPatchDescription,
|
||||
DigitalTwinsResource,
|
||||
DigitalTwinsSkuInfo,
|
||||
ErrorDefinition,
|
||||
ErrorResponse,
|
||||
EventGrid,
|
||||
EventHub,
|
||||
ExternalResource,
|
||||
ServiceBus
|
||||
} from "../models/mappers";
|
||||
|
|
|
@ -11,12 +11,6 @@ import * as msRest from "@azure/ms-rest-js";
|
|||
|
||||
export { BaseResource, CloudError };
|
||||
|
||||
/**
|
||||
* Information about the SKU of the DigitalTwinsInstance.
|
||||
*/
|
||||
export interface DigitalTwinsSkuInfo {
|
||||
}
|
||||
|
||||
/**
|
||||
* The common properties of a DigitalTwinsInstance.
|
||||
*/
|
||||
|
@ -56,13 +50,13 @@ export interface DigitalTwinsDescription extends DigitalTwinsResource {
|
|||
*/
|
||||
readonly createdTime?: Date;
|
||||
/**
|
||||
* Time when DigitalTwinsInstance was created.
|
||||
* Time when DigitalTwinsInstance was updated.
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly lastUpdatedTime?: Date;
|
||||
/**
|
||||
* The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
|
||||
* 'Failed', 'Canceled'
|
||||
* 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving'
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
|
@ -153,6 +147,16 @@ export interface Operation {
|
|||
* Operation properties display
|
||||
*/
|
||||
display?: OperationDisplay;
|
||||
/**
|
||||
* The intended executor of the operation.
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly origin?: string;
|
||||
/**
|
||||
* If the operation is a data action (for data plane rbac).
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly isDataAction?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -173,10 +177,6 @@ export interface CheckNameResult {
|
|||
* Specifies a Boolean value that indicates if the name is available.
|
||||
*/
|
||||
nameAvailable?: boolean;
|
||||
/**
|
||||
* The name that was checked.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Message indicating an unavailable name due to a conflict, or a description of the naming rules
|
||||
* that are violated.
|
||||
|
@ -190,9 +190,9 @@ export interface CheckNameResult {
|
|||
}
|
||||
|
||||
/**
|
||||
* Definition of a Resource.
|
||||
* Definition of a resource.
|
||||
*/
|
||||
export interface ExternalResource {
|
||||
export interface ExternalResource extends BaseResource {
|
||||
/**
|
||||
* The resource identifier.
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
|
@ -225,7 +225,7 @@ export interface DigitalTwinsEndpointResourceProperties {
|
|||
endpointType: "DigitalTwinsEndpointResourceProperties";
|
||||
/**
|
||||
* The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
|
||||
* 'Failed', 'Canceled'
|
||||
* 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly provisioningState?: EndpointProvisioningState;
|
||||
|
@ -235,15 +235,15 @@ export interface DigitalTwinsEndpointResourceProperties {
|
|||
*/
|
||||
readonly createdTime?: Date;
|
||||
/**
|
||||
* The resource tags.
|
||||
* Dead letter storage secret. Will be obfuscated during read.
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
deadLetterSecret?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* DigitalTwinsInstance endpoint resource.
|
||||
*/
|
||||
export interface DigitalTwinsEndpointResource extends BaseResource {
|
||||
export interface DigitalTwinsEndpointResource extends ExternalResource {
|
||||
/**
|
||||
* DigitalTwinsInstance endpoint resource properties.
|
||||
*/
|
||||
|
@ -251,7 +251,7 @@ export interface DigitalTwinsEndpointResource extends BaseResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* properties related to servicebus.
|
||||
* Properties related to ServiceBus.
|
||||
*/
|
||||
export interface ServiceBus {
|
||||
/**
|
||||
|
@ -260,7 +260,7 @@ export interface ServiceBus {
|
|||
endpointType: "ServiceBus";
|
||||
/**
|
||||
* The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
|
||||
* 'Failed', 'Canceled'
|
||||
* 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly provisioningState?: EndpointProvisioningState;
|
||||
|
@ -270,21 +270,21 @@ export interface ServiceBus {
|
|||
*/
|
||||
readonly createdTime?: Date;
|
||||
/**
|
||||
* The resource tags.
|
||||
* Dead letter storage secret. Will be obfuscated during read.
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
deadLetterSecret?: string;
|
||||
/**
|
||||
* PrimaryConnectionString of the endpoint. Will be obfuscated during read
|
||||
* PrimaryConnectionString of the endpoint. Will be obfuscated during read.
|
||||
*/
|
||||
primaryConnectionString: string;
|
||||
/**
|
||||
* SecondaryConnectionString of the endpoint. Will be obfuscated during read
|
||||
* SecondaryConnectionString of the endpoint. Will be obfuscated during read.
|
||||
*/
|
||||
secondaryConnectionString: string;
|
||||
secondaryConnectionString?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* properties related to eventhub.
|
||||
* Properties related to EventHub.
|
||||
*/
|
||||
export interface EventHub {
|
||||
/**
|
||||
|
@ -293,7 +293,7 @@ export interface EventHub {
|
|||
endpointType: "EventHub";
|
||||
/**
|
||||
* The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
|
||||
* 'Failed', 'Canceled'
|
||||
* 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly provisioningState?: EndpointProvisioningState;
|
||||
|
@ -303,21 +303,21 @@ export interface EventHub {
|
|||
*/
|
||||
readonly createdTime?: Date;
|
||||
/**
|
||||
* The resource tags.
|
||||
* Dead letter storage secret. Will be obfuscated during read.
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
deadLetterSecret?: string;
|
||||
/**
|
||||
* PrimaryConnectionString of the endpoint. Will be obfuscated during read
|
||||
* PrimaryConnectionString of the endpoint. Will be obfuscated during read.
|
||||
*/
|
||||
connectionStringPrimaryKey: string;
|
||||
/**
|
||||
* SecondaryConnectionString of the endpoint. Will be obfuscated during read
|
||||
* SecondaryConnectionString of the endpoint. Will be obfuscated during read.
|
||||
*/
|
||||
connectionStringSecondaryKey: string;
|
||||
connectionStringSecondaryKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* properties related to eventgrid.
|
||||
* Properties related to EventGrid.
|
||||
*/
|
||||
export interface EventGrid {
|
||||
/**
|
||||
|
@ -326,7 +326,7 @@ export interface EventGrid {
|
|||
endpointType: "EventGrid";
|
||||
/**
|
||||
* The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
|
||||
* 'Failed', 'Canceled'
|
||||
* 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
|
||||
* **NOTE: This property will not be serialized. It can only be populated by the server.**
|
||||
*/
|
||||
readonly provisioningState?: EndpointProvisioningState;
|
||||
|
@ -336,21 +336,21 @@ export interface EventGrid {
|
|||
*/
|
||||
readonly createdTime?: Date;
|
||||
/**
|
||||
* The resource tags.
|
||||
* Dead letter storage secret. Will be obfuscated during read.
|
||||
*/
|
||||
tags?: { [propertyName: string]: string };
|
||||
deadLetterSecret?: string;
|
||||
/**
|
||||
* EventGrid Topic Endpoint
|
||||
*/
|
||||
topicEndpoint?: string;
|
||||
topicEndpoint: string;
|
||||
/**
|
||||
* EventGrid secondary accesskey. Will be obfuscated during read
|
||||
* EventGrid secondary accesskey. Will be obfuscated during read.
|
||||
*/
|
||||
accessKey1: string;
|
||||
/**
|
||||
* EventGrid secondary accesskey. Will be obfuscated during read
|
||||
* EventGrid secondary accesskey. Will be obfuscated during read.
|
||||
*/
|
||||
accessKey2: string;
|
||||
accessKey2?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -439,11 +439,12 @@ export interface OperationListResult extends Array<Operation> {
|
|||
|
||||
/**
|
||||
* Defines values for ProvisioningState.
|
||||
* Possible values include: 'Provisioning', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
|
||||
* Possible values include: 'Provisioning', 'Deleting', 'Succeeded', 'Failed', 'Canceled',
|
||||
* 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving'
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
*/
|
||||
export type ProvisioningState = 'Provisioning' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled';
|
||||
export type ProvisioningState = 'Provisioning' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleted' | 'Warning' | 'Suspending' | 'Restoring' | 'Moving';
|
||||
|
||||
/**
|
||||
* Defines values for Reason.
|
||||
|
@ -455,11 +456,12 @@ export type Reason = 'Invalid' | 'AlreadyExists';
|
|||
|
||||
/**
|
||||
* Defines values for EndpointProvisioningState.
|
||||
* Possible values include: 'Provisioning', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
|
||||
* Possible values include: 'Provisioning', 'Deleting', 'Succeeded', 'Failed', 'Canceled',
|
||||
* 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
*/
|
||||
export type EndpointProvisioningState = 'Provisioning' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled';
|
||||
export type EndpointProvisioningState = 'Provisioning' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleted' | 'Warning' | 'Suspending' | 'Restoring' | 'Moving' | 'Disabled';
|
||||
|
||||
/**
|
||||
* Contains response data for the get operation.
|
||||
|
|
|
@ -12,25 +12,6 @@ import * as msRest from "@azure/ms-rest-js";
|
|||
export const CloudError = CloudErrorMapper;
|
||||
export const BaseResource = BaseResourceMapper;
|
||||
|
||||
export const DigitalTwinsSkuInfo: msRest.CompositeMapper = {
|
||||
serializedName: "DigitalTwinsSkuInfo",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "DigitalTwinsSkuInfo",
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
isConstant: true,
|
||||
serializedName: "name",
|
||||
defaultValue: 'F1',
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const DigitalTwinsResource: msRest.CompositeMapper = {
|
||||
serializedName: "DigitalTwinsResource",
|
||||
type: {
|
||||
|
@ -48,7 +29,7 @@ export const DigitalTwinsResource: msRest.CompositeMapper = {
|
|||
readOnly: true,
|
||||
serializedName: "name",
|
||||
constraints: {
|
||||
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
||||
Pattern: /^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$/
|
||||
},
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -69,6 +50,7 @@ export const DigitalTwinsResource: msRest.CompositeMapper = {
|
|||
}
|
||||
},
|
||||
tags: {
|
||||
nullable: true,
|
||||
serializedName: "tags",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
|
@ -78,15 +60,6 @@ export const DigitalTwinsResource: msRest.CompositeMapper = {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
sku: {
|
||||
isConstant: true,
|
||||
serializedName: "sku",
|
||||
defaultValue: {},
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "DigitalTwinsSkuInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,6 +94,7 @@ export const DigitalTwinsDescription: msRest.CompositeMapper = {
|
|||
}
|
||||
},
|
||||
hostName: {
|
||||
nullable: true,
|
||||
readOnly: true,
|
||||
serializedName: "properties.hostName",
|
||||
type: {
|
||||
|
@ -138,6 +112,7 @@ export const DigitalTwinsPatchDescription: msRest.CompositeMapper = {
|
|||
className: "DigitalTwinsPatchDescription",
|
||||
modelProperties: {
|
||||
tags: {
|
||||
nullable: true,
|
||||
serializedName: "tags",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
|
@ -173,6 +148,7 @@ export const ErrorDefinition: msRest.CompositeMapper = {
|
|||
}
|
||||
},
|
||||
details: {
|
||||
nullable: true,
|
||||
readOnly: true,
|
||||
serializedName: "details",
|
||||
type: {
|
||||
|
@ -263,6 +239,21 @@ export const Operation: msRest.CompositeMapper = {
|
|||
name: "Composite",
|
||||
className: "OperationDisplay"
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
nullable: true,
|
||||
readOnly: true,
|
||||
serializedName: "origin",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
isDataAction: {
|
||||
readOnly: true,
|
||||
serializedName: "isDataAction",
|
||||
type: {
|
||||
name: "Boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -306,19 +297,15 @@ export const CheckNameResult: msRest.CompositeMapper = {
|
|||
name: "Boolean"
|
||||
}
|
||||
},
|
||||
name: {
|
||||
serializedName: "name",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
message: {
|
||||
nullable: true,
|
||||
serializedName: "message",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
reason: {
|
||||
nullable: true,
|
||||
serializedName: "reason",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -374,6 +361,7 @@ export const DigitalTwinsEndpointResourceProperties: msRest.CompositeMapper = {
|
|||
className: "DigitalTwinsEndpointResourceProperties",
|
||||
modelProperties: {
|
||||
provisioningState: {
|
||||
nullable: true,
|
||||
readOnly: true,
|
||||
serializedName: "provisioningState",
|
||||
type: {
|
||||
|
@ -381,21 +369,18 @@ export const DigitalTwinsEndpointResourceProperties: msRest.CompositeMapper = {
|
|||
}
|
||||
},
|
||||
createdTime: {
|
||||
nullable: true,
|
||||
readOnly: true,
|
||||
serializedName: "createdTime",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
serializedName: "tags",
|
||||
deadLetterSecret: {
|
||||
nullable: true,
|
||||
serializedName: "deadLetterSecret",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: {
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
endpointType: {
|
||||
|
@ -415,6 +400,7 @@ export const DigitalTwinsEndpointResource: msRest.CompositeMapper = {
|
|||
name: "Composite",
|
||||
className: "DigitalTwinsEndpointResource",
|
||||
modelProperties: {
|
||||
...ExternalResource.type.modelProperties,
|
||||
properties: {
|
||||
serializedName: "properties",
|
||||
type: {
|
||||
|
@ -437,13 +423,14 @@ export const ServiceBus: msRest.CompositeMapper = {
|
|||
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
||||
primaryConnectionString: {
|
||||
required: true,
|
||||
nullable: true,
|
||||
serializedName: "primaryConnectionString",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
secondaryConnectionString: {
|
||||
required: true,
|
||||
nullable: true,
|
||||
serializedName: "secondaryConnectionString",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -464,14 +451,15 @@ export const EventHub: msRest.CompositeMapper = {
|
|||
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
||||
connectionStringPrimaryKey: {
|
||||
required: true,
|
||||
serializedName: "connectionString-PrimaryKey",
|
||||
nullable: true,
|
||||
serializedName: "connectionStringPrimaryKey",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
connectionStringSecondaryKey: {
|
||||
required: true,
|
||||
serializedName: "connectionString-SecondaryKey",
|
||||
nullable: true,
|
||||
serializedName: "connectionStringSecondaryKey",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
|
@ -490,6 +478,7 @@ export const EventGrid: msRest.CompositeMapper = {
|
|||
modelProperties: {
|
||||
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
||||
topicEndpoint: {
|
||||
required: true,
|
||||
serializedName: "TopicEndpoint",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -497,13 +486,14 @@ export const EventGrid: msRest.CompositeMapper = {
|
|||
},
|
||||
accessKey1: {
|
||||
required: true,
|
||||
nullable: true,
|
||||
serializedName: "accessKey1",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
accessKey2: {
|
||||
required: true,
|
||||
nullable: true,
|
||||
serializedName: "accessKey2",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -520,6 +510,7 @@ export const DigitalTwinsDescriptionListResult: msRest.CompositeMapper = {
|
|||
className: "DigitalTwinsDescriptionListResult",
|
||||
modelProperties: {
|
||||
nextLink: {
|
||||
nullable: true,
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -548,6 +539,7 @@ export const DigitalTwinsEndpointResourceListResult: msRest.CompositeMapper = {
|
|||
className: "DigitalTwinsEndpointResourceListResult",
|
||||
modelProperties: {
|
||||
nextLink: {
|
||||
nullable: true,
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -576,6 +568,7 @@ export const OperationListResult: msRest.CompositeMapper = {
|
|||
className: "OperationListResult",
|
||||
modelProperties: {
|
||||
nextLink: {
|
||||
nullable: true,
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
|
|
|
@ -26,7 +26,7 @@ export const apiVersion: msRest.OperationQueryParameter = {
|
|||
required: true,
|
||||
isConstant: true,
|
||||
serializedName: "api-version",
|
||||
defaultValue: '2020-03-01-preview',
|
||||
defaultValue: '2020-10-31',
|
||||
constraints: {
|
||||
MinLength: 10
|
||||
},
|
||||
|
@ -41,9 +41,9 @@ export const endpointName: msRest.OperationURLParameter = {
|
|||
required: true,
|
||||
serializedName: "endpointName",
|
||||
constraints: {
|
||||
MaxLength: 64,
|
||||
MinLength: 1,
|
||||
Pattern: /^[A-Za-z0-9-._]{1,64}$/
|
||||
MaxLength: 49,
|
||||
MinLength: 2,
|
||||
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
||||
},
|
||||
type: {
|
||||
name: "String"
|
||||
|
@ -94,8 +94,9 @@ export const resourceName: msRest.OperationURLParameter = {
|
|||
required: true,
|
||||
serializedName: "resourceName",
|
||||
constraints: {
|
||||
MaxLength: 64,
|
||||
MinLength: 1
|
||||
MaxLength: 63,
|
||||
MinLength: 3,
|
||||
Pattern: /^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$/
|
||||
},
|
||||
type: {
|
||||
name: "String"
|
||||
|
|
|
@ -469,7 +469,6 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|||
200: {
|
||||
bodyMapper: Mappers.DigitalTwinsDescription
|
||||
},
|
||||
201: {},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
|
@ -492,7 +491,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|||
Parameters.acceptLanguage
|
||||
],
|
||||
responses: {
|
||||
200: {},
|
||||
200: {
|
||||
bodyMapper: Mappers.DigitalTwinsDescription
|
||||
},
|
||||
202: {
|
||||
bodyMapper: Mappers.DigitalTwinsDescription
|
||||
},
|
||||
|
|
|
@ -300,7 +300,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|||
Parameters.acceptLanguage
|
||||
],
|
||||
responses: {
|
||||
200: {},
|
||||
200: {
|
||||
bodyMapper: Mappers.DigitalTwinsEndpointResource
|
||||
},
|
||||
202: {
|
||||
bodyMapper: Mappers.DigitalTwinsEndpointResource
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче