-
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.
azure-mgmt-policyinsights 0.1.0 (#2122)
* [AutoPR policyinsights/resource-manager] Reorganize policyinsights; change modelAsString for x-ms-enum to true (#2107) * Generated from 648b3651cc044b52ce58431a57ba3b7f7392fc2d Reorganize files; change modelAsString for x-ms-enum to true Reorganize files (remove resource type based subfolders; rename conflicting example files to have resource type name; change swagger spec files and MD file based on new file locations and names); change modelAsString for x-ms-enum to true based on API review board recommendation * Generated from 14bce7a312971c5831a8e2bd1f70d167bd42d96d Dummy change to kick the CI again * azure-mgmt-policyinsights packaging * Generated from a293e8f1694281bece506fd2c40b4f72bd19cfb5 (#2452) Merge remote-tracking branch 'upstream/master' * PolicyInisights packaging
- Loading branch information
1 parent
174435d
commit 9ca4234
Showing
47 changed files
with
4,704 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 (2018-05-04) | ||
++++++++++++++++++ | ||
|
||
* Initial Release |
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,2 @@ | ||
include *.rst | ||
include azure_bdist_wheel.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,49 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure Policy Insights Client Library. | ||
|
||
Azure Resource Manager (ARM) is the next generation of management APIs that | ||
replace the old Azure Service Management (ASM). | ||
|
||
This package has been tested with Python 2.7, 3.4, 3.5 and 3.6. | ||
|
||
For the older Azure Service Management (ASM) libraries, see | ||
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library. | ||
|
||
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package. | ||
|
||
|
||
Compatibility | ||
============= | ||
|
||
**IMPORTANT**: If you have an earlier version of the azure package | ||
(version < 1.0), you should uninstall it before installing this package. | ||
|
||
You can check the version using pip: | ||
|
||
.. code:: shell | ||
pip freeze | ||
If you see azure==0.11.0 (or any version below 1.0), uninstall it first: | ||
|
||
.. code:: shell | ||
pip uninstall azure | ||
Usage | ||
===== | ||
|
||
For code examples, see `Policy Insights | ||
<https://docs.microsoft.com/python/azure/>`__ | ||
on docs.microsoft.com. | ||
|
||
|
||
Provide Feedback | ||
================ | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__ | ||
section of the project. |
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 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
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 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
18 changes: 18 additions & 0 deletions
18
azure-mgmt-policyinsights/azure/mgmt/policyinsights/__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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 .policy_insights_client import PolicyInsightsClient | ||
from .version import VERSION | ||
|
||
__all__ = ['PolicyInsightsClient'] | ||
|
||
__version__ = VERSION | ||
|
65 changes: 65 additions & 0 deletions
65
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/__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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from .policy_event_py3 import PolicyEvent | ||
from .policy_events_query_results_py3 import PolicyEventsQueryResults | ||
from .query_failure_error_py3 import QueryFailureError | ||
from .query_failure_py3 import QueryFailure, QueryFailureException | ||
from .policy_state_py3 import PolicyState | ||
from .policy_states_query_results_py3 import PolicyStatesQueryResults | ||
from .summary_results_py3 import SummaryResults | ||
from .policy_definition_summary_py3 import PolicyDefinitionSummary | ||
from .policy_assignment_summary_py3 import PolicyAssignmentSummary | ||
from .summary_py3 import Summary | ||
from .summarize_results_py3 import SummarizeResults | ||
from .operation_display_py3 import OperationDisplay | ||
from .operation_py3 import Operation | ||
from .operations_list_results_py3 import OperationsListResults | ||
from .query_options_py3 import QueryOptions | ||
except (SyntaxError, ImportError): | ||
from .policy_event import PolicyEvent | ||
from .policy_events_query_results import PolicyEventsQueryResults | ||
from .query_failure_error import QueryFailureError | ||
from .query_failure import QueryFailure, QueryFailureException | ||
from .policy_state import PolicyState | ||
from .policy_states_query_results import PolicyStatesQueryResults | ||
from .summary_results import SummaryResults | ||
from .policy_definition_summary import PolicyDefinitionSummary | ||
from .policy_assignment_summary import PolicyAssignmentSummary | ||
from .summary import Summary | ||
from .summarize_results import SummarizeResults | ||
from .operation_display import OperationDisplay | ||
from .operation import Operation | ||
from .operations_list_results import OperationsListResults | ||
from .query_options import QueryOptions | ||
from .policy_insights_client_enums import ( | ||
PolicyStatesResource, | ||
) | ||
|
||
__all__ = [ | ||
'PolicyEvent', | ||
'PolicyEventsQueryResults', | ||
'QueryFailureError', | ||
'QueryFailure', 'QueryFailureException', | ||
'PolicyState', | ||
'PolicyStatesQueryResults', | ||
'SummaryResults', | ||
'PolicyDefinitionSummary', | ||
'PolicyAssignmentSummary', | ||
'Summary', | ||
'SummarizeResults', | ||
'OperationDisplay', | ||
'Operation', | ||
'OperationsListResults', | ||
'QueryOptions', | ||
'PolicyStatesResource', | ||
] |
32 changes: 32 additions & 0 deletions
32
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operation.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,32 @@ | ||
# 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 Operation(Model): | ||
"""Operation definition. | ||
:param name: Operation name. | ||
:type name: str | ||
:param display: Display metadata associated with the operation. | ||
:type display: ~azure.mgmt.policyinsights.models.OperationDisplay | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.display = kwargs.get('display', None) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operation_display.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,40 @@ | ||
# 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 OperationDisplay(Model): | ||
"""Display metadata associated with the operation. | ||
:param provider: Resource provider name. | ||
:type provider: str | ||
:param resource: Resource name on which the operation is performed. | ||
:type resource: str | ||
:param operation: Operation name. | ||
:type operation: str | ||
:param description: Operation description. | ||
:type description: str | ||
""" | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = kwargs.get('provider', None) | ||
self.resource = kwargs.get('resource', None) | ||
self.operation = kwargs.get('operation', None) | ||
self.description = kwargs.get('description', None) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operation_display_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,40 @@ | ||
# 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 OperationDisplay(Model): | ||
"""Display metadata associated with the operation. | ||
:param provider: Resource provider name. | ||
:type provider: str | ||
:param resource: Resource name on which the operation is performed. | ||
:type resource: str | ||
:param operation: Operation name. | ||
:type operation: str | ||
:param description: Operation description. | ||
:type description: str | ||
""" | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = provider | ||
self.resource = resource | ||
self.operation = operation | ||
self.description = description |
32 changes: 32 additions & 0 deletions
32
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operation_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,32 @@ | ||
# 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 Operation(Model): | ||
"""Operation definition. | ||
:param name: Operation name. | ||
:type name: str | ||
:param display: Display metadata associated with the operation. | ||
:type display: ~azure.mgmt.policyinsights.models.OperationDisplay | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, display=None, **kwargs) -> None: | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = name | ||
self.display = display |
37 changes: 37 additions & 0 deletions
37
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operations_list_results.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,37 @@ | ||
# 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 OperationsListResults(Model): | ||
"""List of available operations. | ||
:param odatacount: OData entity count; represents the number of operations | ||
returned. | ||
:type odatacount: int | ||
:param value: List of available operations. | ||
:type value: list[~azure.mgmt.policyinsights.models.Operation] | ||
""" | ||
|
||
_validation = { | ||
'odatacount': {'minimum': 1}, | ||
} | ||
|
||
_attribute_map = { | ||
'odatacount': {'key': '@odata\\.count', 'type': 'int'}, | ||
'value': {'key': 'value', 'type': '[Operation]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OperationsListResults, self).__init__(**kwargs) | ||
self.odatacount = kwargs.get('odatacount', None) | ||
self.value = kwargs.get('value', None) |
37 changes: 37 additions & 0 deletions
37
azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/operations_list_results_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,37 @@ | ||
# 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 OperationsListResults(Model): | ||
"""List of available operations. | ||
:param odatacount: OData entity count; represents the number of operations | ||
returned. | ||
:type odatacount: int | ||
:param value: List of available operations. | ||
:type value: list[~azure.mgmt.policyinsights.models.Operation] | ||
""" | ||
|
||
_validation = { | ||
'odatacount': {'minimum': 1}, | ||
} | ||
|
||
_attribute_map = { | ||
'odatacount': {'key': '@odata\\.count', 'type': 'int'}, | ||
'value': {'key': 'value', 'type': '[Operation]'}, | ||
} | ||
|
||
def __init__(self, *, odatacount: int=None, value=None, **kwargs) -> None: | ||
super(OperationsListResults, self).__init__(**kwargs) | ||
self.odatacount = odatacount | ||
self.value = value |
Oops, something went wrong.