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
23 changes: 11 additions & 12 deletions sdk/eventgrid/azure-eventgrid/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Event Grid Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.
# Usage

## Usage

For code examples, see [Event
Grid](https://docs.microsoft.com/python/api/overview/azure/event-grid)
For code examples, see [Event Grid](https://docs.microsoft.com/python/api/overview/azure/event-grid)
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)
# 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-eventgrid%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-eventgrid%2FREADME.png)
56 changes: 56 additions & 0 deletions sdk/eventgrid/azure-eventgrid/azure/eventgrid/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
try:
from ._models_py3 import AppConfigurationKeyValueDeletedEventData
from ._models_py3 import AppConfigurationKeyValueModifiedEventData
from ._models_py3 import AppEventTypeDetail
from ._models_py3 import AppServicePlanEventTypeDetail
from ._models_py3 import ContainerRegistryArtifactEventData
from ._models_py3 import ContainerRegistryArtifactEventTarget
from ._models_py3 import ContainerRegistryChartDeletedEventData
Expand Down Expand Up @@ -112,9 +114,25 @@
from ._models_py3 import SubscriptionDeletedEventData
from ._models_py3 import SubscriptionValidationEventData
from ._models_py3 import SubscriptionValidationResponse
from ._models_py3 import WebAppServicePlanUpdatedEventData
from ._models_py3 import WebAppServicePlanUpdatedEventDataSku
from ._models_py3 import WebAppUpdatedEventData
from ._models_py3 import WebBackupOperationCompletedEventData
from ._models_py3 import WebBackupOperationFailedEventData
from ._models_py3 import WebBackupOperationStartedEventData
from ._models_py3 import WebRestoreOperationCompletedEventData
from ._models_py3 import WebRestoreOperationFailedEventData
from ._models_py3 import WebRestoreOperationStartedEventData
from ._models_py3 import WebSlotSwapCompletedEventData
from ._models_py3 import WebSlotSwapFailedEventData
from ._models_py3 import WebSlotSwapStartedEventData
from ._models_py3 import WebSlotSwapWithPreviewCancelledEventData
from ._models_py3 import WebSlotSwapWithPreviewStartedEventData
except (SyntaxError, ImportError):
from ._models import AppConfigurationKeyValueDeletedEventData
from ._models import AppConfigurationKeyValueModifiedEventData
from ._models import AppEventTypeDetail
from ._models import AppServicePlanEventTypeDetail
from ._models import ContainerRegistryArtifactEventData
from ._models import ContainerRegistryArtifactEventTarget
from ._models import ContainerRegistryChartDeletedEventData
Expand Down Expand Up @@ -215,16 +233,36 @@
from ._models import SubscriptionDeletedEventData
from ._models import SubscriptionValidationEventData
from ._models import SubscriptionValidationResponse
from ._models import WebAppServicePlanUpdatedEventData
from ._models import WebAppServicePlanUpdatedEventDataSku
from ._models import WebAppUpdatedEventData
from ._models import WebBackupOperationCompletedEventData
from ._models import WebBackupOperationFailedEventData
from ._models import WebBackupOperationStartedEventData
from ._models import WebRestoreOperationCompletedEventData
from ._models import WebRestoreOperationFailedEventData
from ._models import WebRestoreOperationStartedEventData
from ._models import WebSlotSwapCompletedEventData
from ._models import WebSlotSwapFailedEventData
from ._models import WebSlotSwapStartedEventData
from ._models import WebSlotSwapWithPreviewCancelledEventData
from ._models import WebSlotSwapWithPreviewStartedEventData
from ._event_grid_client_enums import (
AppAction,
AppServicePlanAction,
AsyncStatus,
MediaJobErrorCategory,
MediaJobErrorCode,
MediaJobRetry,
MediaJobState,
StampKind,
)

__all__ = [
'AppConfigurationKeyValueDeletedEventData',
'AppConfigurationKeyValueModifiedEventData',
'AppEventTypeDetail',
'AppServicePlanEventTypeDetail',
'ContainerRegistryArtifactEventData',
'ContainerRegistryArtifactEventTarget',
'ContainerRegistryChartDeletedEventData',
Expand Down Expand Up @@ -325,8 +363,26 @@
'SubscriptionDeletedEventData',
'SubscriptionValidationEventData',
'SubscriptionValidationResponse',
'WebAppServicePlanUpdatedEventData',
'WebAppServicePlanUpdatedEventDataSku',
'WebAppUpdatedEventData',
'WebBackupOperationCompletedEventData',
'WebBackupOperationFailedEventData',
'WebBackupOperationStartedEventData',
'WebRestoreOperationCompletedEventData',
'WebRestoreOperationFailedEventData',
'WebRestoreOperationStartedEventData',
'WebSlotSwapCompletedEventData',
'WebSlotSwapFailedEventData',
'WebSlotSwapStartedEventData',
'WebSlotSwapWithPreviewCancelledEventData',
'WebSlotSwapWithPreviewStartedEventData',
'MediaJobState',
'MediaJobErrorCode',
'MediaJobErrorCategory',
'MediaJobRetry',
'AppAction',
'StampKind',
'AppServicePlanAction',
'AsyncStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,32 @@ class MediaJobRetry(str, Enum):

do_not_retry = "DoNotRetry" #: Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected.
may_retry = "MayRetry" #: Issue may be resolved after waiting for a period of time and resubmitting the same Job.


class AppAction(str, Enum):

restarted = "Restarted" #: Web app was restarted.
stopped = "Stopped" #: Web app was stopped.
changed_app_settings = "ChangedAppSettings" #: There was an operation to change app setting on the web app.
started = "Started" #: The job has started.
completed = "Completed" #: The job has completed.
failed = "Failed" #: The job has failed to complete.


class StampKind(str, Enum):

public = "Public" #: App Service Plan is running on a public stamp.
ase_v1 = "AseV1" #: App Service Plan is running on an App Service Environment V1.
ase_v2 = "AseV2" #: App Service Plan is running on an App Service Environment V2.


class AppServicePlanAction(str, Enum):

updated = "Updated" #: App Service plan is being updated.


class AsyncStatus(str, Enum):

started = "Started" #: Async operation has started.
completed = "Completed" #: Async operation has completed.
failed = "Failed" #: Async operation failed to complete.
Loading