diff --git a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClientContext.ts b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClientContext.ts index 73126fd8cb01..4f358a3bbbc5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClientContext.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClientContext.ts @@ -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"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsEndpointMappers.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsEndpointMappers.ts index 7c49775f78ca..055f00f52b58 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsEndpointMappers.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsEndpointMappers.ts @@ -14,10 +14,10 @@ export { DigitalTwinsEndpointResourceListResult, DigitalTwinsEndpointResourceProperties, DigitalTwinsResource, - DigitalTwinsSkuInfo, ErrorDefinition, ErrorResponse, EventGrid, EventHub, + ExternalResource, ServiceBus } from "../models/mappers"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsMappers.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsMappers.ts index 7feda83f1195..81bb0227c51f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsMappers.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/digitalTwinsMappers.ts @@ -17,10 +17,10 @@ export { DigitalTwinsEndpointResourceProperties, DigitalTwinsPatchDescription, DigitalTwinsResource, - DigitalTwinsSkuInfo, ErrorDefinition, ErrorResponse, EventGrid, EventHub, + ExternalResource, ServiceBus } from "../models/mappers"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts index 08d31c877a90..01ad3d820724 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts @@ -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 { /** * 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. diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts index 7adcd8e20b59..61b298b8d66b 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts @@ -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}(?