Skip to content
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
1 change: 1 addition & 0 deletions azure-mgmt-resourcegraph/MANIFEST.in
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
Expand Down
22 changes: 3 additions & 19 deletions azure-mgmt-resourcegraph/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
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
=====

Expand All @@ -47,3 +28,6 @@ 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.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-resourcegraph%2FREADME.png
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
from .facet_result_py3 import FacetResult
from .error_details_py3 import ErrorDetails
from .facet_error_py3 import FacetError
from .resource_changes_request_parameters_interval_py3 import ResourceChangesRequestParametersInterval
from .resource_changes_request_parameters_py3 import ResourceChangesRequestParameters
from .resource_change_data_before_snapshot_py3 import ResourceChangeDataBeforeSnapshot
from .resource_change_data_after_snapshot_py3 import ResourceChangeDataAfterSnapshot
from .resource_change_data_py3 import ResourceChangeData
from .resource_change_list_py3 import ResourceChangeList
from .resource_snapshot_data_py3 import ResourceSnapshotData
from .resource_change_details_request_parameters_py3 import ResourceChangeDetailsRequestParameters
from .date_time_interval_py3 import DateTimeInterval
from .error_py3 import Error
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
Expand All @@ -37,6 +46,15 @@
from .facet_result import FacetResult
from .error_details import ErrorDetails
from .facet_error import FacetError
from .resource_changes_request_parameters_interval import ResourceChangesRequestParametersInterval
from .resource_changes_request_parameters import ResourceChangesRequestParameters
from .resource_change_data_before_snapshot import ResourceChangeDataBeforeSnapshot
from .resource_change_data_after_snapshot import ResourceChangeDataAfterSnapshot
from .resource_change_data import ResourceChangeData
from .resource_change_list import ResourceChangeList
from .resource_snapshot_data import ResourceSnapshotData
from .resource_change_details_request_parameters import ResourceChangeDetailsRequestParameters
from .date_time_interval import DateTimeInterval
from .error import Error
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
Expand All @@ -60,6 +78,15 @@
'FacetResult',
'ErrorDetails',
'FacetError',
'ResourceChangesRequestParametersInterval',
'ResourceChangesRequestParameters',
'ResourceChangeDataBeforeSnapshot',
'ResourceChangeDataAfterSnapshot',
'ResourceChangeData',
'ResourceChangeList',
'ResourceSnapshotData',
'ResourceChangeDetailsRequestParameters',
'DateTimeInterval',
'Error',
'ErrorResponse', 'ErrorResponseException',
'OperationDisplay',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 DateTimeInterval(Model):
"""An interval in time specifying the date and time for the inclusive start
and exclusive end, i.e. `[start, end)`.

All required parameters must be populated in order to send to Azure.

:param start: Required. A datetime indicating the inclusive/closed start
of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start`
that occurs chronologically after `end` will result in an error.
:type start: datetime
:param end: Required. A datetime indicating the exclusive/open end of the
time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that
occurs chronologically before `start` will result in an error.
:type end: datetime
"""

_validation = {
'start': {'required': True},
'end': {'required': True},
}

_attribute_map = {
'start': {'key': 'start', 'type': 'iso-8601'},
'end': {'key': 'end', 'type': 'iso-8601'},
}

