This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3917 from Azure/restapi_auto_iotcentral/resource-…
…manager [AutoPR] iotcentral/resource-manager
- Loading branch information
Showing
11 changed files
with
748 additions
and
46 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
lib/services/iotcentralManagement/lib/models/appAvailabilityInfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
lib/services/iotcentralManagement/lib/models/errorResponseBody.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
lib/services/iotcentralManagement/lib/models/nameAvailabilityInputs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.