Skip to content

Commit d8bbb18

Browse files
authored
[AutoPR applicationinsights/resource-manager] Java tags1 (#2838)
* Generated from 414f3b0aa9e434782dc37b0fbe8f71f567975b7e Using plural for operation group name consistently * Generated from 190ab39fd849acebb0ff3546dc03ee4de9b94c42 Using plural for operation group name consistently
1 parent 35fe5f2 commit d8bbb18

22 files changed

+848
-746
lines changed

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/application_insights_management_client.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@
2525
from .operations.components_operations import ComponentsOperations
2626
from .operations.work_item_configurations_operations import WorkItemConfigurationsOperations
2727
from .operations.favorites_operations import FavoritesOperations
28-
from .operations.favorite_operations import FavoriteOperations
2928
from .operations.web_test_locations_operations import WebTestLocationsOperations
3029
from .operations.web_tests_operations import WebTestsOperations
31-
from .operations.analytics_item_operations import AnalyticsItemOperations
30+
from .operations.analytics_items_operations import AnalyticsItemsOperations
3231
from .operations.workbooks_operations import WorkbooksOperations
33-
from .operations.workbook_operations import WorkbookOperations
3432
from . import models
3533

3634

@@ -96,18 +94,14 @@ class ApplicationInsightsManagementClient(object):
9694
:vartype work_item_configurations: azure.mgmt.applicationinsights.operations.WorkItemConfigurationsOperations
9795
:ivar favorites: Favorites operations
9896
:vartype favorites: azure.mgmt.applicationinsights.operations.FavoritesOperations
99-
:ivar favorite: Favorite operations
100-
:vartype favorite: azure.mgmt.applicationinsights.operations.FavoriteOperations
10197
:ivar web_test_locations: WebTestLocations operations
10298
:vartype web_test_locations: azure.mgmt.applicationinsights.operations.WebTestLocationsOperations
10399
:ivar web_tests: WebTests operations
104100
:vartype web_tests: azure.mgmt.applicationinsights.operations.WebTestsOperations
105-
:ivar analytics_item: AnalyticsItem operations
106-
:vartype analytics_item: azure.mgmt.applicationinsights.operations.AnalyticsItemOperations
101+
:ivar analytics_items: AnalyticsItems operations
102+
:vartype analytics_items: azure.mgmt.applicationinsights.operations.AnalyticsItemsOperations
107103
:ivar workbooks: Workbooks operations
108104
:vartype workbooks: azure.mgmt.applicationinsights.operations.WorkbooksOperations
109-
:ivar workbook: Workbook operations
110-
:vartype workbook: azure.mgmt.applicationinsights.operations.WorkbookOperations
111105
112106
:param credentials: Credentials needed for the client to connect to Azure.
113107
:type credentials: :mod:`A msrestazure Credentials
@@ -152,15 +146,11 @@ def __init__(
152146
self._client, self.config, self._serialize, self._deserialize)
153147
self.favorites = FavoritesOperations(
154148
self._client, self.config, self._serialize, self._deserialize)
155-
self.favorite = FavoriteOperations(
156-
self._client, self.config, self._serialize, self._deserialize)
157149
self.web_test_locations = WebTestLocationsOperations(
158150
self._client, self.config, self._serialize, self._deserialize)
159151
self.web_tests = WebTestsOperations(
160152
self._client, self.config, self._serialize, self._deserialize)
161-
self.analytics_item = AnalyticsItemOperations(
153+
self.analytics_items = AnalyticsItemsOperations(
162154
self._client, self.config, self._serialize, self._deserialize)
163155
self.workbooks = WorkbooksOperations(
164156
self._client, self.config, self._serialize, self._deserialize)
165-
self.workbook = WorkbookOperations(
166-
self._client, self.config, self._serialize, self._deserialize)

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from .application_insights_component_available_features import ApplicationInsightsComponentAvailableFeatures
2929
from .application_insights_component_proactive_detection_configuration_rule_definitions import ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
3030
from .application_insights_component_proactive_detection_configuration import ApplicationInsightsComponentProactiveDetectionConfiguration
31-
from .resource import Resource
31+
from .components_resource import ComponentsResource
3232
from .tags_resource import TagsResource
3333
from .application_insights_component import ApplicationInsightsComponent
3434
from .component_purge_body_filters import ComponentPurgeBodyFilters
@@ -40,21 +40,25 @@
4040
from .work_item_configuration_error import WorkItemConfigurationError, WorkItemConfigurationErrorException
4141
from .application_insights_component_favorite import ApplicationInsightsComponentFavorite
4242
from .application_insights_component_web_test_location import ApplicationInsightsComponentWebTestLocation
43+
from .webtests_resource import WebtestsResource
4344
from .web_test_geolocation import WebTestGeolocation
4445
from .web_test_properties_configuration import WebTestPropertiesConfiguration
4546
from .web_test import WebTest
4647
from .application_insights_component_analytics_item_properties import ApplicationInsightsComponentAnalyticsItemProperties
4748
from .application_insights_component_analytics_item import ApplicationInsightsComponentAnalyticsItem
49+
from .workbook_resource import WorkbookResource
4850
from .workbook import Workbook
49-
from .workbooks import Workbooks
5051
from .link_properties import LinkProperties
5152
from .error_field_contract import ErrorFieldContract
5253
from .workbook_error import WorkbookError, WorkbookErrorException
5354
from .operation_paged import OperationPaged
55+
from .annotation_paged import AnnotationPaged
5456
from .application_insights_component_api_key_paged import ApplicationInsightsComponentAPIKeyPaged
5557
from .application_insights_component_paged import ApplicationInsightsComponentPaged
58+
from .work_item_configuration_paged import WorkItemConfigurationPaged
5659
from .application_insights_component_web_test_location_paged import ApplicationInsightsComponentWebTestLocationPaged
5760
from .web_test_paged import WebTestPaged
61+
from .workbook_paged import WorkbookPaged
5862
from .application_insights_management_client_enums import (
5963
ApplicationType,
6064
FlowType,
@@ -91,7 +95,7 @@
9195
'ApplicationInsightsComponentAvailableFeatures',
9296
'ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions',
9397
'ApplicationInsightsComponentProactiveDetectionConfiguration',
94-
'Resource',
98+
'ComponentsResource',
9599
'TagsResource',
96100
'ApplicationInsightsComponent',
97101
'ComponentPurgeBodyFilters',
@@ -103,21 +107,25 @@
103107
'WorkItemConfigurationError', 'WorkItemConfigurationErrorException',
104108
'ApplicationInsightsComponentFavorite',
105109
'ApplicationInsightsComponentWebTestLocation',
110+
'WebtestsResource',
106111
'WebTestGeolocation',
107112
'WebTestPropertiesConfiguration',
108113
'WebTest',
109114
'ApplicationInsightsComponentAnalyticsItemProperties',
110115
'ApplicationInsightsComponentAnalyticsItem',
116+
'WorkbookResource',
111117
'Workbook',
112-
'Workbooks',
113118
'LinkProperties',
114119
'ErrorFieldContract',
115120
'WorkbookError', 'WorkbookErrorException',
116121
'OperationPaged',
122+
'AnnotationPaged',
117123
'ApplicationInsightsComponentAPIKeyPaged',
118124
'ApplicationInsightsComponentPaged',
125+
'WorkItemConfigurationPaged',
119126
'ApplicationInsightsComponentWebTestLocationPaged',
120127
'WebTestPaged',
128+
'WorkbookPaged',
121129
'ApplicationType',
122130
'FlowType',
123131
'RequestSource',
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.paging import Paged
13+
14+
15+
class AnnotationPaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`Annotation <azure.mgmt.applicationinsights.models.Annotation>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[Annotation]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(AnnotationPaged, self).__init__(*args, **kwargs)

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/application_insights_component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .resource import Resource
12+
from .components_resource import ComponentsResource
1313

1414

15-
class ApplicationInsightsComponent(Resource):
15+
class ApplicationInsightsComponent(ComponentsResource):
1616
"""An Application Insights component definition.
1717
1818
Variables are only populated by the server, and will be ignored when

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/application_insights_management_client_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class RequestSource(Enum):
3030

3131
class PurgeState(Enum):
3232

33-
pending = "Pending"
34-
completed = "Completed"
33+
pending = "pending"
34+
completed = "completed"
3535

3636

3737
class FavoriteType(Enum):

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/component_purge_status_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ComponentPurgeStatusResponse(Model):
1616
"""Response containing status for a specific purge operation.
1717
1818
:param status: Status of the operation represented by the requested Id.
19-
Possible values include: 'Pending', 'Completed'
19+
Possible values include: 'pending', 'completed'
2020
:type status: str or ~azure.mgmt.applicationinsights.models.PurgeState
2121
"""
2222

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ComponentsResource(Model):
16+
"""An azure resource object.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: Azure resource Id
22+
:vartype id: str
23+
:ivar name: Azure resource name
24+
:vartype name: str
25+
:ivar type: Azure resource type
26+
:vartype type: str
27+
:param location: Resource location
28+
:type location: str
29+
:param tags: Resource tags
30+
:type tags: dict[str, str]
31+
"""
32+
33+
_validation = {
34+
'id': {'readonly': True},
35+
'name': {'readonly': True},
36+
'type': {'readonly': True},
37+
'location': {'required': True},
38+
}
39+
40+
_attribute_map = {
41+
'id': {'key': 'id', 'type': 'str'},
42+
'name': {'key': 'name', 'type': 'str'},
43+
'type': {'key': 'type', 'type': 'str'},
44+
'location': {'key': 'location', 'type': 'str'},
45+
'tags': {'key': 'tags', 'type': '{str}'},
46+
}
47+
48+
def __init__(self, location, tags=None):
49+
super(ComponentsResource, self).__init__()
50+
self.id = None
51+
self.name = None
52+
self.type = None
53+
self.location = location
54+
self.tags = tags

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/web_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .resource import Resource
12+
from .webtests_resource import WebtestsResource
1313

1414

15-
class WebTest(Resource):
15+
class WebTest(WebtestsResource):
1616
"""An Application Insights web test definition.
1717
1818
Variables are only populated by the server, and will be ignored when

azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/resource.py renamed to azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/webtests_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from msrest.serialization import Model
1313

1414

15-
class Resource(Model):
15+
class WebtestsResource(Model):
1616
"""An azure resource object.
1717
1818
Variables are only populated by the server, and will be ignored when
@@ -46,7 +46,7 @@ class Resource(Model):
4646
}
4747

4848
def __init__(self, location, tags=None):
49-
super(Resource, self).__init__()
49+
super(WebtestsResource, self).__init__()
5050
self.id = None
5151
self.name = None
5252
self.type = None
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.paging import Paged
13+
14+
15+
class WorkItemConfigurationPaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`WorkItemConfiguration <azure.mgmt.applicationinsights.models.WorkItemConfiguration>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[WorkItemConfiguration]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(WorkItemConfigurationPaged, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)