def __init__(self, **kwargs):
super(DateTimeInterval, self).__init__(**kwargs)
self.start = kwargs.get('start', None)
self.end = kwargs.get('end', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 DateTimeInterval(Model):
"""An interval in time specifying the date and time for the inclusive start
and exclusive end, i.e. `[start, end)`.

All required parameters must be populated in order to send to Azure.

:param start: Required. A datetime indicating the inclusive/closed start
of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start`
that occurs chronologically after `end` will result in an error.
:type start: datetime
:param end: Required. A datetime indicating the exclusive/open end of the
time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that
occurs chronologically before `start` will result in an error.
:type end: datetime
"""

_validation = {
'start': {'required': True},
'end': {'required': True},
}

_attribute_map = {
'start': {'key': 'start', 'type': 'iso-8601'},
'end': {'key': 'end', 'type': 'iso-8601'},
}

def __init__(self, *, start, end, **kwargs) -> None:
super(DateTimeInterval, self).__init__(**kwargs)
self.start = start
self.end = end
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 msrest.serialization import Model


class ResourceChangeData(Model):
"""Data on a specific change, represented by a pair of before and after
resource snapshots.

All required parameters must be populated in order to send to Azure.

:param change_id: Required. The change ID. Valid and unique within the
specified resource only.
:type change_id: str
:param before_snapshot: Required. The snapshot before the change.
:type before_snapshot:
~azure.mgmt.resourcegraph.models.ResourceChangeDataBeforeSnapshot
:param after_snapshot: Required. The snapshot after the change.
:type after_snapshot:
~azure.mgmt.resourcegraph.models.ResourceChangeDataAfterSnapshot
"""

_validation = {
'change_id': {'required': True},
'before_snapshot': {'required': True},
'after_snapshot': {'required': True},
}

_attribute_map = {
'change_id': {'key': 'changeId', 'type': 'str'},
'before_snapshot': {'key': 'beforeSnapshot', 'type': 'ResourceChangeDataBeforeSnapshot'},
'after_snapshot': {'key': 'afterSnapshot', 'type': 'ResourceChangeDataAfterSnapshot'},
}

def __init__(self, **kwargs):
super(ResourceChangeData, self).__init__(**kwargs)
self.change_id = kwargs.get('change_id', None)
self.before_snapshot = kwargs.get('before_snapshot', None)
self.after_snapshot = kwargs.get('after_snapshot', None)
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 .resource_snapshot_data import ResourceSnapshotData


class ResourceChangeDataAfterSnapshot(ResourceSnapshotData):
"""The snapshot after the change.

All required parameters must be populated in order to send to Azure.

:param timestamp: Required. The time when the snapshot was created.
The snapshot timestamp provides an approximation as to when a modification
to a resource was detected. There can be a difference between the actual
modification time and the detection time. This is due to differences in
how operations that modify a resource are processed, versus how operation
that record resource snapshots are processed.
:type timestamp: datetime
:param content: The resource snapshot content (in resourceChangeDetails
response only).
:type content: object
"""

_validation = {
'timestamp': {'required': True},
}

_attribute_map = {
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
'content': {'key': 'content', 'type': 'object'},
}

def __init__(self, **kwargs):
super(ResourceChangeDataAfterSnapshot, self).__init__(**kwargs)
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 .resource_snapshot_data_py3 import ResourceSnapshotData


class ResourceChangeDataAfterSnapshot(ResourceSnapshotData):
"""The snapshot after the change.

All required parameters must be populated in order to send to Azure.

:param timestamp: Required. The time when the snapshot was created.
The snapshot timestamp provides an approximation as to when a modification
to a resource was detected. There can be a difference between the actual
modification time and the detection time. This is due to differences in
how operations that modify a resource are processed, versus how operation
that record resource snapshots are processed.
:type timestamp: datetime
:param content: The resource snapshot content (in resourceChangeDetails
response only).
:type content: object
"""

_validation = {
'timestamp': {'required': True},
}

_attribute_map = {
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
'content': {'key': 'content', 'type': 'object'},
}

def __init__(self, *, timestamp, content=None, **kwargs) -> None:
super(ResourceChangeDataAfterSnapshot, self).__init__(timestamp=timestamp, content=content, **kwargs)
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 .resource_snapshot_data import ResourceSnapshotData


class ResourceChangeDataBeforeSnapshot(ResourceSnapshotData):
"""The snapshot before the change.

All required parameters must be populated in order to send to Azure.

:param timestamp: Required. The time when the snapshot was created.
The snapshot timestamp provides an approximation as to when a modification
to a resource was detected. There can be a difference between the actual
modification time and the detection time. This is due to differences in
how operations that modify a resource are processed, versus how operation
that record resource snapshots are processed.
:type timestamp: datetime
:param content: The resource snapshot content (in resourceChangeDetails
response only).
:type content: object
"""

_validation = {
'timestamp': {'required': True},
}

_attribute_map = {
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
'content': {'key': 'content', 'type': 'object'},
}

def __init__(self, **kwargs):
super(ResourceChangeDataBeforeSnapshot, self).__init__(**kwargs)
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 .resource_snapshot_data_py3 import ResourceSnapshotData


class ResourceChangeDataBeforeSnapshot(ResourceSnapshotData):
"""The snapshot before the change.

All required parameters must be populated in order to send to Azure.

:param timestamp: Required. The time when the snapshot was created.
The snapshot timestamp provides an approximation as to when a modification
to a resource was detected. There can be a difference between the actual
modification time and the detection time. This is due to differences in
how operations that modify a resource are processed, versus how operation
that record resource snapshots are processed.
:type timestamp: datetime
:param content: The resource snapshot content (in resourceChangeDetails
response only).
:type content: object
"""

_validation = {
'timestamp': {'required': True},
}

_attribute_map = {
'timestamp': {'key': 'timestamp', 'type': 'iso-8601'},
'content': {'key': 'content', 'type': 'object'},
}

def __init__(self, *, timestamp, content=None, **kwargs) -> None:
super(ResourceChangeDataBeforeSnapshot, self).__init__(timestamp=timestamp, content=content, **kwargs)
Loading