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] Created newer version (2018-06-17-preview) of workbook resource type #2811

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 @@ -25,12 +25,10 @@
from .operations.components_operations import ComponentsOperations
from .operations.work_item_configurations_operations import WorkItemConfigurationsOperations
from .operations.favorites_operations import FavoritesOperations
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.analytics_items_operations import AnalyticsItemsOperations
from .operations.workbooks_operations import WorkbooksOperations
from .operations.workbook_operations import WorkbookOperations
from . import models


Expand Down Expand Up @@ -96,18 +94,14 @@ class ApplicationInsightsManagementClient(object):
:vartype work_item_configurations: azure.mgmt.applicationinsights.operations.WorkItemConfigurationsOperations
:ivar favorites: Favorites operations
:vartype favorites: azure.mgmt.applicationinsights.operations.FavoritesOperations
:ivar favorite: Favorite operations
:vartype favorite: azure.mgmt.applicationinsights.operations.FavoriteOperations
:ivar web_test_locations: WebTestLocations operations
: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 analytics_items: AnalyticsItems operations
:vartype analytics_items: azure.mgmt.applicationinsights.operations.AnalyticsItemsOperations
:ivar workbooks: Workbooks operations
:vartype workbooks: azure.mgmt.applicationinsights.operations.WorkbooksOperations
:ivar workbook: Workbook operations
:vartype workbook: azure.mgmt.applicationinsights.operations.WorkbookOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -152,15 +146,11 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.favorites = FavoritesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.favorite = FavoriteOperations(
self._client, self.config, self._serialize, self._deserialize)
self.web_test_locations = WebTestLocationsOperations(
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.analytics_items = AnalyticsItemsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workbooks = WorkbooksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workbook = WorkbookOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from .application_insights_component_available_features import ApplicationInsightsComponentAvailableFeatures
from .application_insights_component_proactive_detection_configuration_rule_definitions import ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
from .application_insights_component_proactive_detection_configuration import ApplicationInsightsComponentProactiveDetectionConfiguration
from .resource import Resource
from .components_resource import ComponentsResource
from .tags_resource import TagsResource
from .application_insights_component import ApplicationInsightsComponent
from .component_purge_body_filters import ComponentPurgeBodyFilters
Expand All @@ -40,21 +40,25 @@
from .work_item_configuration_error import WorkItemConfigurationError, WorkItemConfigurationErrorException
from .application_insights_component_favorite import ApplicationInsightsComponentFavorite
from .application_insights_component_web_test_location import ApplicationInsightsComponentWebTestLocation
from .webtests_resource import WebtestsResource
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_resource import WorkbookResource
from .workbook import Workbook
from .workbooks import Workbooks
from .link_properties import LinkProperties
from .error_field_contract import ErrorFieldContract
from .workbook_error import WorkbookError, WorkbookErrorException
from .operation_paged import OperationPaged
from .annotation_paged import AnnotationPaged
from .application_insights_component_api_key_paged import ApplicationInsightsComponentAPIKeyPaged
from .application_insights_component_paged import ApplicationInsightsComponentPaged
from .work_item_configuration_paged import WorkItemConfigurationPaged
from .application_insights_component_web_test_location_paged import ApplicationInsightsComponentWebTestLocationPaged
from .web_test_paged import WebTestPaged
from .workbook_paged import WorkbookPaged
from .application_insights_management_client_enums import (
ApplicationType,
FlowType,
Expand Down Expand Up @@ -91,7 +95,7 @@
'ApplicationInsightsComponentAvailableFeatures',
'ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions',
'ApplicationInsightsComponentProactiveDetectionConfiguration',
'Resource',
'ComponentsResource',
'TagsResource',
'ApplicationInsightsComponent',
'ComponentPurgeBodyFilters',
Expand All @@ -103,21 +107,25 @@
'WorkItemConfigurationError', 'WorkItemConfigurationErrorException',
'ApplicationInsightsComponentFavorite',
'ApplicationInsightsComponentWebTestLocation',
'WebtestsResource',
'WebTestGeolocation',
'WebTestPropertiesConfiguration',
'WebTest',
'ApplicationInsightsComponentAnalyticsItemProperties',
'ApplicationInsightsComponentAnalyticsItem',
'WorkbookResource',
'Workbook',
'Workbooks',
'LinkProperties',
'ErrorFieldContract',
'WorkbookError', 'WorkbookErrorException',
'OperationPaged',
'AnnotationPaged',
'ApplicationInsightsComponentAPIKeyPaged',
'ApplicationInsightsComponentPaged',
'WorkItemConfigurationPaged',
'ApplicationInsightsComponentWebTestLocationPaged',
'WebTestPaged',
'WorkbookPaged',
'ApplicationType',
'FlowType',
'RequestSource',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class AnnotationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Annotation <azure.mgmt.applicationinsights.models.Annotation>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Annotation]'}
}

