Skip to content

Commit

Permalink
Generated from f05eef4a3235f304777a2a1489423c6bb11335e9 (#199)
Browse files Browse the repository at this point in the history
Update iothub.json
  • Loading branch information
openapi-sdkautomation[bot] authored and SDK Automation committed Sep 12, 2019
1 parent 36efdf9 commit 2e07f08
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 116 deletions.
2 changes: 2 additions & 0 deletions sdk/iothub/arm-iothub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/iothub/arm-iothub/README.png)
6 changes: 3 additions & 3 deletions sdk/iothub/arm-iothub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/iothub/arm-iothub",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/iothub/arm-iothub/src/iotHubClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2019-03-22-preview';
this.apiVersion = '2019-03-22';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
3 changes: 1 addition & 2 deletions sdk/iothub/arm-iothub/src/models/certificatesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ export {
CertificateVerificationDescription,
CertificateWithNonceDescription,
CloudToDeviceProperties,
EnrichmentProperties,
ErrorDetails,
EventHubConsumerGroupInfo,
EventHubProperties,
FallbackRouteProperties,
FeedbackProperties,
IotHubDescription,
IotHubLocationDescription,
IotHubProperties,
IotHubPropertiesDeviceStreams,
IotHubSkuInfo,
IpFilterRule,
MessagingEndpointProperties,
Expand Down
55 changes: 24 additions & 31 deletions sdk/iothub/arm-iothub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,24 +474,6 @@ export interface FallbackRouteProperties {
isEnabled: boolean;
}

/**
* The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.
*/
export interface EnrichmentProperties {
/**
* The key or name for the enrichment property.
*/
key: string;
/**
* The value for the enrichment property.
*/
value: string;
/**
* The list of endpoints for which the enrichment is applied to the message.
*/
endpointNames: string[];
}

/**
* The routing related properties of the IoT hub. See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging
Expand All @@ -511,11 +493,6 @@ export interface RoutingProperties {
* section get routed to the built-in eventhub endpoint.
*/
fallbackRoute?: FallbackRouteProperties;
/**
* The list of user-provided enrichments that the IoT hub applies to messages to be delivered to
* built-in and custom endpoints. See: https://aka.ms/iotmsgenrich
*/
enrichments?: EnrichmentProperties[];
}

