Skip to content

[AutoPR track2_azure-mgmt-applicationinsights] {AzureApplicationInsights} fixes Azure/azure-rest-api-specs#22136 IgnoreHttpsStatusCode should be IgnoreHttpStatusCode #2541

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

Closed
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"commit": "11bfcf00735a599af59e12aab82d5a874b786055",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/modelerfour@4.19.3"
"@autorest/python@6.2.16",
"@autorest/modelerfour@4.24.3"
],
"commit": "c57d5de63bf216b2af92ceca9ab18b1605ad3e21",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/applicationinsights/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/applicationinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
patch_sdk()
except ImportError:
pass

from ._version import VERSION

__version__ = VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from typing import TYPE_CHECKING

from msrest import Deserializer, Serializer
from typing import Any, Optional, TYPE_CHECKING

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

from ._configuration import ApplicationInsightsManagementClientConfiguration
from ._serialization import Deserializer, Serializer

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

from azure.core.credentials import TokenCredential

class _SDKClient(object):
Expand All @@ -43,9 +40,9 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):
The api-version parameter sets the default API version if the operation
group is not described in the profile.

:param credential: Credential needed for the client to connect to Azure.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param api_version: API version to use if no profile is provided, or if missing in profile.
:type api_version: str
Expand Down Expand Up @@ -89,12 +86,12 @@ class ApplicationInsightsManagementClient(MultiApiClientMixin, _SDKClient):

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
api_version=None, # type: Optional[str]
base_url="https://management.azure.com", # type: str
profile=KnownProfiles.default, # type: KnownProfiles
**kwargs # type: Any
credential: "TokenCredential",
subscription_id: str,
api_version: Optional[str]=None,
base_url: str = "https://management.azure.com",
profile: KnownProfiles=KnownProfiles.default,
**kwargs: Any
):
self._config = ApplicationInsightsManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
Expand Down Expand Up @@ -181,6 +178,7 @@ def analytics_items(self):
from .v2015_05_01.operations import AnalyticsItemsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'analytics_items'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -194,6 +192,7 @@ def annotations(self):
from .v2015_05_01.operations import AnnotationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'annotations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -207,6 +206,7 @@ def api_keys(self):
from .v2015_05_01.operations import APIKeysOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'api_keys'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -220,6 +220,7 @@ def component_available_features(self):
from .v2015_05_01.operations import ComponentAvailableFeaturesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_available_features'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -233,6 +234,7 @@ def component_current_billing_features(self):
from .v2015_05_01.operations import ComponentCurrentBillingFeaturesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_current_billing_features'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -246,6 +248,7 @@ def component_current_pricing_plan(self):
from .v2017_10_01.operations import ComponentCurrentPricingPlanOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_current_pricing_plan'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -259,6 +262,7 @@ def component_feature_capabilities(self):
from .v2015_05_01.operations import ComponentFeatureCapabilitiesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_feature_capabilities'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -272,6 +276,7 @@ def component_linked_storage_accounts(self):
from .v2020_03_01_preview.operations import ComponentLinkedStorageAccountsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_linked_storage_accounts'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -285,6 +290,7 @@ def component_quota_status(self):
from .v2015_05_01.operations import ComponentQuotaStatusOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'component_quota_status'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -307,6 +313,7 @@ def components(self):
from .v2020_02_02_preview.operations import ComponentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'components'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -320,6 +327,7 @@ def ea_subscription_list_migration_date(self):
from .v2017_10_01.operations import EASubscriptionListMigrationDateOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_list_migration_date'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -333,6 +341,7 @@ def ea_subscription_migrate_to_new_pricing_model(self):
from .v2017_10_01.operations import EASubscriptionMigrateToNewPricingModelOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_migrate_to_new_pricing_model'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -346,6 +355,7 @@ def ea_subscription_rollback_to_legacy_pricing_model(self):
from .v2017_10_01.operations import EASubscriptionRollbackToLegacyPricingModelOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'ea_subscription_rollback_to_legacy_pricing_model'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -359,6 +369,7 @@ def export_configurations(self):
from .v2015_05_01.operations import ExportConfigurationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'export_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -372,6 +383,7 @@ def favorites(self):
from .v2015_05_01.operations import FavoritesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'favorites'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -388,6 +400,7 @@ def live_token(self):
from .v2021_10.operations import LiveTokenOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'live_token'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -404,6 +417,7 @@ def my_workbooks(self):
from .v2021_03_08.operations import MyWorkbooksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'my_workbooks'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -426,6 +440,7 @@ def operations(self):
from .v2020_06_02_preview.operations import Operations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -442,6 +457,7 @@ def proactive_detection_configurations(self):
from .v2018_05_01_preview.operations import ProactiveDetectionConfigurationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'proactive_detection_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -455,6 +471,7 @@ def web_test_locations(self):
from .v2015_05_01.operations import WebTestLocationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'web_test_locations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -471,6 +488,7 @@ def web_tests(self):
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))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -484,6 +502,7 @@ def work_item_configurations(self):
from .v2015_05_01.operations import WorkItemConfigurationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'work_item_configurations'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -500,6 +519,7 @@ def workbook_templates(self):
from .v2020_11_20.operations import WorkbookTemplatesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workbook_templates'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
Expand All @@ -522,6 +542,7 @@ def workbooks(self):
from .v2022_04_01.operations import WorkbooksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workbooks'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

def close(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
Expand All @@ -18,8 +18,6 @@

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

from azure.core.credentials import TokenCredential

class ApplicationInsightsManagementClientConfiguration(Configuration):
Expand All @@ -28,19 +26,18 @@ class ApplicationInsightsManagementClientConfiguration(Configuration):
Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
"""

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
credential: "TokenCredential",
subscription_id: str,
**kwargs: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
Expand All @@ -55,9 +52,8 @@ def __init__(

def _configure(
self,
**kwargs # type: Any
**kwargs: Any
):
# type: (...) -> None
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
Expand Down
Loading