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 iothub/resource-manager] Add package-2018-12 to Go SDK build #807

Merged
merged 1 commit into from
Dec 12, 2018
Merged
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
2 changes: 1 addition & 1 deletion packages/@azure/arm-iothub/lib/iotHubClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {
}
super(credentials, options);

this.apiVersion = '2018-04-01';
this.apiVersion = '2018-12-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export {
CloudToDeviceProperties,
FeedbackProperties,
OperationsMonitoringProperties,
IotHubPropertiesDeviceStreams,
IotHubSkuInfo
} from "../models/mappers";

40 changes: 32 additions & 8 deletions packages/@azure/arm-iothub/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export interface RoutingStorageContainerProperties {
maxChunkSizeInBytes?: number;
/**
* @member {string} [encoding] Encoding that is used to serialize messages to
* blobs. Supported values are 'avro' and 'avroDeflate'. Default value is
* blobs. Supported values are 'avro' and 'avrodeflate'. Default value is
* 'avro'.
*/
encoding?: string;
Expand Down Expand Up @@ -647,8 +647,8 @@ export interface RoutingProperties {
*/
export interface StorageEndpointProperties {
/**
* @member {string} [sasTtlAsIso8601] The period of time for which the SAS
* URI generated by IoT Hub for file upload is valid. See:
* @member {string} [sasTtlAsIso8601] The period of time for which the the
* SAS URI generated by IoT Hub for file upload is valid. See:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.
*/
sasTtlAsIso8601?: string;
Expand Down Expand Up @@ -759,6 +759,19 @@ export interface OperationsMonitoringProperties {
events?: { [propertyName: string]: OperationMonitoringLevel };
}

/**
* @interface
* An interface representing IotHubPropertiesDeviceStreams.
* The device streams properties of iothub.
*
*/
export interface IotHubPropertiesDeviceStreams {
/**
* @member {string[]} [streamingEndpoints] List of Device Streams Endpoints.
*/
streamingEndpoints?: string[];
}

/**
* @interface
* An interface representing IotHubProperties.
Expand All @@ -783,7 +796,7 @@ export interface IotHubProperties {
*/
readonly provisioningState?: string;
/**
* @member {string} [state] The hub state.
* @member {string} [state] Thehub state state.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -839,6 +852,11 @@ export interface IotHubProperties {
* @member {OperationsMonitoringProperties} [operationsMonitoringProperties]
*/
operationsMonitoringProperties?: OperationsMonitoringProperties;
/**
* @member {IotHubPropertiesDeviceStreams} [deviceStreams] The device streams
* properties of iothub.
*/
deviceStreams?: IotHubPropertiesDeviceStreams;
/**
* @member {Capabilities} [features] The capabilities and features enabled
* for the IoT hub. Possible values include: 'None', 'DeviceManagement'
Expand Down Expand Up @@ -957,6 +975,12 @@ export interface OperationDisplay {
* the server.**
*/
readonly operation?: string;
/**
* @member {string} [description] Description of the operation
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
readonly description?: string;
}

/**
Expand Down Expand Up @@ -1398,13 +1422,13 @@ export interface RoutingMessage {
*/
export interface RoutingTwinProperties {
/**
* @member {any} [desiredProperties] Twin desired properties
* @member {any} [desired] Twin desired properties
*/
desiredProperties?: any;
desired?: any;
/**
* @member {any} [reportedProperties] Twin desired properties
* @member {any} [reported] Twin desired properties
*/
reportedProperties?: any;
reported?: any;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export {
CloudToDeviceProperties,
FeedbackProperties,
OperationsMonitoringProperties,
IotHubPropertiesDeviceStreams,
IotHubSkuInfo,
ErrorDetails,
TagsResource,
Expand Down
43 changes: 39 additions & 4 deletions packages/@azure/arm-iothub/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,27 @@ export const OperationsMonitoringProperties: msRest.CompositeMapper = {
}
};

export const IotHubPropertiesDeviceStreams: msRest.CompositeMapper = {
serializedName: "IotHubProperties_deviceStreams",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams",
modelProperties: {
streamingEndpoints: {
serializedName: "streamingEndpoints",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const IotHubProperties: msRest.CompositeMapper = {
serializedName: "IotHubProperties",
type: {
Expand Down Expand Up @@ -1085,6 +1106,13 @@ export const IotHubProperties: msRest.CompositeMapper = {
className: "OperationsMonitoringProperties"
}
},
deviceStreams: {
serializedName: "deviceStreams",
type: {
name: "Composite",
className: "IotHubPropertiesDeviceStreams"
}
},
features: {
serializedName: "features",
type: {
Expand Down Expand Up @@ -1240,6 +1268,13 @@ export const OperationDisplay: msRest.CompositeMapper = {
type: {
name: "String"
}
},
description: {
readOnly: true,
serializedName: "description",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1808,14 +1843,14 @@ export const RoutingTwinProperties: msRest.CompositeMapper = {
name: "Composite",
className: "RoutingTwinProperties",
modelProperties: {
desiredProperties: {
serializedName: "desiredProperties",
desired: {
serializedName: "desired",
type: {
name: "Object"
}
},
reportedProperties: {
serializedName: "reportedProperties",
reported: {
serializedName: "reported",
type: {
name: "Object"
}
Expand Down