/**
Expand Down Expand Up @@ -598,13 +575,20 @@ export interface CloudToDeviceProperties {
}

/**
* The device streams properties of iothub.
* Public representation of one of the locations where a resource is provisioned.
*/
export interface IotHubPropertiesDeviceStreams {
export interface IotHubLocationDescription {
/**
* List of Device Streams Endpoints.
* The name of the Azure region
*/
streamingEndpoints?: string[];
location?: string;
/**
* The role of the region, can be either primary or secondary. The primary region is where the
* IoT hub is currently provisioned. The secondary region is the the Azure disaster recovery (DR)
* paired region and also the region where the IoT hub can failover to. Possible values include:
* 'primary', 'secondary'
*/
role?: IotHubReplicaRoleType;
}

/**
Expand Down Expand Up @@ -661,15 +645,16 @@ export interface IotHubProperties {
* IoT hub comments.
*/
comments?: string;
/**
* The device streams properties of iothub.
*/
deviceStreams?: IotHubPropertiesDeviceStreams;
/**
* The capabilities and features enabled for the IoT hub. Possible values include: 'None',
* 'DeviceManagement'
*/
features?: Capabilities;
/**
* Primary and secondary location for iot hub
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly locations?: IotHubLocationDescription[];
}

/**
Expand Down Expand Up @@ -1517,6 +1502,14 @@ export type RoutingSource = 'Invalid' | 'DeviceMessages' | 'TwinChangeEvents' |
*/
export type Capabilities = 'None' | 'DeviceManagement';

/**
* Defines values for IotHubReplicaRoleType.
* Possible values include: 'primary', 'secondary'
* @readonly
* @enum {string}
*/
export type IotHubReplicaRoleType = 'primary' | 'secondary';

/**
* Defines values for IotHubSku.
* Possible values include: 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3'
Expand Down
3 changes: 1 addition & 2 deletions sdk/iothub/arm-iothub/src/models/iotHubResourceMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export {
CloudToDeviceProperties,
EndpointHealthData,
EndpointHealthDataListResult,
EnrichmentProperties,
ErrorDetails,
EventHubConsumerGroupInfo,
EventHubConsumerGroupsListResult,
Expand All @@ -28,9 +27,9 @@ export {
IotHubCapacity,
IotHubDescription,
IotHubDescriptionListResult,
IotHubLocationDescription,
IotHubNameAvailabilityInfo,
IotHubProperties,
IotHubPropertiesDeviceStreams,
IotHubQuotaMetricInfo,
IotHubQuotaMetricInfoListResult,
IotHubSkuDescription,
Expand Down
94 changes: 25 additions & 69 deletions sdk/iothub/arm-iothub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,45 +779,6 @@ export const FallbackRouteProperties: msRest.CompositeMapper = {
}
};

export const EnrichmentProperties: msRest.CompositeMapper = {
serializedName: "EnrichmentProperties",
type: {
name: "Composite",
className: "EnrichmentProperties",
modelProperties: {
key: {
required: true,
serializedName: "key",
type: {
name: "String"
}
},
value: {
required: true,
serializedName: "value",
type: {
name: "String"
}
},
endpointNames: {
required: true,
serializedName: "endpointNames",
constraints: {
MinItems: 1
},
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const RoutingProperties: msRest.CompositeMapper = {
serializedName: "RoutingProperties",
type: {
Expand Down Expand Up @@ -849,18 +810,6 @@ export const RoutingProperties: msRest.CompositeMapper = {
name: "Composite",
className: "FallbackRouteProperties"
}
},
enrichments: {
serializedName: "enrichments",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "EnrichmentProperties"
}
}
}
}
}
}
Expand Down Expand Up @@ -993,21 +942,22 @@ export const CloudToDeviceProperties: msRest.CompositeMapper = {
}
};

export const IotHubPropertiesDeviceStreams: msRest.CompositeMapper = {
serializedName: "IotHubProperties_deviceStreams",
export const IotHubLocationDescription: msRest.CompositeMapper = {
serializedName: "IotHubLocationDescription",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams",
className: "IotHubLocationDescription",
modelProperties: {
streamingEndpoints: {
serializedName: "streamingEndpoints",
location: {
serializedName: "location",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
name: "String"
}
},
role: {
serializedName: "role",
type: {
name: "String"
}
}
}
Expand Down Expand Up @@ -1127,18 +1077,24 @@ export const IotHubProperties: msRest.CompositeMapper = {
name: "String"
}
},
deviceStreams: {
serializedName: "deviceStreams",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams"
}
},
features: {
serializedName: "features",
type: {
name: "String"
}
},
locations: {
readOnly: true,
serializedName: "locations",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "IotHubLocationDescription"
}
}
}
}
}
}
Expand Down
18 changes: 10 additions & 8 deletions sdk/iothub/arm-iothub/src/operations/iotHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export class IotHub {
}

/**
* Perform manual fail over of given hub
* @summary Manual Failover Fail over
* @param iotHubName IotHub to fail over
* @param resourceGroupName resource group which Iot Hub belongs to
* Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover
* @summary Manually initiate a failover for the IoT Hub to its secondary region
* @param iotHubName Name of the IoT hub to failover
* @param resourceGroupName Resource group in which the IoT hub is in
* @param failoverRegion Region the hub will be failed over to
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
Expand All @@ -41,10 +42,11 @@ export class IotHub {
}

/**
* Perform manual fail over of given hub
* @summary Manual Failover Fail over
* @param iotHubName IotHub to fail over
* @param resourceGroupName resource group which Iot Hub belongs to
* Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover
* @summary Manually initiate a failover for the IoT Hub to its secondary region
* @param iotHubName Name of the IoT hub to failover
* @param resourceGroupName Resource group in which the IoT hub is in
* @param failoverRegion Region the hub will be failed over to
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand Down

0 comments on commit 2e07f08

Please sign in to comment.