Skip to content

Commit

Permalink
CodeGen from PR 20669 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4b6b20d25ca905995023ea51d8ed4f35c3ca465c into 904899a23a417768ce1ec1d5f89f33817f8ef8ad
  • Loading branch information
SDKAuto committed Sep 9, 2022
1 parent 9d9c3f8 commit 4bef7f4
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 138 deletions.
24 changes: 14 additions & 10 deletions sdk/digitaltwins/arm-digitaltwins/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 3.2.0 (2022-09-09)

**Features**

## 3.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface AzureDataExplorerConnectionProperties
- Added Interface ConnectionPropertiesPrivateLinkServiceConnectionState
- Added Interface DigitalTwinsDescription
- Added Interface DigitalTwinsEndpointResource
- Added Interface EventGrid
- Added Interface EventHub
- Added Interface ServiceBus
- Added Interface TimeSeriesDatabaseConnection
## 3.1.0 (2022-06-22)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/digitaltwins/arm-digitaltwins/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "93207d1a3cbabfd418273f4a6ace1f4984b138e5",
"commit": "6dbaa3729493bd6bead87669f0f9650a5225a4c3",
"readme": "specification/digitaltwins/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\digitaltwins\\resource-manager\\readme.md --use=@autorest/[email protected]beta.20 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md --use=@autorest/[email protected]rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"use": "@autorest/[email protected]beta.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected]rc.1"
}
17 changes: 4 additions & 13 deletions sdk/digitaltwins/arm-digitaltwins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureDigitalTwinsManagementClient.",
"version": "3.1.1",
"version": "3.2.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -98,8 +98,7 @@
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-digitaltwins?view=azure-node-preview"
}
}
"autoPublish": true
}
112 changes: 27 additions & 85 deletions sdk/digitaltwins/arm-digitaltwins/review/arm-digitaltwins.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import { PollOperationState } from '@azure/core-lro';
export type AuthenticationType = string;

// @public
export type AzureDataExplorerConnectionProperties = TimeSeriesDatabaseConnectionProperties & {
connectionType: "AzureDataExplorer";
adxResourceId: string;
adxEndpointUri: string;
export interface AzureDataExplorerConnectionProperties extends TimeSeriesDatabaseConnectionProperties {
adxDatabaseName: string;
adxEndpointUri: string;
adxResourceId: string;
adxTableName?: string;
connectionType: "AzureDataExplorer";
eventHubConsumerGroup?: string;
eventHubEndpointUri: string;
eventHubEntityPath: string;
eventHubNamespaceResourceId: string;
eventHubConsumerGroup?: string;
};
}