def __init__(self, *args, **kwargs):

super(AnnotationPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .components_resource import ComponentsResource


class ApplicationInsightsComponent(Resource):
class ApplicationInsightsComponent(ComponentsResource):
"""An Application Insights component definition.

Variables are only populated by the server, and will be ignored when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class RequestSource(Enum):

class PurgeState(Enum):

pending = "Pending"
completed = "Completed"
pending = "pending"
completed = "completed"


class FavoriteType(Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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'
Possible values include: 'pending', 'completed'
:type status: str or ~azure.mgmt.applicationinsights.models.PurgeState
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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 ComponentsResource(Model):
"""An azure resource object.

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

:ivar id: Azure resource Id
:vartype id: str
:ivar name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, location, tags=None):
super(ComponentsResource, self).__init__()
self.id = None
self.name = None
self.type = None
self.location = location
self.tags = tags
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .webtests_resource import WebtestsResource


class WebTest(Resource):
class WebTest(WebtestsResource):
"""An Application Insights web test definition.

Variables are only populated by the server, and will be ignored when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class Resource(Model):
class WebtestsResource(Model):
"""An azure resource object.

Variables are only populated by the server, and will be ignored when
Expand Down Expand Up @@ -46,7 +46,7 @@ class Resource(Model):
}

def __init__(self, location, tags=None):
super(Resource, self).__init__()
super(WebtestsResource, self).__init__()
self.id = None
self.name = None
self.type = None
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class WorkItemConfigurationPaged(Paged):
"""
A paging container for iterating over a list of :class:`WorkItemConfiguration <azure.mgmt.applicationinsights.models.WorkItemConfiguration>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[WorkItemConfiguration]'}
}

def __init__(self, *args, **kwargs):

super(WorkItemConfigurationPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .workbook_resource import WorkbookResource


class Workbook(Resource):
class Workbook(WorkbookResource):
"""An Application Insights workbook definition.

Variables are only populated by the server, and will be ignored when
Expand Down Expand Up @@ -68,7 +68,6 @@ class Workbook(Resource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'workbook_name': {'required': True},
'serialized_data': {'required': True},
'workbook_id': {'required': True},
Expand Down Expand Up @@ -97,7 +96,7 @@ class Workbook(Resource):
'source_resource_id': {'key': 'properties.sourceResourceId', 'type': 'str'},
}

def __init__(self, location, workbook_name, serialized_data, workbook_id, category, user_id, tags=None, kind=None, version=None, shared_type_kind="shared", workbook_tags=None, source_resource_id=None):
def __init__(self, workbook_name, serialized_data, workbook_id, category, user_id, location=None, tags=None, kind=None, version=None, shared_type_kind="shared", workbook_tags=None, source_resource_id=None):
super(Workbook, self).__init__(location=location, tags=tags)
self.kind = kind
self.workbook_name = workbook_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from msrest.paging import Paged


class Workbooks(Model):
"""Workbook list result.

:param value: An array of workbooks.
:type value: list[~azure.mgmt.applicationinsights.models.Workbook]
class WorkbookPaged(Paged):
"""
A paging container for iterating over a list of :class:`Workbook <azure.mgmt.applicationinsights.models.Workbook>` object
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[Workbook]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Workbook]'}
}

def __init__(self, value=None):
super(Workbooks, self).__init__()
self.value = value
def __init__(self, *args, **kwargs):

super(WorkbookPaged, self).__init__(*args, **kwargs)
Loading