Skip to content

Commit 793305b

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t2-applicationinsights-2021-11-19-97376 (Azure#21833)
* CodeGen from PR 16799 in Azure/azure-rest-api-specs multiapi config (Azure#16799) * multiapi config * update * Update readme.md * Update readme.python.md * version,CHANGELOG * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yiming Lei <59104634+RAY-316@users.noreply.github.com>
1 parent c06ea32 commit 793305b

File tree

199 files changed

+11688
-680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+11688
-680
lines changed

sdk/applicationinsights/azure-mgmt-applicationinsights/CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# Release History
22

3+
## 2.0.0 (2021-12-12)
4+
5+
**Features**
6+
7+
- Model MyWorkbook has a new parameter etag
8+
- Model MyWorkbook has a new parameter storage_uri
9+
- Model MyWorkbook has a new parameter identity
10+
- Model MyWorkbook has a new parameter system_data
11+
- Model ErrorResponse has a new parameter error
12+
- Model WorkbookResource has a new parameter etag
13+
- Model WorkbookResource has a new parameter identity
14+
- Model WorkbookResource has a new parameter kind
15+
- Model ApplicationInsightsComponent has a new parameter disable_local_auth
16+
- Model ApplicationInsightsComponent has a new parameter force_customer_storage_for_profiler
17+
- Model MyWorkbookResource has a new parameter etag
18+
- Model MyWorkbookResource has a new parameter identity
19+
- Model WorkbookUpdateParameters has a new parameter description
20+
- Model WorkbookUpdateParameters has a new parameter revision
21+
- Model Workbook has a new parameter storage_uri
22+
- Model Workbook has a new parameter identity
23+
- Model Workbook has a new parameter revision
24+
- Model Workbook has a new parameter system_data
25+
- Model Workbook has a new parameter etag
26+
- Model Workbook has a new parameter description
27+
- Model WebTest has a new parameter validation_rules
28+
- Model WebTest has a new parameter request
29+
- Model WorkbookError has a new parameter error
30+
- Model WorkbooksListResult has a new parameter next_link
31+
- Model MyWorkbookError has a new parameter error
32+
- Model MyWorkbooksListResult has a new parameter next_link
33+
- Added operation WorkbooksOperations.revision_get
34+
- Added operation WorkbooksOperations.list_by_subscription
35+
- Added operation WorkbooksOperations.revisions_list
36+
37+
**Breaking changes**
38+
39+
- Parameter location of model WorkbookResource is now required
40+
- Operation WorkbooksOperations.list_by_resource_group has a new signature
41+
- Operation WorkbooksOperations.create_or_update has a new signature
42+
- Operation MyWorkbooksOperations.create_or_update has a new signature
43+
- Operation MyWorkbooksOperations.list_by_resource_group has a new signature
44+
- Operation MyWorkbooksOperations.update has a new signature
45+
- Operation WorkbooksOperations.create_or_update has a new signature
46+
- Operation WorkbooksOperations.list_by_resource_group has a new signature
47+
- Model ErrorResponse no longer has parameter message
48+
- Model ErrorResponse no longer has parameter code
49+
- Model WorkbookError no longer has parameter message
50+
- Model WorkbookError no longer has parameter details
51+
- Model WorkbookError no longer has parameter code
52+
- Model MyWorkbookError no longer has parameter message
53+
- Model MyWorkbookError no longer has parameter details
54+
- Model MyWorkbookError no longer has parameter code
55+
356
## 1.0.0 (2021-02-04)
457

558
**Features**
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/python@5.8.4",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "14aed8eee51e805ccf9a98c748ab31d798b2da2f",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
10+
"readme": "specification/applicationinsights/resource-manager/readme.md"
11+
}

sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/_application_insights_management_client.py

Lines changed: 57 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from azure.mgmt.core import ARMPipelineClient
13-
from msrest import Serializer, Deserializer
12+
from typing import TYPE_CHECKING
1413

14+
from azure.mgmt.core import ARMPipelineClient
1515
from azure.profiles import KnownProfiles, ProfileDefinition
1616
from azure.profiles.multiapiclient import MultiApiClientMixin
17+
from msrest import Deserializer, Serializer
18+
1719
from ._configuration import ApplicationInsightsManagementClientConfiguration
1820

21+
if TYPE_CHECKING:
22+
# pylint: disable=unused-import,ungrouped-imports
23+
from typing import Any, Optional
24+
25+
from azure.core.credentials import TokenCredential
26+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
27+
1928
class _SDKClient(object):
2029
def __init__(self, *args, **kwargs):
2130
"""This is a fake class to support current implemetation of MultiApiClientMixin."
@@ -38,14 +47,15 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):
3847
:type credential: ~azure.core.credentials.TokenCredential
3948
:param subscription_id: The ID of the target subscription.
4049
:type subscription_id: str
41-
:param str api_version: API version to use if no profile is provided, or if
42-
missing in profile.
43-
:param str base_url: Service URL
50+
:param api_version: API version to use if no profile is provided, or if missing in profile.
51+
:type api_version: str
52+
:param base_url: Service URL
53+
:type base_url: str
4454
:param profile: A profile definition, from KnownProfiles to dict.
4555
:type profile: azure.profiles.KnownProfiles
4656
"""
4757

48-
DEFAULT_API_VERSION = '2017-10-01'
58+
DEFAULT_API_VERSION = '2021-08-01'
4959
_PROFILE_TAG = "azure.mgmt.applicationinsights.ApplicationInsightsManagementClient"
5060
LATEST_PROFILE = ProfileDefinition({
5161
_PROFILE_TAG: {
@@ -55,18 +65,24 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):
5565
'api_keys': '2015-05-01',
5666
'component_available_features': '2015-05-01',
5767
'component_current_billing_features': '2015-05-01',
68+
'component_current_pricing_plan': '2017-10-01',
5869
'component_feature_capabilities': '2015-05-01',
70+
'component_linked_storage_accounts': '2020-03-01-preview',
5971
'component_quota_status': '2015-05-01',
6072
'components': '2015-05-01',
73+
'ea_subscription_list_migration_date': '2017-10-01',
74+
'ea_subscription_migrate_to_new_pricing_model': '2017-10-01',
75+
'ea_subscription_rollback_to_legacy_pricing_model': '2017-10-01',
6176
'export_configurations': '2015-05-01',
6277
'favorites': '2015-05-01',
63-
'my_workbooks': '2015-05-01',
78+
'live_token': '2020-06-02-preview',
79+
'my_workbooks': '2021-03-08',
6480
'operations': '2015-05-01',
6581
'proactive_detection_configurations': '2015-05-01',
6682
'web_test_locations': '2015-05-01',
6783
'web_tests': '2015-05-01',
6884
'work_item_configurations': '2015-05-01',
69-
'workbooks': '2015-05-01',
85+
'workbook_templates': '2020-11-20',
7086
}},
7187
_PROFILE_TAG + " latest"
7288
)
@@ -75,9 +91,9 @@ def __init__(
7591
self,
7692
credential, # type: "TokenCredential"
7793
subscription_id, # type: str
78-
api_version=None,
79-
base_url=None,
80-
profile=KnownProfiles.default,
94+
api_version=None, # type: Optional[str]
95+
base_url=None, # type: Optional[str]
96+
profile=KnownProfiles.default, # type: KnownProfiles
8197
**kwargs # type: Any
8298
):
8399
if not base_url:
@@ -101,11 +117,13 @@ def models(cls, api_version=DEFAULT_API_VERSION):
101117
* 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.applicationinsights.v2017_10_01.models>`
102118
* 2018-05-01-preview: :mod:`v2018_05_01_preview.models<azure.mgmt.applicationinsights.v2018_05_01_preview.models>`
103119
* 2018-06-17-preview: :mod:`v2018_06_17_preview.models<azure.mgmt.applicationinsights.v2018_06_17_preview.models>`
104-
* 2019-09-01-preview: :mod:`v2019_09_01_preview.models<azure.mgmt.applicationinsights.v2019_09_01_preview.models>`
105120
* 2019-10-17-preview: :mod:`v2019_10_17_preview.models<azure.mgmt.applicationinsights.v2019_10_17_preview.models>`
106121
* 2020-02-02-preview: :mod:`v2020_02_02_preview.models<azure.mgmt.applicationinsights.v2020_02_02_preview.models>`
107122
* 2020-03-01-preview: :mod:`v2020_03_01_preview.models<azure.mgmt.applicationinsights.v2020_03_01_preview.models>`
108123
* 2020-06-02-preview: :mod:`v2020_06_02_preview.models<azure.mgmt.applicationinsights.v2020_06_02_preview.models>`
124+
* 2020-11-20: :mod:`v2020_11_20.models<azure.mgmt.applicationinsights.v2020_11_20.models>`
125+
* 2021-03-08: :mod:`v2021_03_08.models<azure.mgmt.applicationinsights.v2021_03_08.models>`
126+
* 2021-08-01: :mod:`v2021_08_01.models<azure.mgmt.applicationinsights.v2021_08_01.models>`
109127
"""
110128
if api_version == '2015-05-01':
111129
from .v2015_05_01 import models
@@ -119,9 +137,6 @@ def models(cls, api_version=DEFAULT_API_VERSION):
119137
elif api_version == '2018-06-17-preview':
120138
from .v2018_06_17_preview import models
121139
return models
122-
elif api_version == '2019-09-01-preview':
123-
from .v2019_09_01_preview import models
124-
return models
125140
elif api_version == '2019-10-17-preview':
126141
from .v2019_10_17_preview import models
127142
return models
@@ -134,6 +149,15 @@ def models(cls, api_version=DEFAULT_API_VERSION):
134149
elif api_version == '2020-06-02-preview':
135150
from .v2020_06_02_preview import models
136151
return models
152+
elif api_version == '2020-11-20':
153+
from .v2020_11_20 import models
154+
return models
155+
elif api_version == '2021-03-08':
156+
from .v2021_03_08 import models
157+
return models
158+
elif api_version == '2021-08-01':
159+
from .v2021_08_01 import models
160+
return models
137161
raise ValueError("API version {} is not available".format(api_version))
138162

139163
@property
@@ -355,10 +379,13 @@ def my_workbooks(self):
355379
"""Instance depends on the API version:
356380
357381
* 2015-05-01: :class:`MyWorkbooksOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.MyWorkbooksOperations>`
382+
* 2021-03-08: :class:`MyWorkbooksOperations<azure.mgmt.applicationinsights.v2021_03_08.operations.MyWorkbooksOperations>`
358383
"""
359384
api_version = self._get_api_version('my_workbooks')
360385
if api_version == '2015-05-01':
361386
from .v2015_05_01.operations import MyWorkbooksOperations as OperationClass
387+
elif api_version == '2021-03-08':
388+
from .v2021_03_08.operations import MyWorkbooksOperations as OperationClass
362389
else:
363390
raise ValueError("API version {} does not have operation group 'my_workbooks'".format(api_version))
364391
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -368,14 +395,17 @@ def operations(self):
368395
"""Instance depends on the API version:
369396
370397
* 2015-05-01: :class:`Operations<azure.mgmt.applicationinsights.v2015_05_01.operations.Operations>`
371-
* 2019-09-01-preview: :class:`Operations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.Operations>`
398+
* 2018-05-01-preview: :class:`Operations<azure.mgmt.applicationinsights.v2018_05_01_preview.operations.Operations>`
399+
* 2018-06-17-preview: :class:`Operations<azure.mgmt.applicationinsights.v2018_06_17_preview.operations.Operations>`
372400
* 2020-06-02-preview: :class:`Operations<azure.mgmt.applicationinsights.v2020_06_02_preview.operations.Operations>`
373401
"""
374402
api_version = self._get_api_version('operations')
375403
if api_version == '2015-05-01':
376404
from .v2015_05_01.operations import Operations as OperationClass
377-
elif api_version == '2019-09-01-preview':
378-
from .v2019_09_01_preview.operations import Operations as OperationClass
405+
elif api_version == '2018-05-01-preview':
406+
from .v2018_05_01_preview.operations import Operations as OperationClass
407+
elif api_version == '2018-06-17-preview':
408+
from .v2018_06_17_preview.operations import Operations as OperationClass
379409
elif api_version == '2020-06-02-preview':
380410
from .v2020_06_02_preview.operations import Operations as OperationClass
381411
else:
@@ -398,32 +428,6 @@ def proactive_detection_configurations(self):
398428
raise ValueError("API version {} does not have operation group 'proactive_detection_configurations'".format(api_version))
399429
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
400430

401-
@property
402-
def queries(self):
403-
"""Instance depends on the API version:
404-
405-
* 2019-09-01-preview: :class:`QueriesOperations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.QueriesOperations>`
406-
"""
407-
api_version = self._get_api_version('queries')
408-
if api_version == '2019-09-01-preview':
409-
from .v2019_09_01_preview.operations import QueriesOperations as OperationClass
410-
else:
411-
raise ValueError("API version {} does not have operation group 'queries'".format(api_version))
412-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
413-
414-
@property
415-
def query_packs(self):
416-
"""Instance depends on the API version:
417-
418-
* 2019-09-01-preview: :class:`QueryPacksOperations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.QueryPacksOperations>`
419-
"""
420-
api_version = self._get_api_version('query_packs')
421-
if api_version == '2019-09-01-preview':
422-
from .v2019_09_01_preview.operations import QueryPacksOperations as OperationClass
423-
else:
424-
raise ValueError("API version {} does not have operation group 'query_packs'".format(api_version))
425-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
426-
427431
@property
428432
def web_test_locations(self):
429433
"""Instance depends on the API version:
@@ -442,10 +446,13 @@ def web_tests(self):
442446
"""Instance depends on the API version:
443447
444448
* 2015-05-01: :class:`WebTestsOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.WebTestsOperations>`
449+
* 2018-05-01-preview: :class:`WebTestsOperations<azure.mgmt.applicationinsights.v2018_05_01_preview.operations.WebTestsOperations>`
445450
"""
446451
api_version = self._get_api_version('web_tests')
447452
if api_version == '2015-05-01':
448453
from .v2015_05_01.operations import WebTestsOperations as OperationClass
454+
elif api_version == '2018-05-01-preview':
455+
from .v2018_05_01_preview.operations import WebTestsOperations as OperationClass
449456
else:
450457
raise ValueError("API version {} does not have operation group 'web_tests'".format(api_version))
451458
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -468,10 +475,13 @@ def workbook_templates(self):
468475
"""Instance depends on the API version:
469476
470477
* 2019-10-17-preview: :class:`WorkbookTemplatesOperations<azure.mgmt.applicationinsights.v2019_10_17_preview.operations.WorkbookTemplatesOperations>`
478+
* 2020-11-20: :class:`WorkbookTemplatesOperations<azure.mgmt.applicationinsights.v2020_11_20.operations.WorkbookTemplatesOperations>`
471479
"""
472480
api_version = self._get_api_version('workbook_templates')
473481
if api_version == '2019-10-17-preview':
474482
from .v2019_10_17_preview.operations import WorkbookTemplatesOperations as OperationClass
483+
elif api_version == '2020-11-20':
484+
from .v2020_11_20.operations import WorkbookTemplatesOperations as OperationClass
475485
else:
476486
raise ValueError("API version {} does not have operation group 'workbook_templates'".format(api_version))
477487
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -482,12 +492,15 @@ def workbooks(self):
482492
483493
* 2015-05-01: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.WorkbooksOperations>`
484494
* 2018-06-17-preview: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2018_06_17_preview.operations.WorkbooksOperations>`
495+
* 2021-08-01: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2021_08_01.operations.WorkbooksOperations>`
485496
"""
486497
api_version = self._get_api_version('workbooks')
487498
if api_version == '2015-05-01':
488499
from .v2015_05_01.operations import WorkbooksOperations as OperationClass
489500
elif api_version == '2018-06-17-preview':
490501
from .v2018_06_17_preview.operations import WorkbooksOperations as OperationClass
502+
elif api_version == '2021-08-01':
503+
from .v2021_08_01.operations import WorkbooksOperations as OperationClass
491504
else:
492505
raise ValueError("API version {} does not have operation group 'workbooks'".format(api_version))
493506
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/_configuration.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
# Changes may cause incorrect behavior and will be lost if the code is
99
# regenerated.
1010
# --------------------------------------------------------------------------
11-
from typing import Any
11+
from typing import TYPE_CHECKING
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
1515
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1616

1717
from ._version import VERSION
1818

19+
if TYPE_CHECKING:
20+
# pylint: disable=unused-import,ungrouped-imports
21+
from typing import Any
22+
23+
from azure.core.credentials import TokenCredential
1924

2025
class ApplicationInsightsManagementClientConfiguration(Configuration):
2126
"""Configuration for ApplicationInsightsManagementClient.

sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "2.0.0"
1010

0 commit comments

Comments
 (0)