-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] policyinsights/resource-manager (#4288)
* [AutoPR policyinsights/resource-manager] [Hub Generated] Review request for Microsoft.PolicyInsights to add version 2018-07-01-preview (#4286) * Generated from e661b737e5a955907403e042dc2f294059ab265a Add a spec for policyStates API version 2018-07-01-preview * Packaging update of azure-mgmt-policyinsights * Generated from af753865e155ccd7bcc0eff7cd30a499e8883b61 (#4326) typo: aliase -> alias * Packaging update of azure-mgmt-policyinsights * updated versioning and changelog
- Loading branch information
1 parent
f46ea68
commit 063af3e
Showing
17 changed files
with
295 additions
and
27 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
|
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
50 changes: 50 additions & 0 deletions
50
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py
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,50 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ExpressionEvaluationDetails(Model): | ||
"""Evaluation details of policy language expressions. | ||
:param result: Evaluation result. | ||
:type result: str | ||
:param expression: Expression evaluated. | ||
:type expression: str | ||
:param path: Property path if the expression is a field or an alias. | ||
:type path: str | ||
:param expression_value: Value of the expression. | ||
:type expression_value: str | ||
:param target_value: Target value to be compared with the expression | ||
value. | ||
:type target_value: str | ||
:param operator: Operator to compare the expression value and the target | ||
value. | ||
:type operator: str | ||
""" | ||
|
||
_attribute_map = { | ||
'result': {'key': 'result', 'type': 'str'}, | ||
'expression': {'key': 'expression', 'type': 'str'}, | ||
'path': {'key': 'path', 'type': 'str'}, | ||
'expression_value': {'key': 'expressionValue', 'type': 'str'}, | ||
'target_value': {'key': 'targetValue', 'type': 'str'}, | ||
'operator': {'key': 'operator', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ExpressionEvaluationDetails, self).__init__(**kwargs) | ||
self.result = kwargs.get('result', None) | ||
self.expression = kwargs.get('expression', None) | ||
self.path = kwargs.get('path', None) | ||
self.expression_value = kwargs.get('expression_value', None) | ||
self.target_value = kwargs.get('target_value', None) | ||
self.operator = kwargs.get('operator', None) |
50 changes: 50 additions & 0 deletions
50
...mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py
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,50 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ExpressionEvaluationDetails(Model): | ||
"""Evaluation details of policy language expressions. | ||
:param result: Evaluation result. | ||
:type result: str | ||
:param expression: Expression evaluated. | ||
:type expression: str | ||
:param path: Property path if the expression is a field or an alias. | ||
:type path: str | ||
:param expression_value: Value of the expression. | ||
:type expression_value: str | ||
:param target_value: Target value to be compared with the expression | ||
value. | ||
:type target_value: str | ||
:param operator: Operator to compare the expression value and the target | ||
value. | ||
:type operator: str | ||
""" | ||
|
||
_attribute_map = { | ||
'result': {'key': 'result', 'type': 'str'}, | ||
'expression': {'key': 'expression', 'type': 'str'}, | ||
'path': {'key': 'path', 'type': 'str'}, | ||
'expression_value': {'key': 'expressionValue', 'type': 'str'}, | ||
'target_value': {'key': 'targetValue', 'type': 'str'}, | ||
'operator': {'key': 'operator', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, result: str=None, expression: str=None, path: str=None, expression_value: str=None, target_value: str=None, operator: str=None, **kwargs) -> None: | ||
super(ExpressionEvaluationDetails, self).__init__(**kwargs) | ||
self.result = result | ||
self.expression = expression | ||
self.path = path | ||
self.expression_value = expression_value | ||
self.target_value = target_value | ||
self.operator = operator |
34 changes: 34 additions & 0 deletions
34
...-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details.py
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,34 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class IfNotExistsEvaluationDetails(Model): | ||
"""Evaluation details of IfNotExists effect. | ||
:param resource_id: ID of the last evaluated resource for IfNotExists | ||
effect. | ||
:type resource_id: str | ||
:param total_resources: Total number of resources to which the existence | ||
condition is applicable. | ||
:type total_resources: int | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_id': {'key': 'resourceId', 'type': 'str'}, | ||
'total_resources': {'key': 'totalResources', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(IfNotExistsEvaluationDetails, self).__init__(**kwargs) | ||
self.resource_id = kwargs.get('resource_id', None) | ||
self.total_resources = kwargs.get('total_resources', None) |
34 changes: 34 additions & 0 deletions
34
...t-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details_py3.py
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,34 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class IfNotExistsEvaluationDetails(Model): | ||
"""Evaluation details of IfNotExists effect. | ||
:param resource_id: ID of the last evaluated resource for IfNotExists | ||
effect. | ||
:type resource_id: str | ||
:param total_resources: Total number of resources to which the existence | ||
condition is applicable. | ||
:type total_resources: int | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_id': {'key': 'resourceId', 'type': 'str'}, | ||
'total_resources': {'key': 'totalResources', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, resource_id: str=None, total_resources: int=None, **kwargs) -> None: | ||
super(IfNotExistsEvaluationDetails, self).__init__(**kwargs) | ||
self.resource_id = resource_id | ||
self.total_resources = total_resources |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details.py
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,34 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class PolicyEvaluationDetails(Model): | ||
"""Policy evaluation details. | ||
:param evaluated_expressions: Details of the evaluated expressions. | ||
:type evaluated_expressions: | ||
list[~azure.mgmt.policyinsights.models.ExpressionEvaluationDetails] | ||
:param if_not_exists_details: Evaluation details of IfNotExists effect. | ||
:type if_not_exists_details: | ||
~azure.mgmt.policyinsights.models.IfNotExistsEvaluationDetails | ||
""" | ||
|
||
_attribute_map = { | ||
'evaluated_expressions': {'key': 'evaluatedExpressions', 'type': '[ExpressionEvaluationDetails]'}, | ||
'if_not_exists_details': {'key': 'ifNotExistsDetails', 'type': 'IfNotExistsEvaluationDetails'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(PolicyEvaluationDetails, self).__init__(**kwargs) | ||
self.evaluated_expressions = kwargs.get('evaluated_expressions', None) | ||
self.if_not_exists_details = kwargs.get('if_not_exists_details', None) |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details_py3.py
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,34 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class PolicyEvaluationDetails(Model): | ||
"""Policy evaluation details. | ||
:param evaluated_expressions: Details of the evaluated expressions. | ||
:type evaluated_expressions: | ||
list[~azure.mgmt.policyinsights.models.ExpressionEvaluationDetails] | ||
:param if_not_exists_details: Evaluation details of IfNotExists effect. | ||
:type if_not_exists_details: | ||
~azure.mgmt.policyinsights.models.IfNotExistsEvaluationDetails | ||
""" | ||
|
||
_attribute_map = { | ||
'evaluated_expressions': {'key': 'evaluatedExpressions', 'type': '[ExpressionEvaluationDetails]'}, | ||
'if_not_exists_details': {'key': 'ifNotExistsDetails', 'type': 'IfNotExistsEvaluationDetails'}, | ||
} | ||
|
||
def __init__(self, *, evaluated_expressions=None, if_not_exists_details=None, **kwargs) -> None: | ||
super(PolicyEvaluationDetails, self).__init__(**kwargs) | ||
self.evaluated_expressions = evaluated_expressions | ||
self.if_not_exists_details = if_not_exists_details |
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
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.