Skip to content

Commit

Permalink
CodeGen from PR 18743 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 845c26ba3af5e6f2e4f3bbfffee623c1682e604c into 64d1545fcbb9c6b4f41e2fd1fd2f3e7cb421772d
  • Loading branch information
SDKAuto committed Jul 27, 2022
1 parent 283e862 commit 729880d
Show file tree
Hide file tree
Showing 13 changed files with 569 additions and 57 deletions.
32 changes: 22 additions & 10 deletions sdk/iothub/arm-iothub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# Release History

## 6.2.0-beta.1 (2022-07-27)

**Features**

## 6.1.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface EncryptionPropertiesDescription
- Added Interface IotHubPropertiesDeviceStreams
- Added Interface IotHubResourceCreateOrUpdateHeaders
- Added Interface IotHubResourceDeleteHeaders
- Added Interface IotHubResourceUpdateHeaders
- Added Interface KeyVaultKeyProperties
- Added Interface PrivateEndpointConnectionsDeleteHeaders
- Added Interface PrivateEndpointConnectionsUpdateHeaders
- Added Interface RootCertificateProperties
- Added Interface RoutingCosmosDBSqlApiProperties
- Interface IotHubProperties has a new optional parameter deviceStreams
- Interface IotHubProperties has a new optional parameter encryption
- Interface IotHubProperties has a new optional parameter rootCertificate
- Interface RoutingEndpoints has a new optional parameter cosmosDBSqlCollections
- Add parameters of IotHubResourceUpdateHeaders to TypeAlias IotHubResourceUpdateResponse
- Enum KnownRoutingSource has a new value DigitalTwinChangeEvents
- Enum KnownRoutingSource has a new value MqttBrokerMessages

## 6.1.2 (2022-06-14)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/iothub/arm-iothub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Use this API to manage the IoT hubs in your Azure subscription.

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

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/iothub/arm-iothub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "c6b48ac6b32da8f18d9228a1f565880b02c5191d",
"commit": "4ada777910d79792f57abbb618feefa0784a22f9",
"readme": "specification/iothub/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\\iothub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true",
"autorest_command": "",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-beta.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.1",
"use": "@autorest/typescript@6.0.0-alpha.19.20220425.1"
}
16 changes: 3 additions & 13 deletions sdk/iothub/arm-iothub/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 IotHubClient.",
"version": "6.1.3",
"version": "6.2.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -43,8 +43,6 @@
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
Expand Down Expand Up @@ -110,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview"
}
}
"autoPublish": true
}
75 changes: 74 additions & 1 deletion sdk/iothub/arm-iothub/review/arm-iothub.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ export type CreatedByType = string;
// @public
export type DefaultAction = string;

// @public
export interface EncryptionPropertiesDescription {
keySource?: string;
keyVaultProperties?: KeyVaultKeyProperties[];
}

