Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR policyinsights/resource-manager/policyinsights/resource-manager/Microsoft.PolicyInsights/PolicyStates/policyinsights/resource-manager/Microsoft.PolicyInsights/PolicyEvents] Swagger specs for all existing versions of Microsoft.PolicyInsights #2026

Closed
wants to merge 4 commits into from
Closed
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
18 changes: 18 additions & 0 deletions azure-mgmt-policyinsights/azure/mgmt/policyinsights/__init__.py
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

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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_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 import Operations
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',
'Operations',
'QueryOptions',
'PolicyStatesResource',
]
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=None, display=None):
super(Operation, self).__init__()
self.name = name
self.display = display
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=None, resource=None, operation=None, description=None):
super(OperationDisplay, self).__init__()
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
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 Operations(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=None, value=None):
super(Operations, self).__init__()
self.odatacount = odatacount
self.value = value
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 PolicyAssignmentSummary(Model):
"""Policy assignment summary.

:param policy_assignment_id: Policy assignment ID.
:type policy_assignment_id: str
:param policy_set_definition_id: Policy set definition ID, if the policy
assignment is for a policy set.
:type policy_set_definition_id: str
:param results: Non-compliance summary for the policy assignment.
:type results: ~azure.mgmt.policyinsights.models.SummaryResults
:param policy_definitions: Policy definitions summary.
:type policy_definitions:
list[~azure.mgmt.policyinsights.models.PolicyDefinitionSummary]
"""

_attribute_map = {
'policy_assignment_id': {'key': 'policyAssignmentId', 'type': 'str'},
'policy_set_definition_id': {'key': 'policySetDefinitionId', 'type': 'str'},
'results': {'key': 'results', 'type': 'SummaryResults'},
'policy_definitions': {'key': 'policyDefinitions', 'type': '[PolicyDefinitionSummary]'},
}

def __init__(self, policy_assignment_id=None, policy_set_definition_id=None, results=None, policy_definitions=None):
super(PolicyAssignmentSummary, self).__init__()
self.policy_assignment_id = policy_assignment_id
self.policy_set_definition_id = policy_set_definition_id
self.results = results
self.policy_definitions = policy_definitions
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 PolicyDefinitionSummary(Model):
"""Policy definition summary.

:param policy_definition_id: Policy definition ID.
:type policy_definition_id: str
:param effect: Policy effect, i.e. policy definition action.
:type effect: str
:param results: Non-compliance summary for the policy definition.
:type results: ~azure.mgmt.policyinsights.models.SummaryResults
"""

_attribute_map = {
'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'},
'effect': {'key': 'effect', 'type': 'str'},
'results': {'key': 'results', 'type': 'SummaryResults'},
}

def __init__(self, policy_definition_id=None, effect=None, results=None):
super(PolicyDefinitionSummary, self).__init__()
self.policy_definition_id = policy_definition_id
self.effect = effect
self.results = results
Loading