Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR iotcentral/resource-manager] [DO NOT MERGE] IoT Central test bug fixes #3650

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5117d61
Generated from c08434af1cb56f1fa3725832d1ffa878ba40cc38
AutorestCI Sep 20, 2018
be20400
Generated from 25924315ce847b1e43aeca6d288336a87c472761
AutorestCI Sep 20, 2018
1bd4aee
Generated from 012871adbed086a294aa444ca9e6c4f2989fba02
AutorestCI Sep 20, 2018
fa3265a
Generated from d6fbf20ed7b6465697cc2648b873d064eb4f61ef
AutorestCI Sep 20, 2018
c5ac6ce
Generated from 8a25eead9ebfb8d6c5646444a75053d99796d81b
AutorestCI Sep 21, 2018
931693a
Generated from a0fca65e2cfdf21d578bf31c2ba3d32175b01ca1
AutorestCI Sep 21, 2018
c6554c0
Generated from 50ccd76b49a9496daf577a1e864fd02545219148
AutorestCI Sep 26, 2018
d217f40
Generated from 0b4eb2d1aa3ab17a1d8e4934a0c5e701652a8815
AutorestCI Sep 26, 2018
c239087
Generated from 65c3f9035c6cb5f5620e2399e32d16bdce532a14
AutorestCI Sep 26, 2018
6f299c3
Generated from e56826f5f026884b10068a2485cfebbaa071c508
AutorestCI Sep 26, 2018
9bdbf94
Generated from 85504133b58ae743ecc9872a35b94f28ff583a99
AutorestCI Sep 26, 2018
04f47ed
Generated from 0778f5efeb06cb6dec9e8f09bd0c366d9a0186dc
AutorestCI Sep 26, 2018
70ad2f6
Generated from 02cd2dfacf4029001b5cf0c7d4088cdbd348dfeb
AutorestCI Sep 26, 2018
5ca1b64
Generated from 7d62b8f150f3365546d829897148b68574419a03
AutorestCI Sep 26, 2018
ac72c9f
Generated from 623592768a8c3742d252c0951171a8c3da297b6b
AutorestCI Sep 26, 2018
40d63b7
Generated from b27aa5cbd9414e799aa2f6b3d60a5c971b78b2a2
AutorestCI Sep 26, 2018
f7fcc3c
Generated from bddac2cafda2e1fac0a66343049233d456d140b0
AutorestCI Sep 26, 2018
0a6a1c6
Generated from cfab25795b85b379821d2b4fa43a7f3293c0a03d
AutorestCI Sep 26, 2018
84b41b5
Generated from d6711a99e3ec80a0dfb83f9aaef8b956c99a6162
AutorestCI Sep 26, 2018
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The properties indicating whether a given IoT Central application
* information is available.
*
*/
class AppAvailabilityInfo {
/**
* Create a AppAvailabilityInfo.
* @member {boolean} [nameAvailable] The value which indicates whether the
* provided name is available.
* @member {string} [reason] The reason for unavailability.
* @member {string} [message] The detailed reason message.
*/
constructor() {
}

/**
* Defines the metadata of AppAvailabilityInfo
*
* @returns {object} metadata of AppAvailabilityInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'AppAvailabilityInfo',
type: {
name: 'Composite',
className: 'AppAvailabilityInfo',
modelProperties: {
nameAvailable: {
required: false,
readOnly: true,
serializedName: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
readOnly: true,
serializedName: 'reason',
type: {
name: 'String'
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AppAvailabilityInfo;
36 changes: 13 additions & 23 deletions lib/services/iotcentralManagement/lib/models/errorDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
class ErrorDetails {
/**
* Create a ErrorDetails.
* @member {string} [code] The error code.
* @member {string} [message] The error message.
* @member {string} [target] The target of the particular error.
* @member {object} [error]
* @member {string} [error.code] Error code, intended to be consumed
* programmatically.
* @member {string} [error.message] Description of the error, intended for
* display in user interface.
* @member {string} [error.target] Target of the particular error, for
* example name of the property.
* @member {array} [error.details] A list of additional details about the
* error.
*/
constructor() {
}
Expand All @@ -38,28 +44,12 @@ class ErrorDetails {
name: 'Composite',
className: 'ErrorDetails',
modelProperties: {
code: {
error: {
required: false,
readOnly: true,
serializedName: 'code',
serializedName: 'error',
type: {
name: 'String'
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
},
target: {
required: false,
readOnly: true,
serializedName: 'target',
type: {
name: 'String'
name: 'Composite',
className: 'ErrorResponseBody'
}
}
}
Expand Down
90 changes: 90 additions & 0 deletions lib/services/iotcentralManagement/lib/models/errorResponseBody.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Details of error response.
*
*/
class ErrorResponseBody {
/**
* Create a ErrorResponseBody.
* @member {string} [code] Error code, intended to be consumed
* programmatically.
* @member {string} [message] Description of the error, intended for display
* in user interface.
* @member {string} [target] Target of the particular error, for example name
* of the property.
* @member {array} [details] A list of additional details about the error.
*/
constructor() {
}

/**
* Defines the metadata of ErrorResponseBody
*
* @returns {object} metadata of ErrorResponseBody
*
*/
mapper() {
return {
required: false,
serializedName: 'ErrorResponseBody',
type: {
name: 'Composite',
className: 'ErrorResponseBody',
modelProperties: {
code: {
required: false,
readOnly: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
},
target: {
required: false,
readOnly: true,
serializedName: 'target',
type: {
name: 'String'
}
},
details: {
required: false,
serializedName: 'details',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ErrorResponseBodyElementType',
type: {
name: 'Composite',
className: 'ErrorResponseBody'
}
}
}
}
}
}
};
}
}

module.exports = ErrorResponseBody;
77 changes: 60 additions & 17 deletions lib/services/iotcentralManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,43 @@ export interface AppPatch {

/**
* @class
* Initializes a new instance of the ErrorDetails class.
* Initializes a new instance of the ErrorResponseBody class.
* @constructor
* Error details.
* Details of error response.
*
* @member {string} [code] The error code.
* @member {string} [message] The error message.
* @member {string} [target] The target of the particular error.
* @member {string} [code] Error code, intended to be consumed
* programmatically.
* @member {string} [message] Description of the error, intended for display in
* user interface.
* @member {string} [target] Target of the particular error, for example name
* of the property.
* @member {array} [details] A list of additional details about the error.
*/
export interface ErrorDetails {
export interface ErrorResponseBody {
readonly code?: string;
readonly message?: string;
readonly target?: string;
details?: ErrorResponseBody[];
}

/**
* @class
* Initializes a new instance of the ErrorDetails class.
* @constructor
* Error details.
*
* @member {object} [error]
* @member {string} [error.code] Error code, intended to be consumed
* programmatically.
* @member {string} [error.message] Description of the error, intended for
* display in user interface.
* @member {string} [error.target] Target of the particular error, for example
* name of the property.
* @member {array} [error.details] A list of additional details about the
* error.
*/
export interface ErrorDetails {
error?: ErrorResponseBody;
}

/**
Expand Down Expand Up @@ -153,34 +178,52 @@ export interface Operation {

/**
* @class
* Initializes a new instance of the OperationInputs class.
* Initializes a new instance of the NameAvailabilityInputs class.
* @constructor
* Input values.
*
* @member {string} name The name of the IoT Central application instance to
* @member {string} [name] The name of the IoT Central application instance to
* check.
* @member {string} [type] The name of the IoT Central resource name to query.
* Default value: 'IoTApps' .
*/
export interface OperationInputs {
name: string;
export interface NameAvailabilityInputs {
name?: string;
type?: string;
}

/**
* @class
* Initializes a new instance of the SubdomainAvailabilityInputs class.
* @constructor
* Input values.
*
* @member {string} [subdomain] The subdomain of the IoT Central application
* instance to check.
* @member {string} [type] The name of the IoT Central resource name to query.
* Default value: 'IoTApps' .
*/
export interface SubdomainAvailabilityInputs {
subdomain?: string;
type?: string;
}

/**
* @class
* Initializes a new instance of the AppNameAvailabilityInfo class.
* Initializes a new instance of the AppAvailabilityInfo class.
* @constructor
* The properties indicating whether a given IoT Central application name is
* available.
* The properties indicating whether a given IoT Central application
* information is available.
*
* @member {boolean} [nameAvailable] The value which indicates whether the
* provided name is available.
* @member {string} [reason] The reason for unavailability. Possible values
* include: 'Invalid', 'AlreadyExists'
* @member {string} [reason] The reason for unavailability.
* @member {string} [message] The detailed reason message.
*/
export interface AppNameAvailabilityInfo {
export interface AppAvailabilityInfo {
readonly nameAvailable?: boolean;
readonly reason?: string;
message?: string;
readonly message?: string;
}


Expand Down
6 changes: 4 additions & 2 deletions lib/services/iotcentralManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ exports.AppSkuInfo = require('./appSkuInfo');
exports.Resource = require('./resource');
exports.App = require('./app');
exports.AppPatch = require('./appPatch');
exports.ErrorResponseBody = require('./errorResponseBody');
exports.ErrorDetails = require('./errorDetails');
exports.OperationDisplay = require('./operationDisplay');
exports.Operation = require('./operation');
exports.OperationInputs = require('./operationInputs');
exports.AppNameAvailabilityInfo = require('./appNameAvailabilityInfo');
exports.NameAvailabilityInputs = require('./nameAvailabilityInputs');
exports.SubdomainAvailabilityInputs = require('./subdomainAvailabilityInputs');
exports.AppAvailabilityInfo = require('./appAvailabilityInfo');
exports.AppListResult = require('./appListResult');
exports.OperationListResult = require('./operationListResult');
Loading