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 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from e661b737e5a955907403e042dc2f294059ab265a (#4624)
Add a spec for policyStates API version 2018-07-01-preview
- Loading branch information
1 parent
35562e1
commit 6f80dc2
Showing
14 changed files
with
1,090 additions
and
19 deletions.
There are no files selected for viewing
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
95 changes: 95 additions & 0 deletions
95
lib/services/policyinsightsManagement/lib/models/expressionEvaluationDetails.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,95 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Evaluation details of policy language expressions. | ||
* | ||
*/ | ||
class ExpressionEvaluationDetails { | ||
/** | ||
* Create a ExpressionEvaluationDetails. | ||
* @property {string} [result] Evaluation result. | ||
* @property {string} [expression] Expression evaluated. | ||
* @property {string} [path] Property path if the expression is a field or an | ||
* aliase. | ||
* @property {string} [expressionValue] Value of the expression. | ||
* @property {string} [targetValue] Target value to be compared with the | ||
* expression value. | ||
* @property {string} [operator] Operator to compare the expression value and | ||
* the target value. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ExpressionEvaluationDetails | ||
* | ||
* @returns {object} metadata of ExpressionEvaluationDetails | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ExpressionEvaluationDetails', | ||
type: { | ||
name: 'Composite', | ||
className: 'ExpressionEvaluationDetails', | ||
modelProperties: { | ||
result: { | ||
required: false, | ||
serializedName: 'result', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
expression: { | ||
required: false, | ||
serializedName: 'expression', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
path: { | ||
required: false, | ||
serializedName: 'path', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
expressionValue: { | ||
required: false, | ||
serializedName: 'expressionValue', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
targetValue: { | ||
required: false, | ||
serializedName: 'targetValue', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
operator: { | ||
required: false, | ||
serializedName: 'operator', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ExpressionEvaluationDetails; |
62 changes: 62 additions & 0 deletions
62
lib/services/policyinsightsManagement/lib/models/ifNotExistsEvaluationDetails.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,62 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Evaluation details of IfNotExists effect. | ||
* | ||
*/ | ||
class IfNotExistsEvaluationDetails { | ||
/** | ||
* Create a IfNotExistsEvaluationDetails. | ||
* @property {string} [resourceId] ID of the last evaluated resource for | ||
* IfNotExists effect. | ||
* @property {number} [totalResources] Total number of resources to which the | ||
* existence condition is applicable. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of IfNotExistsEvaluationDetails | ||
* | ||
* @returns {object} metadata of IfNotExistsEvaluationDetails | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'IfNotExistsEvaluationDetails', | ||
type: { | ||
name: 'Composite', | ||
className: 'IfNotExistsEvaluationDetails', | ||
modelProperties: { | ||
resourceId: { | ||
required: false, | ||
serializedName: 'resourceId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
totalResources: { | ||
required: false, | ||
serializedName: 'totalResources', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = IfNotExistsEvaluationDetails; |
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
75 changes: 75 additions & 0 deletions
75
lib/services/policyinsightsManagement/lib/models/policyEvaluationDetails.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,75 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Policy evaluation details. | ||
* | ||
*/ | ||
class PolicyEvaluationDetails { | ||
/** | ||
* Create a PolicyEvaluationDetails. | ||
* @property {array} [evaluatedExpressions] Details of the evaluated | ||
* expressions. | ||
* @property {object} [ifNotExistsDetails] Evaluation details of IfNotExists | ||
* effect. | ||
* @property {string} [ifNotExistsDetails.resourceId] ID of the last | ||
* evaluated resource for IfNotExists effect. | ||
* @property {number} [ifNotExistsDetails.totalResources] Total number of | ||
* resources to which the existence condition is applicable. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of PolicyEvaluationDetails | ||
* | ||
* @returns {object} metadata of PolicyEvaluationDetails | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'PolicyEvaluationDetails', | ||
type: { | ||
name: 'Composite', | ||
className: 'PolicyEvaluationDetails', | ||
modelProperties: { | ||
evaluatedExpressions: { | ||
required: false, | ||
serializedName: 'evaluatedExpressions', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ExpressionEvaluationDetailsElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ExpressionEvaluationDetails' | ||
} | ||
} | ||
} | ||
}, | ||
ifNotExistsDetails: { | ||
required: false, | ||
serializedName: 'ifNotExistsDetails', | ||
type: { | ||
name: 'Composite', | ||
className: 'IfNotExistsEvaluationDetails' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = PolicyEvaluationDetails; |
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.