Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-iothub] Adding new API version 2022-11-01-preview #2851

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions sdk/iothub/arm-iothub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# Release History

## 6.3.0-beta.1 (2022-11-14)

**Features**

## 6.2.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface EncryptionPropertiesDescription
- Added Interface IotHubManualFailoverHeaders
- 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 allowDataPlanePreviewFeatures
- 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.2.0 (2022-08-18)

**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": "1dd79c416cdccde274113ec03b92b75069fad464",
"commit": "d33cf91bc983498849e3ad89af8de486bc038c56",
"readme": "specification/iothub/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.1",
"use": "@autorest/[email protected].2"
}
14 changes: 3 additions & 11 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.2.1",
"version": "6.3.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -109,13 +109,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
}
79 changes: 78 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 @@ -351,6 +357,11 @@ export interface IotHubLocationDescription {
role?: IotHubReplicaRoleType;
}

// @public
export interface IotHubManualFailoverHeaders {
location?: string;
}

// @public
export interface IotHubManualFailoverOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand All @@ -369,15 +380,18 @@ export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists";

// @public
export interface IotHubProperties {
allowDataPlanePreviewFeatures?: boolean;
allowedFqdnList?: string[];
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 +408,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 +481,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 +500,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 +689,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 +766,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 {
IdentityBased = "identityBased",
Expand Down Expand Up @@ -828,7 +869,9 @@ export enum KnownRoutingSource {
DeviceJobLifecycleEvents = "DeviceJobLifecycleEvents",
DeviceLifecycleEvents = "DeviceLifecycleEvents",
DeviceMessages = "DeviceMessages",
DigitalTwinChangeEvents = "DigitalTwinChangeEvents",
Invalid = "Invalid",
MqttBrokerMessages = "MqttBrokerMessages",
TwinChangeEvents = "TwinChangeEvents"
}

Expand Down Expand Up @@ -959,6 +1002,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 @@ -982,6 +1030,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 @@ -1062,6 +1115,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 @@ -1093,8 +1152,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.2.1`;
const packageDetails = `azsdk-js-arm-iothub/6.3.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -120,7 +120,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-11-01-preview";
this.operations = new OperationsImpl(this);
this.iotHubResource = new IotHubResourceImpl(this);
this.resourceProviderCommon = new ResourceProviderCommonImpl(this);
Expand Down
Loading