// @public
export interface EndpointHealthData {
endpointId?: string;
Expand Down Expand Up @@ -373,11 +379,13 @@ export interface IotHubProperties {
authorizationPolicies?: SharedAccessSignatureAuthorizationRule[];
cloudToDevice?: CloudToDeviceProperties;
comments?: string;
deviceStreams?: IotHubPropertiesDeviceStreams;
disableDeviceSAS?: boolean;
disableLocalAuth?: boolean;
disableModuleSAS?: boolean;
enableDataResidency?: boolean;
enableFileUploadNotifications?: boolean;
encryption?: EncryptionPropertiesDescription;
eventHubEndpoints?: {
[propertyName: string]: EventHubProperties;
};
Expand All @@ -394,13 +402,19 @@ export interface IotHubProperties {
readonly provisioningState?: string;
publicNetworkAccess?: PublicNetworkAccess;
restrictOutboundNetworkAccess?: boolean;
rootCertificate?: RootCertificateProperties;
routing?: RoutingProperties;
readonly state?: string;
storageEndpoints?: {
[propertyName: string]: StorageEndpointProperties;
};
}

// @public
export interface IotHubPropertiesDeviceStreams {
streamingEndpoints?: string[];
}

// @public
export interface IotHubQuotaMetricInfo {
readonly currentValue?: number;
Expand Down Expand Up @@ -461,6 +475,11 @@ export interface IotHubResourceCreateEventHubConsumerGroupOptionalParams extends
// @public
export type IotHubResourceCreateEventHubConsumerGroupResponse = EventHubConsumerGroupInfo;

// @public
export interface IotHubResourceCreateOrUpdateHeaders {
azureAsyncOperation?: string;
}

// @public
export interface IotHubResourceCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
ifMatch?: string;
Expand All @@ -475,6 +494,11 @@ export type IotHubResourceCreateOrUpdateResponse = IotHubDescription;
export interface IotHubResourceDeleteEventHubConsumerGroupOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface IotHubResourceDeleteHeaders {
azureAsyncOperation?: string;
}

// @public
export interface IotHubResourceDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -659,14 +683,19 @@ export interface IotHubResourceTestRouteOptionalParams extends coreClient.Operat
// @public
export type IotHubResourceTestRouteResponse = TestRouteResult;

// @public
export interface IotHubResourceUpdateHeaders {
azureAsyncOperation?: string;
}

// @public
export interface IotHubResourceUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type IotHubResourceUpdateResponse = IotHubDescription;
export type IotHubResourceUpdateResponse = IotHubResourceUpdateHeaders & IotHubDescription;

// @public
export type IotHubScaleType = "Automatic" | "Manual" | "None";
Expand Down Expand Up @@ -731,6 +760,12 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail
// @public
export type JobType = string;

// @public
export interface KeyVaultKeyProperties {
identity?: ManagedIdentity;
keyIdentifier?: string;
}

// @public
export enum KnownAuthenticationType {
// (undocumented)
Expand Down Expand Up @@ -876,8 +911,12 @@ export enum KnownRoutingSource {
// (undocumented)
DeviceMessages = "DeviceMessages",
// (undocumented)
DigitalTwinChangeEvents = "DigitalTwinChangeEvents",
// (undocumented)
Invalid = "Invalid",
// (undocumented)
MqttBrokerMessages = "MqttBrokerMessages",
// (undocumented)
TwinChangeEvents = "TwinChangeEvents"
}

Expand Down Expand Up @@ -1014,6 +1053,11 @@ export interface PrivateEndpointConnections {
list(resourceGroupName: string, resourceName: string, options?: PrivateEndpointConnectionsListOptionalParams): Promise<PrivateEndpointConnectionsListResponse>;
}

// @public
export interface PrivateEndpointConnectionsDeleteHeaders {
azureAsyncOperation?: string;
}

// @public
export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand All @@ -1037,6 +1081,11 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient
// @public
export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnection[];

// @public
export interface PrivateEndpointConnectionsUpdateHeaders {
azureAsyncOperation?: string;
}

// @public
export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -1117,6 +1166,12 @@ export interface ResourceProviderCommonGetSubscriptionQuotaOptionalParams extend
// @public
export type ResourceProviderCommonGetSubscriptionQuotaResponse = UserSubscriptionQuotaListResult;

// @public
export interface RootCertificateProperties {
enableRootCertificateV2?: boolean;
readonly lastUpdatedTimeUtc?: Date;
}

// @public
export interface RouteCompilationError {
location?: RouteErrorRange;
Expand Down Expand Up @@ -1148,8 +1203,26 @@ export interface RouteProperties {
source: RoutingSource;
}

// @public
export interface RoutingCosmosDBSqlApiProperties {
authenticationType?: AuthenticationType;
collectionName: string;
databaseName: string;
endpointUri: string;
id?: string;
identity?: ManagedIdentity;
name: string;
partitionKeyName?: string;
partitionKeyTemplate?: string;
primaryKey?: string;
resourceGroup?: string;
secondaryKey?: string;
subscriptionId?: string;
}

// @public
export interface RoutingEndpoints {
cosmosDBSqlCollections?: RoutingCosmosDBSqlApiProperties[];
eventHubs?: RoutingEventHubProperties[];
serviceBusQueues?: RoutingServiceBusQueueEndpointProperties[];
serviceBusTopics?: RoutingServiceBusTopicEndpointProperties[];
Expand Down
4 changes: 2 additions & 2 deletions sdk/iothub/arm-iothub/src/iotHubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class IotHubClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-iothub/6.1.3`;
const packageDetails = `azsdk-js-arm-iothub/6.2.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -113,7 +113,7 @@ export class IotHubClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-07-02";
this.apiVersion = options.apiVersion || "2022-04-30-preview";
this.operations = new OperationsImpl(this);
this.iotHubResource = new IotHubResourceImpl(this);
this.resourceProviderCommon = new ResourceProviderCommonImpl(this);
Expand Down
Loading

0 comments on commit 729880d

Please sign in to comment.