Skip to content

Commit 967e2f6

Browse files
author
SDKAuto
committed
CodeGen from PR 25460 in Azure/azure-rest-api-specs
Merge 60c4df51a4f89db2f46b31aedd4cdb63e249fc32 into ad6484fee29013ab0b3619217970b106a1f44cf0
1 parent 81b73f3 commit 967e2f6

File tree

14 files changed

+122
-418
lines changed

14 files changed

+122
-418
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/iothub/arm-iothub/CHANGELOG.md

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,17 @@
11
# Release History
2-
3-
## 6.3.0-beta.3 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 6.3.0-beta.2 (2023-04-06)
2+
3+
## 6.3.0 (2023-08-23)
144

155
**Features**
166

17-
- Added Interface EncryptionPropertiesDescription
187
- Added Interface IotHubManualFailoverHeaders
19-
- Added Interface IotHubPropertiesDeviceStreams
20-
- Added Interface IotHubResourceCreateOrUpdateHeaders
218
- Added Interface IotHubResourceDeleteHeaders
22-
- Added Interface IotHubResourceUpdateHeaders
23-
- Added Interface KeyVaultKeyProperties
249
- Added Interface PrivateEndpointConnectionsDeleteHeaders
25-
- Added Interface PrivateEndpointConnectionsUpdateHeaders
26-
- Added Interface RootCertificateProperties
2710
- Added Interface RoutingCosmosDBSqlApiProperties
28-
- Added Type Alias IpVersion
29-
- Interface IotHubProperties has a new optional parameter deviceStreams
30-
- Interface IotHubProperties has a new optional parameter encryption
31-
- Interface IotHubProperties has a new optional parameter ipVersion
32-
- Interface IotHubProperties has a new optional parameter rootCertificate
33-
- Interface RoutingEndpoints has a new optional parameter cosmosDBSqlCollections
34-
- Add parameters of IotHubResourceUpdateHeaders to TypeAlias IotHubResourceUpdateResponse
35-
- Added Enum KnownIpVersion
36-
- Enum KnownRoutingSource has a new value DigitalTwinChangeEvents
37-
- Enum KnownRoutingSource has a new value MqttBrokerMessages
11+
- Interface RoutingEndpoints has a new optional parameter cosmosDBSqlContainers
3812
- Added function getContinuationToken
3913

40-
## 6.3.0-beta.1 (2022-12-06)
4114

42-
**Features**
43-
44-
- Added Interface EncryptionPropertiesDescription
45-
- Added Interface IotHubPropertiesDeviceStreams
46-
- Added Interface IotHubResourceCreateOrUpdateHeaders
47-
- Added Interface IotHubResourceDeleteHeaders
48-
- Added Interface IotHubResourceUpdateHeaders
49-
- Added Interface KeyVaultKeyProperties
50-
- Added Interface PrivateEndpointConnectionsDeleteHeaders
51-
- Added Interface PrivateEndpointConnectionsUpdateHeaders
52-
- Added Interface RootCertificateProperties
53-
- Added Interface RoutingCosmosDBSqlApiProperties
54-
- Interface IotHubProperties has a new optional parameter deviceStreams
55-
- Interface IotHubProperties has a new optional parameter encryption
56-
- Interface IotHubProperties has a new optional parameter rootCertificate
57-
- Interface RoutingEndpoints has a new optional parameter cosmosDBSqlCollections
58-
- Add parameters of IotHubResourceUpdateHeaders to TypeAlias IotHubResourceUpdateResponse
59-
- Enum KnownRoutingSource has a new value DigitalTwinChangeEvents
60-
- Enum KnownRoutingSource has a new value MqttBrokerMessages
61-
6215
## 6.2.0 (2022-08-18)
6316

6417
**Features**

sdk/iothub/arm-iothub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use this API to manage the IoT hubs in your Azure subscription.
66

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iothub/arm-iothub) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-iothub) |
9-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iothub) |
1010
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1111

1212
## Getting started

sdk/iothub/arm-iothub/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "8725e0700974d2c8cba436b5696728ebc5a80f1b",
2+
"commit": "fa720d560a43fde8264d2a6d9d8407b1464e6c12",
33
"readme": "specification/iothub/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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\\iothub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --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/iothub/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
7-
"use": "@autorest/typescript@6.0.0-rc.10"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/iothub/arm-iothub/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for IotHubClient.",
6-
"version": "6.3.0-beta.3",
6+
"version": "6.3.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.0",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.8.0",
16+
"@azure/core-rest-pipeline": "^1.12.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -48,6 +48,7 @@
4848
"chai": "^4.2.0",
4949
"cross-env": "^7.0.2",
5050
"@types/node": "^14.0.0",
51+
"ts-node": "^10.0.0",
5152
"@azure/dev-tool": "^1.0.0"
5253
},
5354
"repository": {
@@ -111,13 +112,5 @@
111112
]
112113
},
113114
"autoPublish": true,
114-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iothub/arm-iothub",
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview"
122-
}
123-
}
115+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iothub/arm-iothub"
116+
}

