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

[AutoPR] iotcentral/resource-manager #3917

Merged
3 commits merged into from
Oct 23, 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
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 name or
* subdomain 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;
22 changes: 19 additions & 3 deletions lib/services/iotcentralManagement/lib/models/errorDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ErrorDetails {
* @member {string} [code] The error code.
* @member {string} [message] The error message.
* @member {string} [target] The target of the particular error.
* @member {array} [details] A list of additional details about the error.
*/
constructor() {
}
Expand All @@ -41,26 +42,41 @@ class ErrorDetails {
code: {
required: false,
readOnly: true,
serializedName: 'code',
serializedName: 'error.code',
type: {
name: 'String'
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
serializedName: 'error.message',
type: {
name: 'String'
}
},
target: {
required: false,
readOnly: true,
serializedName: 'target',
serializedName: 'error.target',
type: {
name: 'String'
}
},
details: {
required: false,
serializedName: 'error.details',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ErrorResponseBodyElementType',
type: {
name: 'Composite',
className: 'ErrorResponseBody'
}
}
}
}
}
}
Expand Down
87 changes: 87 additions & 0 deletions lib/services/iotcentralManagement/lib/models/errorResponseBody.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* 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] The error code.
* @member {string} [message] The error message.
* @member {string} [target] The target of the particular error.
* @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;
36 changes: 29 additions & 7 deletions lib/services/iotcentralManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,24 @@ export interface AppPatch {
template?: string;
}

/**
* @class
* Initializes a new instance of the ErrorResponseBody class.
* @constructor
* 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 {array} [details] A list of additional details about the error.
*/
export interface ErrorResponseBody {
readonly code?: string;
readonly message?: string;
readonly target?: string;
details?: ErrorResponseBody[];
}

/**
* @class
* Initializes a new instance of the ErrorDetails class.
Expand All @@ -106,11 +124,13 @@ export interface AppPatch {
* @member {string} [code] The error code.
* @member {string} [message] The error message.
* @member {string} [target] The target of the particular error.
* @member {array} [details] A list of additional details about the error.
*/
export interface ErrorDetails {
readonly code?: string;
readonly message?: string;
readonly target?: string;
details?: ErrorResponseBody[];
}

/**
Expand Down Expand Up @@ -159,28 +179,30 @@ export interface Operation {
*
* @member {string} name The name of the IoT Central application instance to
* check.
* @member {string} [type] The type of the IoT Central resource to query.
* Default value: 'IoTApps' .
*/
export interface OperationInputs {
name: 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 name or
* subdomain 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
3 changes: 2 additions & 1 deletion lib/services/iotcentralManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ 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.AppAvailabilityInfo = require('./appAvailabilityInfo');
exports.AppListResult = require('./appListResult');
exports.OperationListResult = require('./operationListResult');
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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';

/**
* Input values.
*
*/
class NameAvailabilityInputs {
/**
* Create a NameAvailabilityInputs.
* @member {string} name The name of the IoT Central application instance to
* check.
* @member {string} [type] The type of the IoT Central resource to query.
* Default value: 'IoTApps' .
*/
constructor() {
}

/**
* Defines the metadata of NameAvailabilityInputs
*
* @returns {object} metadata of NameAvailabilityInputs
*
*/
mapper() {
return {
required: false,
serializedName: 'NameAvailabilityInputs',
type: {
name: 'Composite',
className: 'NameAvailabilityInputs',
modelProperties: {
name: {
required: true,
serializedName: 'name',
constraints: {
Pattern: '^[a-z0-9-]{1,63}$'
},
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
defaultValue: 'IoTApps',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = NameAvailabilityInputs;
13 changes: 13 additions & 0 deletions lib/services/iotcentralManagement/lib/models/operationInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class OperationInputs {
* Create a OperationInputs.
* @member {string} name The name of the IoT Central application instance to
* check.
* @member {string} [type] The type of the IoT Central resource to query.
* Default value: 'IoTApps' .
*/
constructor() {
}
Expand All @@ -40,6 +42,17 @@ class OperationInputs {
name: {
required: true,
serializedName: 'name',
constraints: {
Pattern: '^[a-z0-9-]{1,63}$'
},
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
defaultValue: 'IoTApps',
type: {
name: 'String'
}
Expand Down
Loading