Skip to content

Commit

Permalink
[AutoRelease] t2-applicationinsights-2021-11-19-97376 (Azure#21833)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yiming Lei <[email protected]>
  • Loading branch information
3 people authored and rakshith91 committed Apr 10, 2022
1 parent 196df29 commit 0ce4215
Show file tree
Hide file tree
Showing 199 changed files with 11,688 additions and 680 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Release History

## 2.0.0 (2021-12-12)

**Features**

- Model MyWorkbook has a new parameter etag
- Model MyWorkbook has a new parameter storage_uri
- Model MyWorkbook has a new parameter identity
- Model MyWorkbook has a new parameter system_data
- Model ErrorResponse has a new parameter error
- Model WorkbookResource has a new parameter etag
- Model WorkbookResource has a new parameter identity
- Model WorkbookResource has a new parameter kind
- Model ApplicationInsightsComponent has a new parameter disable_local_auth
- Model ApplicationInsightsComponent has a new parameter force_customer_storage_for_profiler
- Model MyWorkbookResource has a new parameter etag
- Model MyWorkbookResource has a new parameter identity
- Model WorkbookUpdateParameters has a new parameter description
- Model WorkbookUpdateParameters has a new parameter revision
- Model Workbook has a new parameter storage_uri
- Model Workbook has a new parameter identity
- Model Workbook has a new parameter revision
- Model Workbook has a new parameter system_data
- Model Workbook has a new parameter etag
- Model Workbook has a new parameter description
- Model WebTest has a new parameter validation_rules
- Model WebTest has a new parameter request
- Model WorkbookError has a new parameter error
- Model WorkbooksListResult has a new parameter next_link
- Model MyWorkbookError has a new parameter error
- Model MyWorkbooksListResult has a new parameter next_link
- Added operation WorkbooksOperations.revision_get
- Added operation WorkbooksOperations.list_by_subscription
- Added operation WorkbooksOperations.revisions_list

**Breaking changes**

- Parameter location of model WorkbookResource is now required
- Operation WorkbooksOperations.list_by_resource_group has a new signature
- Operation WorkbooksOperations.create_or_update has a new signature
- Operation MyWorkbooksOperations.create_or_update has a new signature
- Operation MyWorkbooksOperations.list_by_resource_group has a new signature
- Operation MyWorkbooksOperations.update has a new signature
- Operation WorkbooksOperations.create_or_update has a new signature
- Operation WorkbooksOperations.list_by_resource_group has a new signature
- Model ErrorResponse no longer has parameter message
- Model ErrorResponse no longer has parameter code
- Model WorkbookError no longer has parameter message
- Model WorkbookError no longer has parameter details
- Model WorkbookError no longer has parameter code
- Model MyWorkbookError no longer has parameter message
- Model MyWorkbookError no longer has parameter details
- Model MyWorkbookError no longer has parameter code

## 1.0.0 (2021-02-04)

**Features**
Expand Down
11 changes: 11 additions & 0 deletions sdk/applicationinsights/azure-mgmt-applicationinsights/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "14aed8eee51e805ccf9a98c748ab31d798b2da2f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/applicationinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@
# regenerated.
# --------------------------------------------------------------------------

from azure.mgmt.core import ARMPipelineClient
from msrest import Serializer, Deserializer
from typing import TYPE_CHECKING

from azure.mgmt.core import ARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from msrest import Deserializer, Serializer

from ._configuration import ApplicationInsightsManagementClientConfiguration

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse

class _SDKClient(object):
def __init__(self, *args, **kwargs):
"""This is a fake class to support current implemetation of MultiApiClientMixin."
Expand All @@ -38,14 +47,15 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str api_version: API version to use if no profile is provided, or if
missing in profile.
:param str base_url: Service URL
:param api_version: API version to use if no profile is provided, or if missing in profile.
:type api_version: str
:param base_url: Service URL
:type base_url: str
:param profile: A profile definition, from KnownProfiles to dict.
:type profile: azure.profiles.KnownProfiles
"""

DEFAULT_API_VERSION = '2017-10-01'
DEFAULT_API_VERSION = '2021-08-01'
_PROFILE_TAG = "azure.mgmt.applicationinsights.ApplicationInsightsManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
Expand All @@ -55,18 +65,24 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):
'api_keys': '2015-05-01',
'component_available_features': '2015-05-01',
'component_current_billing_features': '2015-05-01',
'component_current_pricing_plan': '2017-10-01',
'component_feature_capabilities': '2015-05-01',
'component_linked_storage_accounts': '2020-03-01-preview',
'component_quota_status': '2015-05-01',
'components': '2015-05-01',
'ea_subscription_list_migration_date': '2017-10-01',
'ea_subscription_migrate_to_new_pricing_model': '2017-10-01',
'ea_subscription_rollback_to_legacy_pricing_model': '2017-10-01',
'export_configurations': '2015-05-01',
'favorites': '2015-05-01',
'my_workbooks': '2015-05-01',
'live_token': '2020-06-02-preview',
'my_workbooks': '2021-03-08',
'operations': '2015-05-01',
'proactive_detection_configurations': '2015-05-01',
'web_test_locations': '2015-05-01',
'web_tests': '2015-05-01',
'work_item_configurations': '2015-05-01',
'workbooks': '2015-05-01',
'workbook_templates': '2020-11-20',
}},
_PROFILE_TAG + " latest"
)
Expand All @@ -75,9 +91,9 @@ def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
api_version=None,
base_url=None,
profile=KnownProfiles.default,
api_version=None, # type: Optional[str]
base_url=None, # type: Optional[str]
profile=KnownProfiles.default, # type: KnownProfiles
**kwargs # type: Any
):
if not base_url:
Expand All @@ -101,11 +117,13 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.applicationinsights.v2017_10_01.models>`
* 2018-05-01-preview: :mod:`v2018_05_01_preview.models<azure.mgmt.applicationinsights.v2018_05_01_preview.models>`
* 2018-06-17-preview: :mod:`v2018_06_17_preview.models<azure.mgmt.applicationinsights.v2018_06_17_preview.models>`
* 2019-09-01-preview: :mod:`v2019_09_01_preview.models<azure.mgmt.applicationinsights.v2019_09_01_preview.models>`
* 2019-10-17-preview: :mod:`v2019_10_17_preview.models<azure.mgmt.applicationinsights.v2019_10_17_preview.models>`
* 2020-02-02-preview: :mod:`v2020_02_02_preview.models<azure.mgmt.applicationinsights.v2020_02_02_preview.models>`
* 2020-03-01-preview: :mod:`v2020_03_01_preview.models<azure.mgmt.applicationinsights.v2020_03_01_preview.models>`
* 2020-06-02-preview: :mod:`v2020_06_02_preview.models<azure.mgmt.applicationinsights.v2020_06_02_preview.models>`
* 2020-11-20: :mod:`v2020_11_20.models<azure.mgmt.applicationinsights.v2020_11_20.models>`
* 2021-03-08: :mod:`v2021_03_08.models<azure.mgmt.applicationinsights.v2021_03_08.models>`
* 2021-08-01: :mod:`v2021_08_01.models<azure.mgmt.applicationinsights.v2021_08_01.models>`
"""
if api_version == '2015-05-01':
from .v2015_05_01 import models
Expand All @@ -119,9 +137,6 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2018-06-17-preview':
from .v2018_06_17_preview import models
return models
elif api_version == '2019-09-01-preview':
from .v2019_09_01_preview import models
return models
elif api_version == '2019-10-17-preview':
from .v2019_10_17_preview import models
return models
Expand All @@ -134,6 +149,15 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2020-06-02-preview':
from .v2020_06_02_preview import models
return models
elif api_version == '2020-11-20':
from .v2020_11_20 import models
return models
elif api_version == '2021-03-08':
from .v2021_03_08 import models
return models
elif api_version == '2021-08-01':
from .v2021_08_01 import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -355,10 +379,13 @@ def my_workbooks(self):
"""Instance depends on the API version:
* 2015-05-01: :class:`MyWorkbooksOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.MyWorkbooksOperations>`
* 2021-03-08: :class:`MyWorkbooksOperations<azure.mgmt.applicationinsights.v2021_03_08.operations.MyWorkbooksOperations>`
"""
api_version = self._get_api_version('my_workbooks')
if api_version == '2015-05-01':
from .v2015_05_01.operations import MyWorkbooksOperations as OperationClass
elif api_version == '2021-03-08':
from .v2021_03_08.operations import MyWorkbooksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'my_workbooks'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -368,14 +395,17 @@ def operations(self):
"""Instance depends on the API version:
* 2015-05-01: :class:`Operations<azure.mgmt.applicationinsights.v2015_05_01.operations.Operations>`
* 2019-09-01-preview: :class:`Operations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.Operations>`
* 2018-05-01-preview: :class:`Operations<azure.mgmt.applicationinsights.v2018_05_01_preview.operations.Operations>`
* 2018-06-17-preview: :class:`Operations<azure.mgmt.applicationinsights.v2018_06_17_preview.operations.Operations>`
* 2020-06-02-preview: :class:`Operations<azure.mgmt.applicationinsights.v2020_06_02_preview.operations.Operations>`
"""
api_version = self._get_api_version('operations')
if api_version == '2015-05-01':
from .v2015_05_01.operations import Operations as OperationClass
elif api_version == '2019-09-01-preview':
from .v2019_09_01_preview.operations import Operations as OperationClass
elif api_version == '2018-05-01-preview':
from .v2018_05_01_preview.operations import Operations as OperationClass
elif api_version == '2018-06-17-preview':
from .v2018_06_17_preview.operations import Operations as OperationClass
elif api_version == '2020-06-02-preview':
from .v2020_06_02_preview.operations import Operations as OperationClass
else:
Expand All @@ -398,32 +428,6 @@ def proactive_detection_configurations(self):
raise ValueError("API version {} does not have operation group 'proactive_detection_configurations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def queries(self):
"""Instance depends on the API version:
* 2019-09-01-preview: :class:`QueriesOperations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.QueriesOperations>`
"""
api_version = self._get_api_version('queries')
if api_version == '2019-09-01-preview':
from .v2019_09_01_preview.operations import QueriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'queries'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def query_packs(self):
"""Instance depends on the API version:
* 2019-09-01-preview: :class:`QueryPacksOperations<azure.mgmt.applicationinsights.v2019_09_01_preview.operations.QueryPacksOperations>`
"""
api_version = self._get_api_version('query_packs')
if api_version == '2019-09-01-preview':
from .v2019_09_01_preview.operations import QueryPacksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'query_packs'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def web_test_locations(self):
"""Instance depends on the API version:
Expand All @@ -442,10 +446,13 @@ def web_tests(self):
"""Instance depends on the API version:
* 2015-05-01: :class:`WebTestsOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.WebTestsOperations>`
* 2018-05-01-preview: :class:`WebTestsOperations<azure.mgmt.applicationinsights.v2018_05_01_preview.operations.WebTestsOperations>`
"""
api_version = self._get_api_version('web_tests')
if api_version == '2015-05-01':
from .v2015_05_01.operations import WebTestsOperations as OperationClass
elif api_version == '2018-05-01-preview':
from .v2018_05_01_preview.operations import WebTestsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'web_tests'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -468,10 +475,13 @@ def workbook_templates(self):
"""Instance depends on the API version:
* 2019-10-17-preview: :class:`WorkbookTemplatesOperations<azure.mgmt.applicationinsights.v2019_10_17_preview.operations.WorkbookTemplatesOperations>`
* 2020-11-20: :class:`WorkbookTemplatesOperations<azure.mgmt.applicationinsights.v2020_11_20.operations.WorkbookTemplatesOperations>`
"""
api_version = self._get_api_version('workbook_templates')
if api_version == '2019-10-17-preview':
from .v2019_10_17_preview.operations import WorkbookTemplatesOperations as OperationClass
elif api_version == '2020-11-20':
from .v2020_11_20.operations import WorkbookTemplatesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workbook_templates'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -482,12 +492,15 @@ def workbooks(self):
* 2015-05-01: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2015_05_01.operations.WorkbooksOperations>`
* 2018-06-17-preview: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2018_06_17_preview.operations.WorkbooksOperations>`
* 2021-08-01: :class:`WorkbooksOperations<azure.mgmt.applicationinsights.v2021_08_01.operations.WorkbooksOperations>`
"""
api_version = self._get_api_version('workbooks')
if api_version == '2015-05-01':
from .v2015_05_01.operations import WorkbooksOperations as OperationClass
elif api_version == '2018-06-17-preview':
from .v2018_06_17_preview.operations import WorkbooksOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import WorkbooksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workbooks'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from typing import Any
from typing import TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

class ApplicationInsightsManagementClientConfiguration(Configuration):
"""Configuration for ApplicationInsightsManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "2.0.0"

Loading

0 comments on commit 0ce4215

Please sign in to comment.