Skip to content

Commit d09a971

Browse files
author
SDKAuto
committed
CodeGen from PR 21508 in Azure/azure-rest-api-specs
Merge 6cffed7d053dd50a1404c2f80dc3ca5a0d7bb59a into 32f95c52f44cd2e7002c8c7ff75ff6d894483b5a
1 parent 644b2b7 commit d09a971

File tree

13 files changed

+606
-54
lines changed

13 files changed

+606
-54
lines changed

sdk/iothub/arm-iothub/CHANGELOG.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
# Release History
2+
3+
## 6.3.0-beta.1 (2022-11-14)
4+
5+
**Features**
26

3-
## 6.2.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Interface EncryptionPropertiesDescription
8+
- Added Interface IotHubManualFailoverHeaders
9+
- Added Interface IotHubPropertiesDeviceStreams
10+
- Added Interface IotHubResourceCreateOrUpdateHeaders
11+
- Added Interface IotHubResourceDeleteHeaders
12+
- Added Interface IotHubResourceUpdateHeaders
13+
- Added Interface KeyVaultKeyProperties
14+
- Added Interface PrivateEndpointConnectionsDeleteHeaders
15+
- Added Interface PrivateEndpointConnectionsUpdateHeaders
16+
- Added Interface RootCertificateProperties
17+
- Added Interface RoutingCosmosDBSqlApiProperties
18+
- Interface IotHubProperties has a new optional parameter allowDataPlanePreviewFeatures
19+
- Interface IotHubProperties has a new optional parameter deviceStreams
20+
- Interface IotHubProperties has a new optional parameter encryption
21+
- Interface IotHubProperties has a new optional parameter rootCertificate
22+
- Interface RoutingEndpoints has a new optional parameter cosmosDBSqlCollections
23+
- Add parameters of IotHubResourceUpdateHeaders to TypeAlias IotHubResourceUpdateResponse
24+
- Enum KnownRoutingSource has a new value DigitalTwinChangeEvents
25+
- Enum KnownRoutingSource has a new value MqttBrokerMessages
26+
27+
1328
## 6.2.0 (2022-08-18)
1429

1530
**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) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview) |
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": "1dd79c416cdccde274113ec03b92b75069fad464",
2+
"commit": "d33cf91bc983498849e3ad89af8de486bc038c56",
33
"readme": "specification/iothub/resource-manager/readme.md",
4-
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\iothub\\resource-manager\\readme.md --use=@autorest/[email protected].1.20220727.1 --generate-sample=true",
4+
"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/iothub/resource-manager/readme.md --use=@autorest/[email protected].2",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].1.20220727.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.1",
7+
"use": "@autorest/[email protected].2"
88
}