sdk/iothub/arm-iothub/review/arm-iothub.api.md

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,6 @@ export type CreatedByType = string;
155155
// @public
156156
export type DefaultAction = string;
157157

158-
// @public
159-
export interface EncryptionPropertiesDescription {
160-
keySource?: string;
161-
keyVaultProperties?: KeyVaultKeyProperties[];
162-
}
163-
164158
// @public
165159
export interface EndpointHealthData {
166160
endpointId?: string;
@@ -389,20 +383,17 @@ export interface IotHubProperties {
389383
authorizationPolicies?: SharedAccessSignatureAuthorizationRule[];
390384
cloudToDevice?: CloudToDeviceProperties;
391385
comments?: string;
392-
deviceStreams?: IotHubPropertiesDeviceStreams;
393386
disableDeviceSAS?: boolean;
394387
disableLocalAuth?: boolean;
395388
disableModuleSAS?: boolean;
396389
enableDataResidency?: boolean;
397390
enableFileUploadNotifications?: boolean;
398-
encryption?: EncryptionPropertiesDescription;
399391
eventHubEndpoints?: {
400392
[propertyName: string]: EventHubProperties;
401393
};
402394
features?: Capabilities;
403395
readonly hostName?: string;
404396
ipFilterRules?: IpFilterRule[];
405-
ipVersion?: IpVersion;
406397
readonly locations?: IotHubLocationDescription[];
407398
messagingEndpoints?: {
408399
[propertyName: string]: MessagingEndpointProperties;
@@ -413,19 +404,13 @@ export interface IotHubProperties {
413404
readonly provisioningState?: string;
414405
publicNetworkAccess?: PublicNetworkAccess;
415406
restrictOutboundNetworkAccess?: boolean;
416-
rootCertificate?: RootCertificateProperties;
417407
routing?: RoutingProperties;
418408
readonly state?: string;
419409
storageEndpoints?: {
420410
[propertyName: string]: StorageEndpointProperties;
421411
};
422412
}
423413

424-
// @public
425-
export interface IotHubPropertiesDeviceStreams {
426-
streamingEndpoints?: string[];
427-
}
428-
429414
// @public
430415
export interface IotHubQuotaMetricInfo {
431416
readonly currentValue?: number;
@@ -486,11 +471,6 @@ export interface IotHubResourceCreateEventHubConsumerGroupOptionalParams extends
486471
// @public
487472
export type IotHubResourceCreateEventHubConsumerGroupResponse = EventHubConsumerGroupInfo;
488473

489-
// @public
490-
export interface IotHubResourceCreateOrUpdateHeaders {
491-
azureAsyncOperation?: string;
492-
}
493-
494474
// @public
495475
export interface IotHubResourceCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
496476
ifMatch?: string;
@@ -508,6 +488,8 @@ export interface IotHubResourceDeleteEventHubConsumerGroupOptionalParams extends
508488
// @public
509489
export interface IotHubResourceDeleteHeaders {
510490
azureAsyncOperation?: string;
491+
// (undocumented)
492+
location?: string;
511493
}
512494

513495
// @public
@@ -694,19 +676,14 @@ export interface IotHubResourceTestRouteOptionalParams extends coreClient.Operat
694676
// @public
695677
export type IotHubResourceTestRouteResponse = TestRouteResult;
696678

697-
// @public
698-
export interface IotHubResourceUpdateHeaders {
699-
azureAsyncOperation?: string;
700-
}
701-
702679
// @public
703680
export interface IotHubResourceUpdateOptionalParams extends coreClient.OperationOptions {
704681
resumeFrom?: string;
705682
updateIntervalInMs?: number;
706683
}
707684

708685
// @public
709-
export type IotHubResourceUpdateResponse = IotHubResourceUpdateHeaders & IotHubDescription;
686+
export type IotHubResourceUpdateResponse = IotHubDescription;
710687

711688
// @public
712689
export type IotHubScaleType = "Automatic" | "Manual" | "None";
@@ -747,9 +724,6 @@ export interface IpFilterRule {
747724
ipMask: string;
748725
}
749726

750-
// @public
751-
export type IpVersion = string;
752-
753727
// @public
754728
export interface JobResponse {
755729
readonly endTimeUtc?: Date;
@@ -774,12 +748,6 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail
774748
// @public
775749
export type JobType = string;
776750

777-
// @public
778-
export interface KeyVaultKeyProperties {
779-
identity?: ManagedIdentity;
780-
keyIdentifier?: string;
781-
}
782-
783751
// @public
784752
export enum KnownAuthenticationType {
785753
IdentityBased = "identityBased",
@@ -832,13 +800,6 @@ export enum KnownIotHubSku {
832800
S3 = "S3"
833801
}
834802

835-
// @public
836-
export enum KnownIpVersion {
837-
Ipv4 = "ipv4",
838-
Ipv4Ipv6 = "ipv4ipv6",
839-
Ipv6 = "ipv6"
840-
}
841-
842803
// @public
843804
export enum KnownJobType {
844805
Backup = "backup",
@@ -884,9 +845,7 @@ export enum KnownRoutingSource {
884845
DeviceJobLifecycleEvents = "DeviceJobLifecycleEvents",
885846
DeviceLifecycleEvents = "DeviceLifecycleEvents",
886847
DeviceMessages = "DeviceMessages",
887-
DigitalTwinChangeEvents = "DigitalTwinChangeEvents",
888848
Invalid = "Invalid",
889-
MqttBrokerMessages = "MqttBrokerMessages",
890849
TwinChangeEvents = "TwinChangeEvents"
891850
}
892851

@@ -1020,6 +979,8 @@ export interface PrivateEndpointConnections {
1020979
// @public
1021980
export interface PrivateEndpointConnectionsDeleteHeaders {
1022981
azureAsyncOperation?: string;
982+
// (undocumented)
983+
location?: string;
1023984
}
1024985

1025986
// @public
@@ -1045,11 +1006,6 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient
10451006
// @public
10461007
export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnection[];
10471008

1048-
// @public
1049-
export interface PrivateEndpointConnectionsUpdateHeaders {
1050-
azureAsyncOperation?: string;
1051-
}
1052-
10531009
// @public
10541010
export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {
10551011
resumeFrom?: string;
@@ -1130,12 +1086,6 @@ export interface ResourceProviderCommonGetSubscriptionQuotaOptionalParams extend
11301086
// @public
11311087
export type ResourceProviderCommonGetSubscriptionQuotaResponse = UserSubscriptionQuotaListResult;
11321088

1133-
// @public
1134-
export interface RootCertificateProperties {
1135-
enableRootCertificateV2?: boolean;
1136-
readonly lastUpdatedTimeUtc?: Date;
1137-
}
1138-
11391089
// @public
11401090
export interface RouteCompilationError {
11411091
location?: RouteErrorRange;
@@ -1170,10 +1120,10 @@ export interface RouteProperties {
11701120
// @public
11711121
export interface RoutingCosmosDBSqlApiProperties {
11721122
authenticationType?: AuthenticationType;
1173-
collectionName: string;
1123+
containerName: string;
11741124
databaseName: string;
11751125
endpointUri: string;
1176-
id?: string;
1126+
readonly id?: string;
11771127
identity?: ManagedIdentity;
11781128
name: string;
11791129
partitionKeyName?: string;
@@ -1186,7 +1136,7 @@ export interface RoutingCosmosDBSqlApiProperties {
11861136

11871137
// @public
11881138
export interface RoutingEndpoints {
1189-
cosmosDBSqlCollections?: RoutingCosmosDBSqlApiProperties[];
1139+
cosmosDBSqlContainers?: RoutingCosmosDBSqlApiProperties[];
11901140
eventHubs?: RoutingEventHubProperties[];
11911141
serviceBusQueues?: RoutingServiceBusQueueEndpointProperties[];
11921142
serviceBusTopics?: RoutingServiceBusTopicEndpointProperties[];

sdk/iothub/arm-iothub/src/iotHubClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class IotHubClient extends coreClient.ServiceClient {
6666
credential: credentials
6767
};
6868

69-
const packageDetails = `azsdk-js-arm-iothub/6.3.0-beta.3`;
69+
const packageDetails = `azsdk-js-arm-iothub/6.3.0`;
7070
const userAgentPrefix =
7171
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7272
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -119,7 +119,7 @@ export class IotHubClient extends coreClient.ServiceClient {
119119

120120
// Assigning values to Constant parameters
121121
this.$host = options.$host || "https://management.azure.com";
122-
this.apiVersion = options.apiVersion || "2022-11-15-preview";
122+
this.apiVersion = options.apiVersion || "2023-06-30";
123123
this.operations = new OperationsImpl(this);
124124
this.iotHubResource = new IotHubResourceImpl(this);
125125
this.resourceProviderCommon = new ResourceProviderCommonImpl(this);

0 commit comments

Comments
 (0)