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 applicationinsights/resource-manager] Modify Workbook Resource Type to include RG and remove unused endpoint #2425

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from .operations.favorite_operations import FavoriteOperations
from .operations.web_test_locations_operations import WebTestLocationsOperations
from .operations.web_tests_operations import WebTestsOperations
from .operations.analytics_item_operations import AnalyticsItemOperations
from .operations.workbooks_operations import WorkbooksOperations
from .operations.workbook_operations import WorkbookOperations
from . import models
Expand Down Expand Up @@ -101,6 +102,8 @@ class ApplicationInsightsManagementClient(object):
:vartype web_test_locations: azure.mgmt.applicationinsights.operations.WebTestLocationsOperations
:ivar web_tests: WebTests operations
:vartype web_tests: azure.mgmt.applicationinsights.operations.WebTestsOperations
:ivar analytics_item: AnalyticsItem operations
:vartype analytics_item: azure.mgmt.applicationinsights.operations.AnalyticsItemOperations
:ivar workbooks: Workbooks operations
:vartype workbooks: azure.mgmt.applicationinsights.operations.WorkbooksOperations
:ivar workbook: Workbook operations
Expand Down Expand Up @@ -155,6 +158,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.web_tests = WebTestsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.analytics_item = AnalyticsItemOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workbooks = WorkbooksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workbook = WorkbookOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
from .web_test_geolocation import WebTestGeolocation
from .web_test_properties_configuration import WebTestPropertiesConfiguration
from .web_test import WebTest
from .application_insights_component_analytics_item_properties import ApplicationInsightsComponentAnalyticsItemProperties
from .application_insights_component_analytics_item import ApplicationInsightsComponentAnalyticsItem
from .workbook import Workbook
from .workbooks import Workbooks
from .link_properties import LinkProperties
Expand All @@ -60,8 +62,12 @@
PurgeState,
FavoriteType,
WebTestKind,
ItemScope,
ItemType,
SharedTypeKind,
FavoriteSourceType,
ItemScopePath,
ItemTypeParameter,
CategoryType,
)

Expand Down Expand Up @@ -100,6 +106,8 @@
'WebTestGeolocation',
'WebTestPropertiesConfiguration',
'WebTest',
'ApplicationInsightsComponentAnalyticsItemProperties',
'ApplicationInsightsComponentAnalyticsItem',
'Workbook',
'Workbooks',
'LinkProperties',
Expand All @@ -116,7 +124,11 @@
'PurgeState',
'FavoriteType',
'WebTestKind',
'ItemScope',
'ItemType',
'SharedTypeKind',
'FavoriteSourceType',
'ItemScopePath',
'ItemTypeParameter',
'CategoryType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 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 ApplicationInsightsComponentAnalyticsItem(Model):
"""Properties that define an Analytics item that is associated to an
Application Insights component.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Internally assigned unique id of the item definition.
:type id: str
:param name: The user-defined name of the item.
:type name: str
:param content: The content of this item
:type content: str
:ivar version: This instance's version of the data model. This can change
as new features are added.
:vartype version: str
:param scope: Enum indicating if this item definition is owned by a
specific user or is shared between all users with access to the
Application Insights component. Possible values include: 'shared', 'user'
:type scope: str or ~azure.mgmt.applicationinsights.models.ItemScope
:param type: Enum indicating the type of the Analytics item. Possible
values include: 'query', 'function', 'folder', 'recent'
:type type: str or ~azure.mgmt.applicationinsights.models.ItemType
:ivar time_created: Date and time in UTC when this item was created.
:vartype time_created: str
:ivar time_modified: Date and time in UTC of the last modification that
was made to this item.
:vartype time_modified: str
:param properties:
:type properties:
~azure.mgmt.applicationinsights.models.ApplicationInsightsComponentAnalyticsItemProperties
"""

_validation = {
'version': {'readonly': True},
'time_created': {'readonly': True},
'time_modified': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'name': {'key': 'Name', 'type': 'str'},
'content': {'key': 'Content', 'type': 'str'},
'version': {'key': 'Version', 'type': 'str'},
'scope': {'key': 'Scope', 'type': 'str'},
'type': {'key': 'Type', 'type': 'str'},
'time_created': {'key': 'TimeCreated', 'type': 'str'},
'time_modified': {'key': 'TimeModified', 'type': 'str'},
'properties': {'key': 'Properties', 'type': 'ApplicationInsightsComponentAnalyticsItemProperties'},
}

def __init__(self, id=None, name=None, content=None, scope=None, type=None, properties=None):
super(ApplicationInsightsComponentAnalyticsItem, self).__init__()
self.id = id
self.name = name
self.content = content
self.version = None
self.scope = scope
self.type = type
self.time_created = None
self.time_modified = None
self.properties = properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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 ApplicationInsightsComponentAnalyticsItemProperties(Model):
"""A set of properties that can be defined in the context of a specific item
type. Each type may have its own properties.

:param function_alias: A function alias, used when the type of the item is
Function
:type function_alias: str
"""

_attribute_map = {
'function_alias': {'key': 'functionAlias', 'type': 'str'},
}

def __init__(self, function_alias=None):
super(ApplicationInsightsComponentAnalyticsItemProperties, self).__init__()
self.function_alias = function_alias
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ class WebTestKind(Enum):
multistep = "multistep"


class ItemScope(Enum):

shared = "shared"
user = "user"


class ItemType(Enum):

query = "query"
function = "function"
folder = "folder"
recent = "recent"


class SharedTypeKind(Enum):

user = "user"
Expand All @@ -64,6 +78,21 @@ class FavoriteSourceType(Enum):
segmentation = "segmentation"


class ItemScopePath(Enum):

analytics_items = "analyticsItems"
myanalytics_items = "myanalyticsItems"


class ItemTypeParameter(Enum):

none = "none"
query = "query"
function = "function"
folder = "folder"
recent = "recent"


class CategoryType(Enum):

workbook = "workbook"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,23 @@ class ComponentPurgeBodyFilters(Model):
: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
:param operator: A query operator to evaluate over the provided column and
value(s).
:type operator: str
:param value: the value for the operator to function over. This can be a
number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of
values.
:type value: object
"""

_attribute_map = {
'column': {'key': 'column', 'type': 'str'},
'filter': {'key': 'filter', 'type': 'str'},
'operator': {'key': 'operator', 'type': 'str'},
'value': {'key': 'value', 'type': 'object'},
}

def __init__(self, column=None, filter=None):
def __init__(self, column=None, operator=None, value=None):
super(ComponentPurgeBodyFilters, self).__init__()
self.column = column
self.filter = filter
self.operator = operator
self.value = value
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .favorite_operations import FavoriteOperations
from .web_test_locations_operations import WebTestLocationsOperations
from .web_tests_operations import WebTestsOperations
from .analytics_item_operations import AnalyticsItemOperations
from .workbooks_operations import WorkbooksOperations
from .workbook_operations import WorkbookOperations

Expand All @@ -43,6 +44,7 @@
'FavoriteOperations',
'WebTestLocationsOperations',
'WebTestsOperations',
'AnalyticsItemOperations',
'WorkbooksOperations',
'WorkbookOperations',
]
Loading