sdk/iothub/arm-iothub/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for IotHubClient.",
6-
"version": "6.2.1",
6+
"version": "6.3.0-beta.1",
77
"engines": {
88
"node": ">=14.0.0"
99
},
@@ -109,13 +109,5 @@
109109
}
110110
]
111111
},
112-
"autoPublish": true,
113-
"//sampleConfiguration": {
114-
"productName": "",
115-
"productSlugs": [
116-
"azure"
117-
],
118-
"disableDocsMs": true,
119-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview"
120-
}
121-
}
112+
"autoPublish": true
113+
}

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ 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+
158164
// @public
159165
export interface EndpointHealthData {
160166
endpointId?: string;
@@ -351,6 +357,11 @@ export interface IotHubLocationDescription {
351357
role?: IotHubReplicaRoleType;
352358
}
353359

360+
// @public
361+
export interface IotHubManualFailoverHeaders {
362+
location?: string;
363+
}
364+
354365
// @public
355366
export interface IotHubManualFailoverOptionalParams extends coreClient.OperationOptions {
356367
resumeFrom?: string;
@@ -369,15 +380,18 @@ export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists";
369380

370381
// @public
371382
export interface IotHubProperties {
383+
allowDataPlanePreviewFeatures?: boolean;
372384
allowedFqdnList?: string[];
373385
authorizationPolicies?: SharedAccessSignatureAuthorizationRule[];
374386
cloudToDevice?: CloudToDeviceProperties;
375387
comments?: string;
388+
deviceStreams?: IotHubPropertiesDeviceStreams;
376389
disableDeviceSAS?: boolean;
377390
disableLocalAuth?: boolean;
378391
disableModuleSAS?: boolean;
379392
enableDataResidency?: boolean;
380393
enableFileUploadNotifications?: boolean;
394+
encryption?: EncryptionPropertiesDescription;
381395
eventHubEndpoints?: {
382396
[propertyName: string]: EventHubProperties;
383397
};
@@ -394,13 +408,19 @@ export interface IotHubProperties {
394408
readonly provisioningState?: string;
395409
publicNetworkAccess?: PublicNetworkAccess;
396410
restrictOutboundNetworkAccess?: boolean;
411+
rootCertificate?: RootCertificateProperties;
397412
routing?: RoutingProperties;
398413
readonly state?: string;
399414
storageEndpoints?: {
400415
[propertyName: string]: StorageEndpointProperties;
401416
};
402417
}
403418

419+
// @public
420+
export interface IotHubPropertiesDeviceStreams {
421+
streamingEndpoints?: string[];
422+
}
423+
404424
// @public
405425
export interface IotHubQuotaMetricInfo {
406426
readonly currentValue?: number;
@@ -461,6 +481,11 @@ export interface IotHubResourceCreateEventHubConsumerGroupOptionalParams extends
461481
// @public
462482
export type IotHubResourceCreateEventHubConsumerGroupResponse = EventHubConsumerGroupInfo;
463483

484+
// @public
485+
export interface IotHubResourceCreateOrUpdateHeaders {
486+
azureAsyncOperation?: string;
487+
}
488+
464489
// @public
465490
export interface IotHubResourceCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
466491
ifMatch?: string;
@@ -475,6 +500,11 @@ export type IotHubResourceCreateOrUpdateResponse = IotHubDescription;
475500
export interface IotHubResourceDeleteEventHubConsumerGroupOptionalParams extends coreClient.OperationOptions {
476501
}
477502

503+
// @public
504+
export interface IotHubResourceDeleteHeaders {
505+
azureAsyncOperation?: string;
506+
}
507+
478508
// @public
479509
export interface IotHubResourceDeleteOptionalParams extends coreClient.OperationOptions {
480510
resumeFrom?: string;
@@ -659,14 +689,19 @@ export interface IotHubResourceTestRouteOptionalParams extends coreClient.Operat
659689
// @public
660690
export type IotHubResourceTestRouteResponse = TestRouteResult;
661691

692+
// @public
693+
export interface IotHubResourceUpdateHeaders {
694+
azureAsyncOperation?: string;
695+
}
696+
662697
// @public
663698
export interface IotHubResourceUpdateOptionalParams extends coreClient.OperationOptions {
664699
resumeFrom?: string;
665700
updateIntervalInMs?: number;
666701
}
667702

668703
// @public
669-
export type IotHubResourceUpdateResponse = IotHubDescription;
704+
export type IotHubResourceUpdateResponse = IotHubResourceUpdateHeaders & IotHubDescription;
670705

671706
// @public
672707
export type IotHubScaleType = "Automatic" | "Manual" | "None";
@@ -731,6 +766,12 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail
731766
// @public
732767
export type JobType = string;
733768

769+
// @public
770+
export interface KeyVaultKeyProperties {
771+
identity?: ManagedIdentity;
772+
keyIdentifier?: string;
773+
}
774+
734775
// @public
735776
export enum KnownAuthenticationType {
736777
IdentityBased = "identityBased",
@@ -828,7 +869,9 @@ export enum KnownRoutingSource {
828869
DeviceJobLifecycleEvents = "DeviceJobLifecycleEvents",
829870
DeviceLifecycleEvents = "DeviceLifecycleEvents",
830871
DeviceMessages = "DeviceMessages",
872+
DigitalTwinChangeEvents = "DigitalTwinChangeEvents",
831873
Invalid = "Invalid",
874+
MqttBrokerMessages = "MqttBrokerMessages",
832875
TwinChangeEvents = "TwinChangeEvents"
833876
}
834877

@@ -959,6 +1002,11 @@ export interface PrivateEndpointConnections {
9591002
list(resourceGroupName: string, resourceName: string, options?: PrivateEndpointConnectionsListOptionalParams): Promise<PrivateEndpointConnectionsListResponse>;
9601003
}
9611004

1005+
// @public
1006+
export interface PrivateEndpointConnectionsDeleteHeaders {
1007+
azureAsyncOperation?: string;
1008+
}
1009+
9621010
// @public
9631011
export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
9641012
resumeFrom?: string;
@@ -982,6 +1030,11 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient
9821030
// @public
9831031
export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnection[];
9841032

1033+
// @public
1034+
export interface PrivateEndpointConnectionsUpdateHeaders {
1035+
azureAsyncOperation?: string;
1036+
}
1037+
9851038
// @public
9861039
export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {
9871040
resumeFrom?: string;
@@ -1062,6 +1115,12 @@ export interface ResourceProviderCommonGetSubscriptionQuotaOptionalParams extend
10621115
// @public
10631116
export type ResourceProviderCommonGetSubscriptionQuotaResponse = UserSubscriptionQuotaListResult;
10641117

1118+
// @public
1119+
export interface RootCertificateProperties {
1120+
enableRootCertificateV2?: boolean;
1121+
readonly lastUpdatedTimeUtc?: Date;
1122+
}
1123+
10651124
// @public
10661125
export interface RouteCompilationError {
10671126
location?: RouteErrorRange;
@@ -1093,8 +1152,26 @@ export interface RouteProperties {
10931152
source: RoutingSource;
10941153
}
10951154

1155+
// @public
1156+
export interface RoutingCosmosDBSqlApiProperties {
1157+
authenticationType?: AuthenticationType;
1158+
collectionName: string;
1159+
databaseName: string;
1160+
endpointUri: string;
1161+
id?: string;
1162+
identity?: ManagedIdentity;
1163+
name: string;
1164+
partitionKeyName?: string;
1165+
partitionKeyTemplate?: string;
1166+
primaryKey?: string;
1167+
resourceGroup?: string;
1168+
secondaryKey?: string;
1169+
subscriptionId?: string;
1170+
}
1171+
10961172
// @public
10971173
export interface RoutingEndpoints {
1174+
cosmosDBSqlCollections?: RoutingCosmosDBSqlApiProperties[];
10981175
eventHubs?: RoutingEventHubProperties[];
10991176
serviceBusQueues?: RoutingServiceBusQueueEndpointProperties[];
11001177
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.2.1`;
69+
const packageDetails = `azsdk-js-arm-iothub/6.3.0-beta.1`;
7070
const userAgentPrefix =
7171
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7272
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -120,7 +120,7 @@ export class IotHubClient extends coreClient.ServiceClient {
120120

121121
// Assigning values to Constant parameters
122122
this.$host = options.$host || "https://management.azure.com";
123-
this.apiVersion = options.apiVersion || "2021-07-02";
123+
this.apiVersion = options.apiVersion || "2022-11-01-preview";
124124
this.operations = new OperationsImpl(this);
125125
this.iotHubResource = new IotHubResourceImpl(this);
126126
this.resourceProviderCommon = new ResourceProviderCommonImpl(this);

0 commit comments

Comments
 (0)