// @public (undocumented)
export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient {
Expand Down Expand Up @@ -78,7 +78,8 @@ export interface ConnectionProperties {
}

// @public
export type ConnectionPropertiesPrivateLinkServiceConnectionState = ConnectionState;
export interface ConnectionPropertiesPrivateLinkServiceConnectionState extends ConnectionState {
}

// @public
export type ConnectionPropertiesProvisioningState = string;
Expand Down Expand Up @@ -137,14 +138,14 @@ export interface DigitalTwinsDeleteOptionalParams extends coreClient.OperationOp
export type DigitalTwinsDeleteResponse = DigitalTwinsDescription;

// @public
export type DigitalTwinsDescription = DigitalTwinsResource & {
export interface DigitalTwinsDescription extends DigitalTwinsResource {
readonly createdTime?: Date;
readonly lastUpdatedTime?: Date;
readonly provisioningState?: ProvisioningState;
readonly hostName?: string;
readonly lastUpdatedTime?: Date;
privateEndpointConnections?: PrivateEndpointConnection[];
readonly provisioningState?: ProvisioningState;
publicNetworkAccess?: PublicNetworkAccess;
};
}

// @public
export interface DigitalTwinsDescriptionListResult {
Expand Down Expand Up @@ -202,9 +203,9 @@ export interface DigitalTwinsEndpointListOptionalParams extends coreClient.Opera
export type DigitalTwinsEndpointListResponse = DigitalTwinsEndpointResourceListResult;

// @public
export type DigitalTwinsEndpointResource = ExternalResource & {
export interface DigitalTwinsEndpointResource extends ExternalResource {
properties: DigitalTwinsEndpointResourcePropertiesUnion;
};
}

// @public
export interface DigitalTwinsEndpointResourceListResult {
Expand Down Expand Up @@ -325,21 +326,21 @@ export interface ErrorResponse {
}

// @public
export type EventGrid = DigitalTwinsEndpointResourceProperties & {
endpointType: "EventGrid";
topicEndpoint: string;
export interface EventGrid extends DigitalTwinsEndpointResourceProperties {
accessKey1: string | null;
accessKey2?: string;
};
endpointType: "EventGrid";
topicEndpoint: string;
}

// @public
export type EventHub = DigitalTwinsEndpointResourceProperties & {
endpointType: "EventHub";
export interface EventHub extends DigitalTwinsEndpointResourceProperties {
connectionStringPrimaryKey?: string;
connectionStringSecondaryKey?: string;
endpointType: "EventHub";
endpointUri?: string;
entityPath?: string;
};
}

// @public
export interface ExternalResource {
Expand Down Expand Up @@ -371,167 +372,108 @@ export interface GroupIdInformationResponse {

// @public
export enum KnownAuthenticationType {
// (undocumented)
IdentityBased = "IdentityBased",
// (undocumented)
KeyBased = "KeyBased"
}

// @public
export enum KnownConnectionPropertiesProvisioningState {
// (undocumented)
Approved = "Approved",
// (undocumented)
Disconnected = "Disconnected",
// (undocumented)
Pending = "Pending",
// (undocumented)
Rejected = "Rejected"
}

// @public
export enum KnownConnectionType {
// (undocumented)
AzureDataExplorer = "AzureDataExplorer"
}

// @public
export enum KnownCreatedByType {
// (undocumented)
Application = "Application",
// (undocumented)
Key = "Key",
// (undocumented)
ManagedIdentity = "ManagedIdentity",
// (undocumented)
User = "User"
}

// @public
export enum KnownDigitalTwinsIdentityType {
// (undocumented)
None = "None",
// (undocumented)
SystemAssigned = "SystemAssigned"
}

// @public
export enum KnownEndpointProvisioningState {
// (undocumented)
Canceled = "Canceled",
// (undocumented)
Deleted = "Deleted",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Failed = "Failed",
// (undocumented)
Moving = "Moving",
// (undocumented)
Provisioning = "Provisioning",
// (undocumented)
Restoring = "Restoring",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Suspending = "Suspending",
// (undocumented)
Updating = "Updating",
// (undocumented)
Warning = "Warning"
}

// @public
export enum KnownEndpointType {
// (undocumented)
EventGrid = "EventGrid",
// (undocumented)
EventHub = "EventHub",
// (undocumented)
ServiceBus = "ServiceBus"
}

// @public
export enum KnownPrivateLinkServiceConnectionStatus {
// (undocumented)
Approved = "Approved",
// (undocumented)
Disconnected = "Disconnected",
// (undocumented)
Pending = "Pending",
// (undocumented)
Rejected = "Rejected"
}

// @public
export enum KnownProvisioningState {
// (undocumented)
Canceled = "Canceled",
// (undocumented)
Deleted = "Deleted",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Moving = "Moving",
// (undocumented)
Provisioning = "Provisioning",
// (undocumented)
Restoring = "Restoring",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Suspending = "Suspending",
// (undocumented)
Updating = "Updating",
// (undocumented)
Warning = "Warning"
}

// @public
export enum KnownPublicNetworkAccess {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled"
}

// @public
export enum KnownReason {
// (undocumented)
AlreadyExists = "AlreadyExists",
// (undocumented)
Invalid = "Invalid"
}

// @public
export enum KnownTimeSeriesDatabaseConnectionState {
// (undocumented)
Canceled = "Canceled",
// (undocumented)
Deleted = "Deleted",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Failed = "Failed",
// (undocumented)
Moving = "Moving",
// (undocumented)
Provisioning = "Provisioning",
// (undocumented)
Restoring = "Restoring",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Suspending = "Suspending",
// (undocumented)
Updating = "Updating",
// (undocumented)
Warning = "Warning"
}

Expand Down Expand Up @@ -670,13 +612,13 @@ export type PublicNetworkAccess = string;
export type Reason = string;

// @public
export type ServiceBus = DigitalTwinsEndpointResourceProperties & {
export interface ServiceBus extends DigitalTwinsEndpointResourceProperties {
endpointType: "ServiceBus";
primaryConnectionString?: string;
secondaryConnectionString?: string;
endpointUri?: string;
entityPath?: string;
};
primaryConnectionString?: string;
secondaryConnectionString?: string;
}

// @public
export interface SystemData {
Expand All @@ -689,9 +631,9 @@ export interface SystemData {
}

// @public
export type TimeSeriesDatabaseConnection = ExternalResource & {
export interface TimeSeriesDatabaseConnection extends ExternalResource {
properties?: TimeSeriesDatabaseConnectionPropertiesUnion;
};
}

// @public
export interface TimeSeriesDatabaseConnectionListResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
credential: credentials
};

const packageDetails = `azsdk-js-arm-digitaltwins/3.1.1`;
const packageDetails = `azsdk-js-arm-digitaltwins/3.2.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -138,7 +138,7 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return item.replace(/(?<==).*$/, apiVersion);
return "api-version=" + apiVersion;
} else {
return item;
}
Expand Down
Loading

0 comments on commit 4bef7f4

Please sign in to comment.