-
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 applicationinsights/resource-manager] Add purge operations to…
… AppInsights management plane (#2043) * Generated from 891212c0bfb6b3267802c8984cf607d3242dcaac Adding purge status operation * Generated from aea5fabd66933d3377055411a89774f8e62692fd capitalize response status
- Loading branch information
1 parent
33557f7
commit 2f42d0c
Showing
8 changed files
with
309 additions
and
3 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
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
39 changes: 39 additions & 0 deletions
39
azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/component_purge_body.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,39 @@ | ||
# 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 ComponentPurgeBody(Model): | ||
"""Describes the body of a purge request for an App Insights component. | ||
:param table: Table from which to purge data. | ||
:type table: str | ||
:param filters: The set of columns and filters (queries) to run over them | ||
to purge the resulting data. | ||
:type filters: | ||
list[~azure.mgmt.applicationinsights.models.ComponentPurgeBodyFilters] | ||
""" | ||
|
||
_validation = { | ||
'table': {'required': True}, | ||
'filters': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'table': {'key': 'table', 'type': 'str'}, | ||
'filters': {'key': 'filters', 'type': '[ComponentPurgeBodyFilters]'}, | ||
} | ||
|
||
def __init__(self, table, filters): | ||
super(ComponentPurgeBody, self).__init__() | ||
self.table = table | ||
self.filters = filters |
34 changes: 34 additions & 0 deletions
34
...applicationinsights/azure/mgmt/applicationinsights/models/component_purge_body_filters.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 ComponentPurgeBodyFilters(Model): | ||
"""User-defined filters to return data which will be purged from the table. | ||
:param column: The column of the table over which the given query should | ||
run | ||
:type column: str | ||
:param filter: A query to to run over the provided table and column to | ||
purge the corresponding data. | ||
:type filter: str | ||
""" | ||
|
||
_attribute_map = { | ||
'column': {'key': 'column', 'type': 'str'}, | ||
'filter': {'key': 'filter', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, column=None, filter=None): | ||
super(ComponentPurgeBodyFilters, self).__init__() | ||
self.column = column | ||
self.filter = filter |
33 changes: 33 additions & 0 deletions
33
...gmt-applicationinsights/azure/mgmt/applicationinsights/models/component_purge_response.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,33 @@ | ||
# 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 ComponentPurgeResponse(Model): | ||
"""Response containing operationId for a specific purge action. | ||
:param operation_id: Id to use when querying for status for a particular | ||
purge operation. | ||
:type operation_id: str | ||
""" | ||
|
||
_validation = { | ||
'operation_id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'operation_id': {'key': 'operationId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, operation_id): | ||
super(ComponentPurgeResponse, self).__init__() | ||
self.operation_id = operation_id |
33 changes: 33 additions & 0 deletions
33
...licationinsights/azure/mgmt/applicationinsights/models/component_purge_status_response.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,33 @@ | ||
# 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 ComponentPurgeStatusResponse(Model): | ||
"""Response containing status for a specific purge operation. | ||
:param status: Status of the operation represented by the requested Id. | ||
Possible values include: 'Pending', 'Completed' | ||
:type status: str or ~azure.mgmt.applicationinsights.models.PurgeState | ||
""" | ||
|
||
_validation = { | ||
'status': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'status': {'key': 'status', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, status): | ||
super(ComponentPurgeStatusResponse, self).__init__() | ||
self.status = status |
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